this post was submitted on 02 Oct 2023
1514 points (98.3% liked)

Programmer Humor

32571 readers
455 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] psycho_driver@lemmy.world 58 points 1 year ago (4 children)

My favorite part is looking at my ancient code and thinking "Holy hell I don't remember being that smart. What happened?"

[–] kevincox@lemmy.ml 31 points 1 year ago

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?

Brian Kernighan - The Elements of Programming Style, 2nd edition, chapter 2

[–] rob64@startrek.website 11 points 1 year ago

A similar phenomenon is knowing you're going to need to go back and update some older section of code and when you finally get around to it, it turns out you wrote it that way to begin with. It's like... I didn't think I knew about this approach before...

[–] Aceticon@lemmy.world 8 points 1 year ago

"I'm dumber but wiser" - me, hopefully

[–] punkwalrus@lemmy.world 4 points 1 year ago

This right here. Plus stuff like "this is the functions section" and "this is the main script" helps make shell scripts more readable because functions have to come first, and if you just want to get to the main point, you can skip the functions section.