this post was submitted on 17 Jun 2023
149 points (100.0% liked)

Programmer Humor

32555 readers
479 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
top 15 comments
sorted by: hot top controversial new old
[–] dipbeneaththelasers@kbin.social 11 points 1 year ago

The most permanent solution is jank that works.

[–] brokenneon@kbin.social 10 points 1 year ago (1 children)

I always say I write throwaway code that never dies. I shutter to think how many pieces of code I wrote 10+ years ago are still buried deep in systems running today. Shutter.

[–] zalack@kbin.social 10 points 1 year ago

I think you mean shudder. Unless the code you wrote is running on cameras.

[–] abcd@feddit.de 9 points 1 year ago (1 children)

This is so true!

Last year I had a project to upgrade the PLC of a machine to the newest generation. As usual the customer was not able to tell me the requirements they had. They told me to look in the old software...

It turns out it was 30+ years old software where you had to program in a cmd line (Siemens S5 if you know PLCs). I had to migrate everything to the next generation (S7) to be at least a little bit productive. Then I thought come on lets try to migrate to the current generation (TIA) to be even more productive.

At the end everything was nearly ready to be compiled and uploaded to the PLC. So I fixed some minor compile time issues, deleted around 50-75% of the old program (old stuff which went obsolete), changed some variable names, refactored some stuff and here we are: The same 30+ year old software is running strong. 24/7 since 6 months without issues 😁

[–] birdjazz@lemmy.world 7 points 1 year ago

Most projects written as a Demo, are still in production 3 years later. Still waiting for the "real" solution.

If you spend a lot of time thinking of future options, nobody will ever need them.

If you spend more time on the API with a partner, the partner will be replaced, probably before the solution is installed at all locations.

[–] celipon@kbin.social 6 points 1 year ago (1 children)

It is always the worst code you wrote that survives. There's a terrible university dorm management software I wrote eight years ago as a student. They still use it. The crazy complicated test framework wrappers for some hardware I wrote five years ago. They still use it. The godawful and crazy complicated communication protocol I whipped up four years ago, still used in medical equipment today.

[–] masterspace@kbin.social 7 points 1 year ago

The crappy scripts that I wrote while teaching myself to code at an electrical engineering / architecture firm are used more often than the professional software I've built for FAANG and Fortune 500 companies since.

[–] alp@kbin.social 4 points 1 year ago

I really think that optimization courses should have a special lecture in the optimization of optimization...

[–] nobodyspecial@kbin.social 4 points 1 year ago (1 children)

As with relationships, if you make a mistake you'll wind up supporting it for life.

I kid, I kid. We all know to job hop every 2 years for better compensation. It'll be someone else's problem after that.

[–] mfz@kbin.social 1 points 1 year ago

Yes, yes, and someone else's problem will be your problem after the job hop! :)

[–] Kerb@discuss.tchncs.de 3 points 1 year ago

There is nothing more permanent than a temporary solution

[–] longshaden@beehaw.org 2 points 1 year ago

oof, this comic hurts so bad it's funny.

[–] Thndrchld@beehaw.org 2 points 1 year ago

I feel personally attacked.

[–] emi@lemmy.blahaj.zone 2 points 1 year ago (1 children)

I have a mental image of 50+ lines that could be replaced with 15 if someone just used a loop.

[–] darcy@sh.itjust.works 2 points 1 year ago

hey depending on the code, it could run faster without the loop