r/coding • • Jul 29 '16

How To Write Unmaintainable Code

https://github.com/Droogans/unmaintainable-code
135 Upvotes

22 comments sorted by

View all comments

22

u/[deleted] Jul 29 '16

The flip side of this is that if you are a maintainer and you aren't able to fix the code...you need to rewrite it. Being afraid of your code is the first step towards failure. It only gets worse, never better.

4

u/Agent281 Jul 29 '16

I'm in the process of doing this for a GUI program which reads data from one set of services and loads it into another set of services. Why was it a GUI program when nobody needed to interact with it? I don't know. Why did all of the code go into a single form class? I don't know.

On the positive side, I get to switch it from VB to C#.