Re:A notable JavaScript developer shamelessly copied one of ...
by BiteCode_dev on Sunday September 26, 2021 @09:31AM
(#28660742)
Because a lot of the JS community comes from the design world, and they care about colors more than other communities.
In Python, the experience has been the opposite. We had to wait until recently to have once very good decent terminal coloring lib: rich.
Re:A notable JavaScript developer shamelessly copied one of ...
by zarzavat on Sunday September 26, 2021 @09:56AM
(#28660922)
It's because it's something that can be easily influential. At some point every sufficiently large CLI tool needs a terminal color library, and if you can make yours 1% better than anything else, then you can make a library that touches a lot of projects, which is great for your resume and improves your job prospects (at least that's what they hope).
Re:A notable JavaScript developer shamelessly copied one of ...
by sofixa on Sunday September 26, 2021 @08:30AM
(#28660369)
There's lots of CLI tools around JavaScript itself. And many third-party developer oriented services ( Firebase, Netlify, etc.) have their CLIs in JS as well.
Re:A notable JavaScript developer shamelessly copied one of ...
by woodruffw on Sunday September 26, 2021 @08:33AM
(#28660386)
Thanks for the context. I do very little work with SaaS services, so I’m extraordinarily ignorant of their CLIs!
Re:A notable JavaScript developer shamelessly copied one of ...
by agustif on Sunday September 26, 2021 @10:55AM
(#28661345)
If you ever are interested, there's some cool stuff in the area like oclif framework. (from heroku) for building nice CLI tools...
Very interesting mix of JS+CLI indeed
Re:A notable JavaScript developer shamelessly copied one of ...
by thrower123 on Sunday September 26, 2021 @09:08AM
(#28660587)
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.
Re:A notable JavaScript developer shamelessly copied one of ...
by chenmike on Sunday September 26, 2021 @10:56AM
(#28661355)
We’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?
Re:A notable JavaScript developer shamelessly copied one of ...
by thrower123 on Sunday September 26, 2021 @01:52PM
(#28662930)
Every serious programming language I've ever used...
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.
Re:A notable JavaScript developer shamelessly copied one of ...
by chenmike on Sunday September 26, 2021 @06:19PM
(#28665176)
Okay? 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.
Re:A notable JavaScript developer shamelessly copied one of ...
by pabs3 on Sunday September 26, 2021 @09:21AM
(#28660658)
Are there any movements towards creating a standard library for JavaScript (or at least server-side JS)?
Re:A notable JavaScript developer shamelessly copied one of ...
by wizzwizz4 on Sunday September 26, 2021 @09:38AM
(#28660797)
There are many, many, many such movements. Which somewhat defeats the point, really.
Re:A notable JavaScript developer shamelessly copied one of ...
by thrower123 on Sunday September 26, 2021 @09:45AM
(#28660843)
This is why I have 107 different point-releases of lowdash and jquery in my node_modules folder
Re:A notable JavaScript developer shamelessly copied one of ...
by NullPrefix on Sunday September 26, 2021 @11:13AM
(#28661485)
>107 different point-releases of lowdash
Would totally believe that lowdash is a lodash fork.
Re:A notable JavaScript developer shamelessly copied one of ...
by pitaj on Sunday September 26, 2021 @10:23AM
(#28661116)
I 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.
Re:A notable JavaScript developer shamelessly copied one of ...
by colejohnson66 on Sunday September 26, 2021 @08:13AM
(#28660254)
I’d wager a guess that bootcamps teaching JS producing lots of people. Eventually, some will want to recreate something from scratch. A law of large numbers thing. I could be wrong though.
As for where it’s going, Node based CLI programs. For example, `yarn upgrade-interactive` uses it (a chalk-like module)
Re:A notable JavaScript developer shamelessly copied one of ...
by chakkepolja on Sunday September 26, 2021 @10:50AM
(#28661309)
Combination of so much JS programmers being
* Young
* Hipster
* From bootcamps without any other serious knowledge.
* A culture of resume padding
* A total lack of care about security, performance or reliability.
Re:A notable JavaScript developer shamelessly copied one of ...
by gotoeleven on Sunday September 26, 2021 @11:06AM
(#28661434)
Riddled with insecurity yet somehow lacking humility.
Re:A notable JavaScript developer shamelessly copied one of ...
by cratermoon on Sunday September 26, 2021 @01:20PM
(#28662642)
For both definitions of "insecure"
Re:A notable JavaScript developer shamelessly copied one of ...
by datenarsch on Sunday September 26, 2021 @01:24PM
(#28662689)
I think it's because they try to impress their non-technical friends with flashy colourful and matrix-like terminal windows and come off as hackers when in reality most of them don't even know what a stack overflow is.
Re:A notable JavaScript developer shamelessly copied one of ...
by woodruffw on Sunday September 26, 2021 @03:13PM
(#28663674)
This kind of programming elitism is a general bummer: what good does it do to gatekeep “hacker” in this way?
Even the context is absurd: we’re on a website that calls itself “Hacker News” but caters chiefly to the relatively narrow and un-hacker-like interests of a handful of overcapitalized investors.
Re:A notable JavaScript developer shamelessly copied one of ...
by Lammy on Monday September 27, 2021 @05:42PM
(#28676390)
I took it to mean a second definition describing a particular aesthetic identity, e.g. dark-mode everything, tiny and/or monospace fonts, use of the word "rice" as a verb, etc. I'm totally down for two of those so this isn't said with disdain ;)
Perhaps "hax0r" would be more appropriate.
Re:A notable JavaScript developer shamelessly copied one of ...
by leppr on Sunday September 26, 2021 @08:15AM
(#28660271)
You only need to read the linked Twitter thread to get a couple examples.
Re:A notable JavaScript developer shamelessly copied one of ...
by woodruffw on Sunday September 26, 2021 @08:23AM
(#28660322)
I read the thread, and it sounds like these libraries end up in what I think of (from other ecosystems) as “core” tooling: package managers, linters, &c. I definitely wasn’t expecting that: most of the other ecosystems I’ve interacted with have had a “vendor or reimplement” mentality when it comes to dependencies in common tooling.
Re:A notable JavaScript developer shamelessly copied one of ...
by 5560675260 on Sunday September 26, 2021 @12:05PM
(#28662020)
Overwhelming majority of modern web frontend development is done with build tools written in JS. Node is a popular choice for backend and that also generates a lot of lines of terminal output.
I spend virtually my entire workday in a terminal, and I’ve never once needed a CLI tool written in JS. Where is all this code going?