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

Programmer Humor

19423 readers
75 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
[–] EnderMB@lemmy.world 191 points 2 months ago (27 children)

I've honestly never understood why someone at Google or Mozilla hasn't decided to write a JavaScript Standard Library.

I'm not opposed to NPM, because dumb shit like this happens everywhere. If such a package is used millions of times a day, perhaps it would make sense to standardise it and have it as part of the fucking browser or node runtime...

[–] seatwiggy@lemmy.dbzer0.com 28 points 2 months ago (6 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

[–] drmoose@lemmy.world 19 points 2 months ago (4 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.

[–] lemmesay@discuss.tchncs.de 2 points 2 months ago

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

load more comments (3 replies)
load more comments (4 replies)
load more comments (24 replies)