LKML: New syscall: leftpad()
I hate to spoil the fun for everyone.But there is actual value in doing things the npm/unix way.Just yesterday I used a module to turn numbers to comma separated strings 10000 -> 10,000Could I have written a function to do it ?SureBut every less line of code I need to write saves me time.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.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.To me its an improvement over the state of affairs from the past.Its also cheaper to switch dependencies - imagine if the leftpad disaster was somewhere in the window's kernel ? or in std:: ?There is always trade-offs in every decision you make in software - I think we are moving in the right direction.Just need to make package creation immutable.