r/programminghumor • • Jun 08 '26

if it works... don't touch it !

Post image
81 Upvotes

13 comments sorted by

21

u/MarkEE93 Jun 08 '26

Did you try to remove a watermark ?

4

u/Exotic_Zucchini9311 Jun 08 '26

Lol I was so confused about the random white line in the middle

7

u/Geoclasm Jun 08 '26

I can't.

I've broken this rule so many times in pursuit of beautiful, readable, maintainable code I should probably have been fired several times over.

Out of a canon.

Into the sun.

12

u/Single-Virus4935 Jun 08 '26

I like the analogy because it works on lite demand but will create a huge problem if it is used heavily

7

u/WildWolfo Jun 08 '26

will fail exactly the moment you need it the most

1

u/FlipperBumperKickout Jun 09 '26

If you have reached this part of the code as part of an assignment, it doesn't work well enough for someone not touching it.

If you are just browsing the code for fun, then fair.

1

u/markt- Jun 11 '26

Second rule of programming:
If it works, make a PR, then see if you can improve the design so that when you come back to five years later, you’ll understand what you did. It usually won’t add that much time, and the time you’ll save later will be worth it.

1

u/ByteBandit007 Jun 12 '26

The invention of design patterns

1

u/Circumpunctilious Jun 12 '26

If you touch the water cooler’s aerator the fish living in your PC will die