File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Column width in source files.
 
Similar Threads
dynamic Row generation? no source code?
Nested IF's
How to create a hierarchy using the following xml file
HashMap problem
How to create a hierarchy using the following xml file