LKML: New syscall: leftpad()
I hate to spoil the fun for everyone.<p>But there is actual value in doing things the npm/unix way.<p>Just yesterday I used a module to turn numbers to comma separated strings 10000 -> 10,000<p>Could I have written a function to do it ?<p>Sure<p>But every less line of code I need to write saves me time.<p>Programming is fundamentally a creative field ( which means there is no absolute truths ) - and each individual developer should be given the freedom judge when to write code and when to use other's people modules.<p>I would say that this whole fiasco just proves how awesome programming has become - remember the days when adding a dependency was hell ? Now we live in a world where adding dependency has so little cost that we rather not even spend 10 minutes writing a function.<p>To me its an improvement over the state of affairs from the past.<p>Its also cheaper to switch dependencies - imagine if the leftpad disaster was somewhere in the window's kernel ? or in std:: ?<p>There is always trade-offs in every decision you make in software - I think we are moving in the right direction.<p>Just need to make package creation immutable.