Implementing standards in our coding is very important especially in today's open source world. Following the standards doesn't just help you as a developer, it also helps anyone trying to read and understand your code. Readability is probably the main reason why someone should follow coding standards. Imagine having to debug over a thousand lines of codes with no documentation or comments written anywhere. That scenario could be classified as a developer's nightmare. It would be very difficult to follow and understand how everything works. It would be difficult to find someone in the open source world interested in your code because of the lack of documentation. Why would someone waste their time trying to understand and figure out how a program works? They could be using that time to add or fix the software if coding standards were followed.
I have been following most of the coding standards throughout my college career. I'm kind of a neat freak so I want my code to look nice and easy to read. One standard that I tend to break is the use of tabs. Using tabs made everything align for me the way I want it. The problem with this is that a different environment might interpret tabs differently. Using spaces instead of tabs eliminates this problem. My problem is that I'm so used to tabbing my codes as I type them. Thank goodness for the Format option of Eclipse :).
I've edited my robocode assignment to follow the coding standards of my class. You guys can download the .jar file
here.
David Joel Lazaro
0 comments:
Post a Comment