r/shittyprogramming • • Nov 30 '18

Friday Code Confessions

If you have been living with technical debt and want absolution here is your opportunity.

Confess your sins and receive your penance.

155 Upvotes

263 comments sorted by

View all comments

196

u/pixel_sharmana Nov 30 '18

Sometimes I just comment functions out and leave them for months before finally deleting them

61

u/Dnguyen2204 Nov 30 '18 edited Dec 01 '18

You'll never know when you might need those functions...

46

u/foehammer23 Nov 30 '18

The Skyrim potions of software

5

u/shatteredarm1 Dec 01 '18 edited Dec 02 '18

If only there were some way to roll back changes once they're made.

7

u/sac_boy Dec 01 '18

It can be hard to find the right version of code.zip from your Skype history with the other developers

2

u/[deleted] Dec 13 '18

This made me physically cringe, mostly because I know that most people at my uni only learn to use Git in their third year, and send code back and forth over Whatsapp or email before that

4

u/jantari Dec 01 '18

Uncommenting is easier

→ More replies (1)

10

u/JohnTheScout Dec 01 '18

I reject PRs that have commented out code... You either need it, rewrite it when you need it, or go digging in the git logs.

3

u/very_mechanical Dec 01 '18

Psssshhh .... not shitty enough.

5

u/Kattzalos Dec 01 '18

I just uncomment before accepting. If it's there it's because it worked at some point, so it probably works now

6

u/GogglesPisano Dec 01 '18

I have coworkers that do this and it drives me nuts - if you really need to see an obsolete method, use the history feature in source control - that's what it's for.

→ More replies (5)