HNHacker News
TopNewBestAskShowJobs

theodorejb

2,166 karma · joined May 15, 2014

Software engineer from Minnesota. I enjoy working with modern PHP, SQL, TypeScript, and Svelte.

Email: theodorejb@gmail.com Website: https://theodorejb.me

submissionscomments
theodorejb··on Angular 9.0
It's on the roadmap for Angular 10: https://github.com/angular/angular-cli/issues/13732#issuecom...
theodorejb··on Angular 9.0
Just minified. Gzipped size is now 225 KB.
theodorejb··on Angular 9.0
I just updated my mid-size app from v8.2 to v9 with Ivy, and the total es2015 bundle size decreased from 973 KB to 669 KB. An over 31% improvement with no effort on my part!
theodorejb··on Bazel 2.0
I miss the days when JavaScript frameworks could be built with a simple npm install and executing a Grunt/Gulp file. Now to build Angular I need Yarn, Java, Bazel, and hundreds of megabytes of additional tooling downloaded by the build script. On a slow connection it takes ages to download everything, and even then the build often fails (on Windows I have yet to get it working successfully).

Edit: I'm referring to building the framework itself (e.g. to contribute a fix). Building an Angular project with the CLI works quite well.

theodorejb··on PHP 7.4
Typed properties and arrow functions are great, but I'm also happy to see the deprecations in this release. E.g. nested ternary operators without explicit parentheses (such use was almost always a mistake). Full list here: https://www.php.net/manual/en/migration74.deprecated.php. Some of the deprecations pave the way for performance improvements in PHP 8.
theodorejb··on PHP 7.4 Is Released
This is a feature supported by many languages for improving readability of large numbers in code. See https://wiki.php.net/rfc/numeric_literal_separator.
theodorejb··on Firefox 70
Wow, blown away by how much better the new password manager is! If they add support for custom fields on each login, this could almost completely replace my need for a 3rd party solution.
theodorejb··on P++ idea: FAQ
> The language's design is inherently incompatible with use cases that care about speed, because of how deeply in bed it is with HTTP request-response lifecycle.

Maybe I'm misunderstanding you, but it sounds like you're saying that speed doesn't matter when responding to HTTP requests. This couldn't be further from the truth. The less time a response takes, the more requests can be handled per second, which is critical for scaling Web services. PHP 7.x handles 2-3 times as many requests per second on the same hardware compared to PHP 5.

Also, I don't agree that PHP is only suitable for responding to network requests. I've also found it ideal for writing CLI programs which can run on a schedule and share logic with HTTP APIs.

theodorejb··on America’s Highest Minimum Wage Sparks Fight in Small California City
If a business's profitability drops, that very frequently translates to lost jobs or cut hours in order to preserve expected returns. Otherwise the business may close entirely and the owners seek to invest in a more profitable venture.
theodorejb··on Microsoft decides IE 10 has had its fun: Termination set for Jan 2020
Official announcement: https://techcommunity.microsoft.com/t5/Windows-IT-Pro-Blog/B...

> We will also publish the IE11 upgrade through Windows Update and Windows Server Update Services (WSUS) for all versions of Windows Server 2012 and Windows Embedded 8 Standard later this year.

Nice! I wonder, will they eventually do this with their Chromium-based version of Edge?

theodorejb··on Official PHP 7.3 Migration Guide
My favorite features in this release:

* Trailing commas in function/method calls

* array_push() and array_unshift() can now be called with a single argument (helpful when using the spread operator)

* TypeError now reports wrong types as int and bool instead of integer and boolean (no more "Argument must be an instance of integer, integer given" errors)

* Deprecation of case-insensitive constants

* json_decode() and json_encode() now support a JSON_THROW_ON_ERROR flag (removing the need to call json_last_error() to see if an error occurred)

* setcookie() now accepts an associative array of options, and supports the samesite attribute

* More flexible heredoc syntax

theodorejb··on Pence Says Google Should Halt Development of Chinese Search Engine
I remember when Google moved their Chinese search service to Hong Kong in 2010 to end its censorship of search results. Now it sounds like they are not only working to bring back censored search, but also to link users' queries to their phone number such that the government could more easily track what an individual has searched for. If censorship was wrong in 2010, what makes this OK now?
theodorejb··on Announcing TypeScript 3.1
Seems like a pretty small release in comparison to previous updates. Probably a good thing, though - it demonstrates that the language as reached a very mature state with few remaining gaps.
theodorejb··on Announcing TypeScript 3.0
Even if JS engines were to accept the type annotation syntax, there would still be a need to strip out the types simply from the perspective of minimizing JavaScript bundle sizes.
theodorejb··on PHP 7.2.0 Released
One of the most significant changes in PHP 7.2 is actually the list of features that it deprecates. Among other things, this includes:

- Unquoted strings

- The __autoload() method

- The track_errors ini setting and $php_errormsg variable

- create_function()

- each()

- The $errcontext argument

Numerous internal optimizations and language improvements will become possible in PHP 8 when these features are removed.

http://php.net/manual/en/migration72.deprecated.php

theodorejb··on Introducing Surface Book 2
Actually that photo does match real life. Rather than opening more than 180 degrees, the screen can be popped off as a standalone tablet, then flipped around and reattached to the base.
theodorejb··on Modern Humans and Neanderthals May Be More Similar Than We Imagined
Evolutionists who believe that Neanderthals were not fully human always seem surprised by discoveries like this. As a creationist, I don't find it surprising at all - more and more evidence keeps stacking up that Neanderthals were fully human.
theodorejb··on What made the Moon? New ideas try to rescue a troubled theory
Perhaps the correct question is "Who made the Moon?".
theodorejb··on How do whales and dolphins sleep without drowning?
How could they have gradually evolved these abilities without drowning?
theodorejb··on Angular 2/4 Is Too Little Too Late
I strongly disagree with the claim that "React Is Much Simpler." React on its own may be simpler, but by the time you add libraries for routing, HTTP, dependency injection, date/currency formatting, animations, and all the other stuff that Angular provides out of the box, the complexity starts to look pretty similar.

Furthermore, because you have to rely on third-party libraries for all the features that React doesn't provide, you have to worry about separately keeping them all up-to-date. What if there's a critical bug fix in the latest version of your HTTP library, but it's only compatible with the latest version of React, which isn't compatible with the router version you're using? In my experience it takes a lot more time to keep dependencies up-to-date and working together with React than with Angular.

theodorejb··on Horcrux: A Password Manager for Paranoids
Isn't this basically what LessPass (https://lesspass.com/) does?
theodorejb··on An ancient Chinese bird kept its feathers, and colors, for 130M years
How do they know it is 130 million years old?
theodorejb··on Scientists to unveil new Earth-like planet
It took 9.5 years for New Horizons to reach Pluto (just 32 astronomical units distant). At that rate, it would take a probe more than 80,000 years to cross the 271,000 AUs separating Earth from this exoplanet.
theodorejb··on Maybe it’s time to talk about a new Linux Display Driver Model
In case anyone else has been getting the "Bandwidth Limit Exceeded" error when attempting to access the page, here's a link to Google's cached copy:

http://webcache.googleusercontent.com/search?q=cache%3Ahttp%...

← PreviousPage 4 of 4