this post was submitted on 31 Jul 2024
718 points (99.3% liked)
Programmer Humor
19463 readers
372 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
440GB weekly for "is number". What in the world is that package doing?
Anti Commercial-AI license
is-number is a one-line function. (though it's debatable if a function that complex should be compressed to one line)
You may have heard of a similar if more extreme "microdependency" called is-even. When you use an NPM package, you also need all the dependencies of that package, and the dependencies of those dependencies recursively. Each package has some overhead, eventually leading to this moment in time.
Web bloat in a nutshell and why we need to switch to things like Web Assembly more than ever. It's not WASM, but I used Laminar which is a Scala.js library, and it's the absolute pinnacle of (frontend) web development. Scala in general is just really great for idiomatic web code, its flexibility is unbeatable.
Another amazing alternative would be anything Rust. In fact I've used that much more than Scala for web. I've mainly used Leptos for full-stack and and Actix for backend, but I've seen Dioxus and Axum in good use and they both seem really great too.
Apparently Lemmy uses Leptos for its UI so... that's a +1.
I'm not sure, this is a valid estimate. If they were to replace
is-number
with its contents, that would mean that the economy is only in HTTP-related overhead.It maybe will make difference because of building phase, lock-files, package-files, but I am not sure that data-traffic difference is that big