wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Column width in source files." Watch "Column width in source files." New topic

Column width in source files.

Jorgen Sandstrom

Joined: Oct 18, 2006
Posts: 8

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.

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

I agree. Here's the link: http://aspose.com/file-tools
subject: Column width in source files.
Similar Threads
HashMap problem
How to create a hierarchy using the following xml file
dynamic Row generation? no source code?
Nested IF's
How to create a hierarchy using the following xml file