Jul 19, 2006 15:03
Software Engineering Lession Number YOU-SUCK-MR-FORMER-PROGRAMMER:
When deprecating old code, UI objects, columns in data grid, remove the code. Don't set it to be invisible, column width = 0, etc. If you have to leave it in, LEAVE A COMMENT SAYING WHY.
Leave a comment
Comments 12
Reply
Reply
I am waiting for you to get AIDS so I can be even more joyful
Reply
// except that it really improved the feng shui
// of the whole coding block.
Reply
Reply
actually, our whole exchange following was in a series of haiku as well
Reply
and I don't know why, except
improved block's feng shui
Reply
Take the Java API for instance, much of it is depreciated (Date for example), but if they actually removed it, it would break all kinds of programs.
At the very least, old API should exist as mappings to new API.
Now, the exception to this rule is if there is a gaping security hole. In this case, I still wouldn't remove the methods, since that would result in a vague or even useless exception to be thrown, but rather have that method do nothing but print an error message or throw a more descriptive exception (depending on language you are working in).
Reply
Reply
Reply
Of course, there's no real way to do versioning, but since I'm rewriting the application from scratch in a new language, it's not such a big deal.
Reply
Leave a comment