logoalt Hacker News

Apocryphon • today at 7:11 PM • 1 reply • view on HN

Writing left-pad isn't the issue, the issue is that projects were importing a one-liner package and blindly using it, which requires no skill.

> Second, even if the package’s logic is correct, I can’t help but be amazed by the fact that developers are taking on dependencies for single line functions that they should be able to write with their eyes closed. In my opinion, if you cannot write a left-pad, is-positive-integer, or isArray function in 5 minutes flat (including the time you spend Googling), then you don’t actually know how to code. Hell, any of these would make a great code screening interview question to determine whether or not a candidate can code.

> Finally, stringing APIs together and calling it programming doesn’t make it programming. It’s some crazy form of dependency hacking that involves the cloud, over-engineering things, and complexity far beyond what’s actually needed.

Obviously LLMs make the situation even more dire, but I think people are overlooking that the industry was automating itself out of programming as a craft even before them. It's just the automation involved reuse of the work of other humans.


Replies

IshKebab • today at 7:35 PM

Sorry but there's no way that assembling libraries - even stupid ones like left-pad (which I'll note was an extreme example) - is in no way comparable to just saying "Claude make this program for me", which is pretty much where we are now. My wife can do the latter but not the former.

This isn't just "a bit more automation". It's "now we don't need lift operators".