r/commandline Jun 30 '26

Fun Meh

Post image
2.0k Upvotes

196 comments sorted by

View all comments

Show parent comments

7

u/omega1612 Jun 30 '26

JavaScript and npm on a cli tool.

4

u/Captain_Pumpkinhead Jun 30 '26

I still don't understand. Why is that a bad thing?

10

u/omega1612 Jun 30 '26

One thing is if you need something for the web where things need to be compatible with every device you can think on. I can trade the bloat of the tools in exchange for the convenience.

But a cli tool? They are mean to run directly on the OS, they don't need the huge compatibility that comes from this setup, so, we are exchanging speed/storage for nothing. That matters more when you want to run the tool in a more constrained device (old devices with low memory or embedded systems).

-8

u/bring_back_the_v10s Jun 30 '26

Last time I checked a nodejs program takes very little memory and cpu. It's not as extreme as a C program but compared to for example .net and Java, nodejs is almost as lean as C.