This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Column width in source files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Column width in source files." Watch "Column width in source files." New topic
Author

Column width in source files.

Jorgen Sandstrom
Greenhorn

Joined: Oct 18, 2006
Posts: 8
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

Joined: Dec 04, 2001
Posts: 188
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Column width in source files.
 
jQuery in Action, 3rd edition