File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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:
subject: Column width in source files.
It's not a secret anymore!