Re: Coding Standards



Joshua Cranmer wrote:
Sanjay wrote:
davidsamith@xxxxxxxxx wrote:
'Good code' is code that works, is bug free, and is readable and
maintainable. Standards need to be followed for coding. Read more...

http://brsx.co.uk/SWtesting/FAQs/FAQs012.asp


• each line of code should contain 70 characters max.

Where the *** does that come from? 1970's? We just inherited shitty code from an outsourcing company where each line fucking wraps around after some 50-100 characters for no reason. I have a fucking 21 inch monitor and so does other developers and there is no one else going to look at the code besides developers why wrap around 70 characters?

Right now, I am stuck with a 1024x768 resolution, so anything more than ~90 characters starts wrapping around. Obviously, you have never tried to edit a line of code in vim that has wrapped around 3-4 times.

I do, however, agree that 70 characters is too short for a reasonable line; 80-90 characters is a better limit.


Of course I use vi or vim or pico or nano whenever I am working on solaris terminal writing or debugging shell scripts (I use kate or Quanta on linux). However I have never used vi for writing J2EE code. For that I always use either eclipse or WSAD depending on the application server.

I guess I can safely assume we are talking about java or jEE here rather than shell script. If you are saying you are writing Java code in vi you seriously have to upgrade to some IDE in order to make your life easier. That is of course IMHO.
.


Quantcast