Hacker News
My temporary PHP fix from 2014 has nearly 20M installs. Today I'm deprecating it
jakeasmith
|next
|previous
[-]
layer8
|root
|parent
|next
[-]
HackerThemAll
|root
|parent
|previous
[-]
https://www.npmjs.com/package/is-odd
https://www.npmjs.com/package/is-even
https://www.npmjs.com/package/left-pad
JaggerJo
|root
|parent
[-]
junon
|root
|parent
|next
[-]
So of course they don't make sense now. But they were created for a reason. Before even Markov chains were a fad - let alone LLMs - we were trying to be as efficient as possible and maximize code reuse I stead of writing the same helper functions over and over again. That's what you're seeing.
b112
|root
|parent
[-]
The hubris of humanity... what you're describing is akin to the US Constitution and the Founding Father's goals, ending in Donald Trump.
Node is the same horror.
Nice ideas, great premise, and all turned to garbage in the end.
yurishimo
|root
|parent
|previous
[-]
Years ago when npm was just getting started there was a lot of experimentation and land grabbing for packages. A few “prolific” developers were pushing these tiny utilities and then using them in their own projects which ended up being required as deps in other projects and then snowballed into is-odd being included in webpack at some point (I think I have that timeline roughly correct).
It’s still a crappy problem for sure but it’s not fair to paint most JS devs with a brush so broad.
laruss5
|next
|previous
[-]
TimWolla
|root
|parent
[-]
> This package is abandoned and no longer maintained. No replacement package was suggested.
Both adding it as a dependency using composer and installing it from a lockfile results in:
$ composer require jakeasmith/http_build_url
[…]
Package jakeasmith/http_build_url is abandoned, you should avoid using it. No replacement was suggested.
[…]
$ rm -r vendor/
$ composer install
[…]
- Installing jakeasmith/http_build_url (1.0.2): Extracting archive
Package jakeasmith/http_build_url is abandoned, you should avoid using it. No replacement was suggested.
[…]
[1] https://packagist.org/packages/jakeasmith/http_build_url
amhoab
|next
|previous
[-]
AltruisticGapHN
|next
|previous
[-]
I rarely see people use that feature yet tons of repos on Github are essentially dead.