this post was submitted on 30 Jan 2026
707 points (97.4% liked)

Programmer Humor

28973 readers
1064 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Randelung@lemmy.world 15 points 21 hours ago (2 children)

I recently started a new job. We use Java. There's a class that does a few things based on explicit arguments only to decide whether to use an FTP or file output, and you supply all parameters yourself. A whole ass Rube Goldberg machine that could be replaced by a single line of Files.writeString.

Also, there's a great video on YT "Stop writing classes" that is incredibly relevant.

[–] Buddahriffic@lemmy.world 7 points 17 hours ago

Yeah, Java's enforcement of everything must be a class put me off of the language right from the start. I was already used to C++ at that point and hated that I couldn't just write a quick little test function to check something, it needed a bunch of boilerplate to even get started.

I still think C++ has a great balance between object oriented and sequential programming. Not sure if it's the best, but I can't think of ways to improve on it, other than built in concurrency object stuff (like monitor classes that have built in locks that prevent more than one thread from accessing any of its functions at the same time, basically guaranteeing any code in it has mutual exclusion).

[–] Windex007@lemmy.world 8 points 19 hours ago

This hits.

I stepped into a similar implementation. Took like 6 months and 10 people to support...

... changing the URL of the sftp server we connected to.