Re:A notable JavaScript developer shamelessly copied one of ...
by dudeinjapan on Sunday September 26, 2021 @11:48AM
(#28661842)
In fairness to the OP he did optimize the hell out of his colorette lib, it's about 1/10th the size of the widely adopted chalk lib and performs way better. Back in the day I remember he was (rightly) complaining that the chalk author submitted PRs to get chalk used in as many libs as possible, while colorette (or whatever it was called--it has a different name before) was the technically superior solution to the problem.
Re:A notable JavaScript developer shamelessly copied one of ...
by smoldesu on Sunday September 26, 2021 @01:02PM
(#28662491)
Then he should have made a PR, or at the very least retained the commit history to recognize the original programmer's work. That's non-negotiable, because commit history can be essential to understanding breakage in mature libraries. The fact that anyone would feel comfortable erasing it leads me to believe there's an ulterior motive.
Re:A notable JavaScript developer shamelessly copied one of ...
by honzzz on Sunday September 26, 2021 @01:54PM
(#28662950)
If I understand correctly, the parent is talking about the original author of the library, not the person who forked it.
Re:A notable JavaScript developer shamelessly copied one of ...
by dudeinjapan on Sunday September 26, 2021 @11:24PM
(#28666767)
Yes, this is correct, I was referring to colorette's maintainer. Sorry for confusion.
I think this makes it easier to acquire an inflated sense of importance when an authors package reaches popularity - most of the small packages have some value and aren't as ridiculously worthless as "is-odd"; yet they also don't embody anything particularly unique or difficult to replicate.
> I wonder why there is not a simple math lib.
There are some non-standard but comprehensive math libraries such as MathJS. Although I don't think "is-odd" could be attributed to an absence of standard math libraries.