Being Bit(ten) and Byting Back

Thursday, July 07, 2005

I Love C++ Exceptions

this is an article about C++ exceptions I just read. Someone I know was telling me about this code base that he works on. It was designed and written by a bunch of "architects" who were originally C programmers and imagined they were great C++ programmers. His boss thinks that the code is so good they are going to use it again to build their next generation product. The code is a horrendous spaghetti code of if's, else's and multiple copies of the same code in ten different places, functions that are a hundreds of lines long (if not thousands), class interfaces that have 10 to 20 methods. The funny part is that they think its object-oriented just because they use the class keyword. This friend of mine has plenty of ideas to improve matters to clean up. Use more exceptions. Refactor. Make use of patterns, you know actually apply what you learnt in school. Basic stuff. His team shoots down his ideas. They say its "Too much work". And then they wonder why they have so many bugs and are always behind schedule. And then they wonder some more... Such is the lot of all programmers who work for a living.

0 Comments:

Post a Comment

<< Home