this post was submitted on 31 Jul 2024
737 points (99.3% liked)

Programmer Humor

19149 readers
943 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 29 points 1 month ago (2 children)

There's a js runtime called bun that is 90-something% feature equivalent to node and also has built in alternatives to many packages like express and bcrypt. I haven't used it myself so I can't speak to its quality but it's always nice to see a little competition

[–] [email protected] 20 points 1 month ago (2 children)

So is Deno! You can easily import npm: and node: packages and run typescript without transpiling. With Bun and Deno there's no reason to use Node tbh.

[–] [email protected] 5 points 1 month ago (1 children)

For starting new projects i absolut agree. At work we have a legacy react app that just will not run on bun and for deno we would probably have to rewrite some stuff.

[–] [email protected] 5 points 1 month ago (1 children)

I've updated some legacy nodejs to Deno recently and it's actually not bad! If you're using serverless Denoflare is super convenient and DTN is a tool for building Deno to NPM (both esm and commonjs) so you can have easy backwards compatibility if needed, it even shims all of the Deno standard lib.

It's really impressive what Deno and Bun people have done - for the first time I actually somewhat enjoy server side JS!

[–] [email protected] 3 points 1 month ago

That sounds neat. For our nodejs server this could be done without too much effort. Will keep that in mind, thanks. But I also have to check for the cra app we’re having a lot of issues with.

[–] [email protected] 2 points 1 month ago

node now supports stripping types, which is good enough for one-off TS snippet.
(available only in nightly for now)

[–] [email protected] 4 points 1 month ago

Bun is used by us in production, in dev, everywhere. It's great. We don't even use (p)npm to build js packages on our docker images for apps anymore.