Readit News logoReadit News
hungryhobbit commented on Closer to the Metal: Leaving Playwright for CDP   browser-use.com/posts/pla... · Posted by u/gregpr07
hugs · 4 days ago
selenium creator here. hi!
hungryhobbit · 4 days ago
You have to love how the OP completely left Selenium out of their "history".
hungryhobbit commented on Mirrorshades: The Cyberpunk Anthology (1986)   rudyrucker.com/mirrorshad... · Posted by u/keepamovin
hungryhobbit · 4 days ago
Absolutely brilliant collection of stories from some really great authors!
hungryhobbit commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
0x457 · 7 days ago
Your indicator of technology maturity is "is there an autocomplete script for my shell" ? I have autocomplete working on any CLI app I make before it's even functional.
hungryhobbit · 6 days ago
Exactly why it's embarrassing that Bun can't handle something so basic.
hungryhobbit commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
nosianu · 8 days ago
This has nothing to do with the "node world". Such an enormous feature would have to go into ECMAScript. Which is very, very unlikely to ever happen, they may as well design a new language. All those runtimes implement that spec. Expecting them to write an extremely complex new feature that is easily more complicated than everything already implemented (especially with backwards compatibility, and given that the language was not designed for this) would be a bit much.

TypeScript is for compile time checking of a language that was not designed to have them. Runtime types have very different requirements! It has to be in the language from the early design phase, otherwise it will just be a hack with many conditions, restrictions and holes.

TS Types are only partially a description of the underlying types in the code, a very big part instead is that it provides guard rails that prevent you from using a lot of perfectly fine and valid JS code that would however be incompatible with type guarantees. You pay the price of using only a part of the large space of JS code possibilities for guarantees. If you were to put that into the runtime you would end up with two different versions of the language. If you still want to support the full JS you would end with two runtimes in one (or one that has so many branches and conditions that maintaining that runtime is a real beast).

hungryhobbit · 7 days ago
ECMAScript community is actually dipping their toes in the water of adding typing to the spec, and it's at Stage 1: https://github.com/tc39/proposal-type-annotations.

Now of course, this would only add type syntax to the language, not true processing: there's nothing in the spec about actually handling them. Still, it's a step in that direction, so I wouldn't say "very unlikely to ever happen" ... "still a long ways off (if ever)" would be more accurate.

hungryhobbit commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
yahoozoo · 8 days ago
What backend framework is the go to these days? Still Express?
hungryhobbit · 7 days ago
Next is where it's at these days in my opinion. You get a full-featured client-side React framework (the only one that supports modern React SSG), and then on top of it you get a better-organized approach to doing everything you can do with Express.

And do mean everything: I run an entire Postrgraphile server through Next (and you can easily do the sme with Supabase or a similar tool)!

hungryhobbit commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
prmph · 7 days ago
I agree. I've tried the Node TS and test runner features, and they are still (not yet) as good as Bun's. So for now sticking with Bun for those.

Really, in the Node ecosystem you eventually learn not to put all your eggs in one basket. Different things excel in different aspects. Here is my preferred setup for now:

Bun.js: As a Node runtime, and for TS execution and test running. I tried lots: TSX, TS-Node, Node itself

NPM For executing tooling scripts

PNPM For installing dependencies. It's simply better than the rest (npm, yarn, bun) for several reasons

Biome.js For linting (superior to every other tool I tried)

hungryhobbit · 7 days ago
The bun test runner is definitely a lot better for testing than Node's.

But really, any test runner is beter than Node's: that thing is awful. It's like they looked at all the test runners in existence, and instead of copying what they all did, decided "let's make things harder for no apparent reason."

hungryhobbit commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
rmonvfer · 7 days ago
I’m not a heavy JS/TS dev so here’s an honest question: why not use Bun and forget about node? Sure I understand that not every project is evergreen but isn’t Bun a much runtime in general? It supports TS execution from day 1, has much faster dependency resolution, better ergonomics… and I could keep going.

I know I’m just a single data point but I’ve had a lot of success migrating old node projects to bun (in fact I haven’t used node itself since Bun was made public)

Again, I might be saying something terribly stupid because JS/TS isn’t really my turf so please let me know if I’m missing something.

hungryhobbit · 7 days ago
Bun is still a toddler: it's not ready for primetime.

Simple example: you know how at the command line you can type "npm run", and then type a character or two, hit tab, and the appropriate script from your `package.json` will autocomplete? And if you keep going (eg. "npm run knex") you can do the same thing to autocomplete arguments?

Bun still hasn't figured out how to do that (https://github.com/oven-sh/bun/issues/6037), even though they can all but copy NPM's (already written) completions. I really liked using bun when I played around with it (and it ran my codebase perfectly, without issue) ... but if they can't handle something as simple as Bash completions, they're clearly not ready for the big leagues.

hungryhobbit commented on Good system design   seangoedecke.com/good-sys... · Posted by u/dondraper36
hungryhobbit · 8 days ago
This is nonsense masquerading as advice. "Add indexes ... but don't add too many" is a perfect example. It's 100% correct ... and also 100% something no one can actually change their actions based on ... which means it's also 100% worthless advice.
hungryhobbit commented on How to rig elections [video]   media.ccc.de/v/why2025-21... · Posted by u/todsacerdoti
devjab · 10 days ago
> Not familiar with that but I imagine that is going to be a controversial statement.

I'm not sure if it's fair to call it rigging, but there was a massive smear campaign against a judge nominated for their constitutional court. Leading to the nomination being withdrawn when it really should've been an appointment as usual. Which is likely the first massive step toward Germany politicising one of the foundations of their democracy, similar to how the USA supreme court seems like it's red vs blue when looked on from the outside.

I'm guessing this conference is rather left leaning, which is why they'd called that rigging, but there wasn't election fraud. It's an issue of course, since this means that rich people can essentially buy massive influence on the German democracy by clever use of social media and lies. Which may seem like the norm to a lot of people on HN, but that's not how it has traditionally been in Germany.

hungryhobbit · 10 days ago
There's no "seeming": the current US Supreme Court is nakedly political.
hungryhobbit commented on I'm worried it might get bad   danielmiessler.com/blog/i... · Posted by u/conzar
otikik · 11 days ago
> We start to see unrest and/or riots against "the rich" because there are no jobs, and people are being evicted

I am surprised this has not already happened. The combination of rampant inequality and lax gun laws (in some states) is very explosive.

hungryhobbit · 11 days ago
The rich have been very effective at convincing the poor to use those guns against each other (and scientists) instead of the people responsible for their poverty.

u/hungryhobbit

KarmaCake day109December 23, 2021View Original