• Post Reply Bookmark Topic Watch Topic
  • New Topic

Column width in source files.

 
Jorgen Sandstrom
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm cleaning up my code now and writing documentation.
I think is kinda old fashion to be limited to 80 char/row, how strict is sun at this point. I prefer to have clear variable names and sometimes us 100 or 120 chars/row. How common can printing source code be nowadays.

/Jorgen
 
Jason Moors
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jorgen,

I would stick the Sun Java Coding standards otherwise I think you could lose marks for Clarity and Maintainability of your code.

4.1 Line Length
Avoid lines longer than 80 characters, since they're not handled well by many terminals and tools.

Note: Examples for use in documentation should have a shorter line length-generally no more than 70 characters.


Sun Java Coding Standards

Regards
Jason
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!