this post was submitted on 02 Jul 2023
178 points (97.8% liked)

Programmer Humor

33631 readers
372 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 6 comments
sorted by: hot top controversial new old
[โ€“] independantiste@lemmy.world 5 points 2 years ago* (last edited 2 years ago)

Removing old code that happens to be terrible because you wrote it while you were tired and so you can shrink it from 50 lines down to 10 ๐Ÿ˜Œ๐Ÿ˜Œ๐Ÿ˜Œ

[โ€“] aaaantoine@lemmy.world 2 points 2 years ago

Removing it even refactoring old code can be very therapeutic.

[โ€“] DeriHunter@lemmy.world 2 points 2 years ago

This is not humor, it's a fact lol

[โ€“] vuks@lemmy.world 1 points 2 years ago

Most of my recent work was updating and refactoring old code, this hits right home lol

[โ€“] LeylaaLovee@lemmy.fmhy.ml 1 points 2 years ago (1 children)

Humans just like feeling like they're better than another human, deleting someone else's code is loudly saying that you're better than them in some metric. Nothing wrong with it, but that's why writing code feels less powerful than yeeting other people's shit.

So if I delete my own code, I feel better than myself!

I do it all the time, that's awesome for my said esteem.