r/ProgrammerHumor • • Sep 23 '22

Refactoring "Just working solution ".

Post image
54.8k Upvotes

355 comments sorted by

View all comments

29

u/GrinningPariah Sep 23 '22

Am I the only one who fucking loves refactoring? It feels like spring cleaning.

17

u/damagednoob Sep 23 '22

Absolutely. Inherited a mess of a lambda function. Wrapped that sucker in unit tests, got to 100% code coverage then refactored the shit out of it. Two days later I've delivered zero additional business value but I feel fucking great.

7

u/facherone Sep 23 '22

Congratulations! We feel you :D

3

u/TheOriginalSmileyMan Sep 23 '22

I want to marry you!

16

u/bphase Sep 23 '22

It's the rare time I get to actually improve things, instead of just shoveling yet another layer of shit to the pile of bullshit codebase. So no

2

u/Antrikshy Sep 23 '22

Updating dependencies can be so cathartic.

3

u/GrinningPariah Sep 23 '22

Nothing feels better than deleting code. Ripping out huge chunks of dead weight spaghetti like "and we don't need THIS anymore!"

1

u/CheithS Sep 23 '22

Depends on the $ amount attached to getting wrong.

Seen a few people encouraged to leave for unnecessary refactoring that didn't turn out well.

1

u/GrinningPariah Sep 24 '22

Those places deserve their trash code.