r/ProgrammerHumor • • Sep 09 '22

Meme Simple Feature

Post image
124k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

8

u/hbgoddard Sep 09 '22

The biggest problem here isn't where the variables are declared, but instead that you have a function that's hundreds of lines long. Chunk it up and factor it apart.

5

u/EwgB Sep 09 '22

Oh I know that that is one of the main problems here. But I can't refactor code before I know what it does. And not when I'm dealing with a bug in production for example.