this post was submitted on 28 Jan 2024
1045 points (97.6% liked)

Programmer Humor

19480 readers
206 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 4 points 9 months ago (1 children)

I think that undersells most of the compelling open source libraries though. The one line or one function open source libraries could be starved, I guess. But entire frameworks are open source. We're not at the point yet where AI can develop software on that scale.

[โ€“] [email protected] 2 points 9 months ago

I agree wholeheartedly, and I think I failed to drive my point all the way home because I was typing on my phone.

I'm not worried that libs like left-pad will disappear. My comment that many devs will copy-paste stuff for "group by key" instead of bringing in e.g. lodash was meant to illustrate that devs often fail to find FOSS implementations even when the problem has an unambiguously correct solution with no transitive dependencies.

Frameworks are, of course, the higher-value part of FOSS. But they also require some buy-in, so it's hard to knock devs for not using them when they could've, because sometimes there are completely valid reasons for going without.

But here's the connection: Frameworks are made of many individual features, but they have some unifying abstractions that are shared across these features. If you treat every problem the way you treat "group by key", and just copy-paste the SO answer for "How do I cache the result of a GET?" over and over again, you may end up with a decent approximation of those individual features, but you'll lack any unifying abstraction.

Doing that manually, you'll quickly find it to be so painful that you can't help but find a framework to help you (assuming it's not too late to stop painting yourself into a corner). With AI helping you do this? You could probably get much, much farther in your hideous hoard of ad-hoc solutions without feeling the pain that makes you seek out a framework.