HN user

theodorejb

1,607 karma

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

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

Posts34
Comments108
View on HN
blogs.oracle.com 3mo ago

MySQL 9.7.0 LTS

theodorejb
3pts0
mariadb.org 4mo ago

The Operational Cost of Vacuuming in PostgreSQL

theodorejb
2pts0
blogs.oracle.com 5mo ago

New Era of MySQL Community Engagement

theodorejb
1pts0
keepassxc.org 8mo ago

KeePassXC 2.7.11 Released

theodorejb
4pts0
www.php.net 8mo ago

PHP 8.5 Released

theodorejb
16pts4
joshcollinsworth.com 8mo ago

Alchemy

theodorejb
1pts0
tonsky.me 1y ago

Gaslight-driven development

theodorejb
138pts109
joshcollinsworth.com 2y ago

Copilot is leaving some passengers behind

theodorejb
2pts0
world.hey.com 2y ago

Apple's new extortion regime to keep big app makers

theodorejb
24pts8
www.mozilla.org 2y ago

Firefox 117 released with CSS nesting support

theodorejb
30pts3
www.youtube.com 3y ago

Microsoft Flight Simulator 2024

theodorejb
38pts15
svelte.dev 3y ago

SvelteKit 1.0

theodorejb
919pts292
joshcollinsworth.com 4y ago

Comparing Svelte with React and Vue

theodorejb
6pts0
www.thurrott.com 4y ago

Microsoft to Block Windows 11 Browser Workarounds

theodorejb
110pts105
brave.com 5y ago

Comparing the Network Behavior of Popular Browsers on First-Run

theodorejb
3pts2
blog.angular.io 6y ago

Angular 10 Now Available

theodorejb
31pts10
blog.angular.io 6y ago

Angular 9.0

theodorejb
248pts299
www.mozilla.org 7y ago

Firefox 65.0 released

theodorejb
724pts414
css-tricks.com 7y ago

Creating Your Own Gravity and Space Simulator

theodorejb
4pts0
php.net 7y ago

Official PHP 7.3 Migration Guide

theodorejb
3pts1
blog.krakjoe.ninja 8y ago

PHP allows for the design of X

theodorejb
1pts0
medium.com 8y ago

Version 6 of Angular Now Available

theodorejb
5pts0
medium.com 8y ago

Announcing NPM 6

theodorejb
104pts51
mysqlserverteam.com 8y ago

MySQL 8.0 is now generally available

theodorejb
221pts100
blogs.msdn.microsoft.com 8y ago

Announcing TypeScript 2.6 RC

theodorejb
9pts1
mysqlserverteam.com 8y ago

MySQL 8.0 RC1 – Highlights

theodorejb
1pts0
www.hanselman.com 8y ago

Peachpie – Open Source PHP Compiler to .NET and WordPress Under ASP.NET Core

theodorejb
3pts0
angularjs.blogspot.com 9y ago

Angular 4.0.0 Now Available

theodorejb
329pts345
medium.com 9y ago

An Update on ES6 Modules in Node.js

theodorejb
3pts0
angularjs.blogspot.com 9y ago

Ok, let me explain: it’s going to be Angular 4.0

theodorejb
93pts72

The Big Bang is an almost infinitely malleable story, contorted to comport with almost anything we observe. But how is this useful? The predictions of this theory continually fail. The farther we look, the more we see stars, galaxies, black holes, and other structures that shouldn't exist according to this model.

What if the universe doesn't have a naturalistic origin, but was created by God? How much greater would our understanding of the world be if more scientists focused on studying present phenomena rather than trying to fit stories about the past with observed data?

In my petrol-powered Prius I average 52 MPG, so at the current price of gas ($2.60/gallon) I pay $0.50 to drive 10 miles - less than the listed cost to drive an electric car the same distance.

Someone could be tricked into giving their npm credentials to the attacker (e.g. via a phishing email), and then the attacker publishes new versions of their packages with the malicious diff. Then when the infected packages are installed, npm runs the malicious preinstall script which harvests secrets from the new machine, and if these include an npm token the worm can see which packages it has access to publish, and infect them too to continue spreading.

One option to make it a little safer is to add ignore-scripts=true to a .npmrc file in your project root. Lifestyle scripts then won't run automatically. It's not as nice as Pnpm or Bun, though, since this also prevents your own postinstall scripts from running (not just those of dependencies), and there's no way to whitelist trusted packages.

Human cognition was basically bruteforced by evolution

This is an assumption, not a fact. Perhaps human cognition was created by God, and our minds have an essential spiritual component which cannot be reproduced by a purely physical machine.

In my experience, packages which legitimately require a postinstall script to work correctly are very rare. For the apps I maintain, esbuild is the only dependency which benefits from a postinstall script to slightly improve performance (though it still works without the script). So there's no scaling issue adding one or two packages to a whitelist if desired.

It's crazy to me that npm still executes postinstall scripts by default for all dependencies. Other package managers (Pnpm, Bun) do not run them for dependencies unless they are added to a specific allow-list. Composer never runs lifecycle scripts for dependencies.

This matters because dependencies are often installed in a build or development environment with access to things that are not available when the package is actually imported in a browser or other production environment.

It absolutely matters. Many people install packages for front-end usage which would only be imported in the browser sandbox. Additionally, a package may be installed in a dev environment for inspection/testing before deciding whether to use it in production.

To me it's quite unexpected/scary that installing a package on my dev machine can execute arbitrary code before I ever have a chance to inspect the package to see whether I want to use it.

Go is still not good 11 months ago

Note that since PHP 8.0 the ternary operator is non-associative, and attempting to nest it without explicit parenthesis produces a hard error.

The exploit requires pages to load instantly.

How so? The page with the double-click prompt immediately changes the parent page behind it to the target location, and it can easily show a loading indicator for a couple seconds to wait for the target page to render before prompting the user to double-click.

What evidence would it take for more scientists to recognize that perhaps life didn't evolve through some evolutionary process, but was intentionally created? It seems like few ever consider that their starting presupposition may be wrong.

PHP 8.4 2 years ago

Property hooks are the headline feature, but they seem like something I'd rarely use in practice. It is nice to have the option available though, in case I need to add extra logic to a property without breaking everywhere that it's accessed.

PHP 8.4 2 years ago

I wouldn't consider all the new features small, but even many small improvements can result in a major improvement.

Why did people assume that strata were deposited over eons and represent different ages? Many of these layers can be viewed in the Grand Canyon, and there is a notable lack of erosion between them. As I see it, these paraconformities are a strong evidence that there were not large gaps of time between the strata - they must have been laid down rapidly over a relatively short period (e.g. by a great flood).