In my new job at Sela I came across an application ( written by a client) that needed refactoring. This app has so many coding errors I’ve decided it worth its own post. Why not rewrite the application? You could suggest to rewrite the application but I’m strongly against it. To understand why you MUST read the excellent article Things You Should Never Do by Joel Spolsky. Go ahead and read it, it’s more important then reading this post! Code Duplication Never write the same code twice. I know, it...