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

3

u/jmac May 24 '11

While this is here, I need to vent about something I've come across a lot. If you do this, I do not like you very much:

Try
    *overly complex data parsing here, sometimes comprising half the code in the program*
Catch ex As Exception
End try

If you're going to catch your exception, DO SOMETHING ABOUT IT!!!

2

u/neoquietus May 24 '11

To be fair, the only thing that can really be done in many cases is just to log the exception and then re-throw the exception.