I recently got a job of which my responsibility was to maintain a c++ based code. The first day I resumed, my task was to trim the code i.e. making the code shorter with the same functionality and a better performance. Everything was going well, methods or functions with 50 to 60 lines of codes were trimmed to be 20 or 30 lines. Just then I stumble over this class file and was amazed at what I saw, what was it? it was a function containing containing about 3000 lines of codes with no documentary comment. Yeah!, whoever wrote this is a genius, but wait..., was he? I didn't think so because about 90% of this 3000 lines was made up of a very looooooooooong IF-ELSE statement, then I asked myself, what was this guy trying to build, Artificial Intelligence System? This was just a Hotel Management code. Please my friends, basic programming knowledge is very important, if you are the kind of a programmer that does this, go back to your language and learn it to the bone also learn to write a very helpful comment in your code, that wont take your job away from you.
Make a better coding world for those who are coming to maintain it so that you will always be remembered as an excellent coder.
Comments
Post a Comment