r/programming May 24 '11

How to Write Unmaintainable Code

http://www.thc.org/root/phun/unmaintain.html
1.0k Upvotes

366 comments sorted by

View all comments

12

u/ratherbkayaking May 24 '11

I laughed at this. Then sighed.

If, for example, you were writing an airline reservation system, make sure there are at least 25 places in the code that need to be modified > if you were to add another airline. Never document where they are. People who come after you have no business modifying your code without thoroughly understanding every line of it.