« on: December 30, 2009, 12:23 AM »
We all have seen and used many coding standers in different projects based on the programming language e.g. c or java. I have been using coding standards suggested by SUN for java based projects.
I just don’t know why we still follow few coding styles suggested in the standards e.g. 80 character limits for a line, if a line exceeds 80 character, break it to the next line.
As I know the reason for this was explained below:
some terminal are not able to properly display more than 80 characters in a line and we need to scroll the editor to see the full line, so it is suggested to have max 80 character per line.
However, these days you will find most of the monitors are wide screen (most of the commercial companies uses them) and capable of handling more than 80 character per line.
I think this type of coding standards should be picked based on the projects. As an example if entire company has wide screen monitors and uses a common editor e.g. eclipse, then this rule should be reevaluated to maximize the capability of the hardware and software. This makes code much cleaner and makes it more readable.