My temporary PHP fix from 2014 has nearly 20M installs. Today I'm deprecating it
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
My temporary PHP fix from 2014 has nearly 20M installs. Today I'm deprecating it
Unofficial Hacker News client; not affiliated with Y Combinator.
jakeasmith · · focus · HN ↗
HackerThemAll · · focus · HN ↗
<a href="https://www.npmjs.com/package/is-odd" rel="nofollow">https://www.npmjs.com/package/is-odd
<a href="https://www.npmjs.com/package/is-even" rel="nofollow">https://www.npmjs.com/package/is-even
<a href="https://www.npmjs.com/package/left-pad" rel="nofollow">https://www.npmjs.com/package/left-pad
<a href="https://www.npmjs.com/package/is-whitespace-character" rel="nofollow">https://www.npmjs.com/package/is-whitespace-character
<a href="https://www.npmjs.com/package/isarray" rel="nofollow">https://www.npmjs.com/package/isarray
JaggerJo · · focus · HN ↗
junon · · focus · HN ↗
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.
wat10000 · · focus · HN ↗
It’s a case of doing something without understanding why it’s done. Packages are good, code sharing is good, so use it for everything. But it misses why they’re good.
junon · · focus · HN ↗
Also, way more fun.
wat10000 · · focus · HN ↗