this post was submitted on 14 Mar 2025
445 points (99.6% liked)

Programmer Humor

21487 readers
1421 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
[–] Ephera@lemmy.ml 42 points 13 hours ago (2 children)

Which is why making code readable is so very important. Our juniors and students will think we're ridiculous, when we spend a long time cleaning up some code or choosing the least misunderstandable name for a type. But you fuck that up and then others, as well as your future self, will be wasting many more minutes misunderstanding what your code does.

[–] Sauerkraut@discuss.tchncs.de 2 points 2 hours ago

Readable code is especially important when companies lay people off every six months so you constantly lose expertise

[–] rockerface@lemm.ee 26 points 11 hours ago (1 children)

I treat my future self a few months from now as a separate person who does not remember anything about why or what the specific code fragments do. And I'm grateful to my past self for doing the same.

Plus, you never know when you need to actually delegate supporting a particular piece of a solution to another person.

[–] homoludens@feddit.org 6 points 8 hours ago

Write your code as if the next person that works with it is a violent psychopath who knows where you live.