5 ms·
Javascript is the opposite of a batteries-included language, so there is and has been an enormous amount of wasted effort duplicating functionality that should
by thrower123 5y ago
Javascript is the opposite of a batteries-included language, so there is and has been an enormous amount of wasted effort duplicating functionality that should have been in a standard library.
- pabs3 5y agoAre there any movements towards creating a standard library for JavaScript (or at least server-side JS)?
- wizzwizz4 5y agoThere are many, many, many such movements. Which somewhat defeats the point, really.
- thrower123 5y agoThis is why I have 107 different point-releases of lowdash and jquery in my node_modules folder
- pitaj 5y agoI don't know what you mean by "point-releases". I understand the hyperbole but pretty much every package manager will minimize different versions by installing one that's compatible with all requirements.
- NullPrefix 5y ago>107 different point-releases of lowdash Would totally believe that lowdash is a lodash fork.
- chenmike 5y agoWe’re talking about a terminal colorization function though. Fragmentation of packages aside, are there any other languages that have terminal text colorization built into the standard library?
- thrower123 5y agoEvery serious programming language I've ever used... https://docs.microsoft.com/en-us/dotnet/api/system.console.foregroundcolor?view=net-5.0 https://docs.microsoft.com/en-us/dotnet/api/system.console.f... It's even easier on UNIX-like terminals, where ANSI escape codes should work.
- chenmike 5y agoOkay? You gave one example, C#, and extrapolated that to every single serious programming language you've ever used. I just took a quick look and none of Java, ruby, python, and PHP has this functionality in its standard library. Also yes ANSI codes work but it's not easy to write or read, so that's what these libraries are for. I'm not a JS apologist but it seems inaccurate to imply that its need for a terminal colorization library is a unique deficiency of the language.