this post was submitted on 12 Apr 2024
800 points (98.8% liked)

Programmer Humor

19512 readers
408 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
[–] Skullgrid@lemmy.world 38 points 7 months ago (1 children)

You avoided writing spaghetti code.

Congratulations! Now maintain this piece of shit lasagna that takes place over multiple layers of abstraction and repositories.

[–] Anticorp@lemmy.world 25 points 7 months ago (1 children)

So many developers don't seem to understand the point of modularization and add lots of abstraction just for abstraction's sake. It's hella frustrating to take over a project like that.

[–] magic_lobster_party@kbin.run 9 points 7 months ago (1 children)

We have those parts of code someone wrote years ago that is heavily abstracted for no reason at all other than that the developer thought it might be good. It’s just endless clicking on methods just to find no code at all and then you have to deep dive to figure out where stuff is actually computed.

Make it just one simple method call? Nah, it should be divided into 10 different abstract classes because whatever reason.

It’s also the most buggy part of the code because no one currently in the team dares to touch it.

[–] Serinus@lemmy.world 2 points 7 months ago (1 children)

And it can be in any language, but typically comes from someone who started with Java.

[–] adespoton@lemmy.ca 1 points 6 months ago

It happens in English too — just think about how many people never learned how to properly use paragraphs, quotations, hyphens, parentheses and footnotes.

It’s just the human condition to attempt to communicate in known blobs without thinking about what you’re actually trying to communicate and how it can be most effectively done with the tools at hand.

We’re all single hammer hominids at heart.