this post was submitted on 05 Jun 2025
221 points (98.3% liked)

Programmer Humor

23861 readers
3074 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
[โ€“] CameronDev@programming.dev 13 points 2 days ago (1 children)

Use a good IDE, and readding the imports is pretty easy.

I find commented code to be a bit of a smell on its own, just delete it, and if you really need it again, dig it out of source control.

[โ€“] jjjalljs@ttrpg.network 10 points 2 days ago

Yeah. My last job, a PR with commented out code typically wouldn't get approved. Either leave it in version history, or stick it on a branch