3 ms·
It's weird to me that in every other comment thread on Hacker News, people say "good software should do one thing and do it well". And then the topic moves to N
by johnfn 3y ago
It's weird to me that in every other comment thread on Hacker News, people say "good software should do one thing and do it well". And then the topic moves to NPM, and suddenly everyone loses their mind?
- lolc 3y agoHaha ok do something substantial! It's implied.
- jrockway 3y agoA little copying is better than a little dependency.
- throwitaway1123 3y agoThis is part of the UNIX philosophy, but sometimes this gets taken way too far. There is of course the UNIX command "yes", which literally just prints the character "y" over and over again (to skip interactive prompts).
- ericbarrett 3y agoGNU yes will actually repeat any string—the default is of course "y". So it's very handy for scripting, and not really as single-purpose as you'd think.
- throwitaway1123 3y agoYeah it's definitely useful. Still a bash one liner though: function yes { while true; do echo "${1:-y}"; done }
- rini17 3y agoalso, it's actually faster than reading /dev/zero if you need some filler data hahahaha