This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Coding standards  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you recommend any official coding standards to use? Where can I find them? Netscape has one standard
(developer.netscape.com/docs/technote/java/codestyle.html). Has anyone followed that?
Is there any other alternatives?
Coding standards and readability make 23 points of 155 so that's why it is quite important matter. It is quite easy way to get more points to ensure that coding style is good.
Jukka
 
Rowan Brownlee
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jukka,
Here's a link to Sun's coding conventions
cheerio
rowan
http://java.sun.com/docs/codeconv/
This Code Conventions for the JavaTM Programming Language document contains the standard conventions that we at Sun follow and recommend that others follow. It covers filenames, file organization, indentation, comments, declarations, statements, white space, naming conventions, programming practices and includes a code example.
The Code Conventions for the Java Programming Language document was revised and updated on April 20, 1999.
Why Have Code Conventions
Code conventions are important to programmers for a number of reasons:
80% of the lifetime cost of a piece of software goes to maintenance.
Hardly any software is maintained for its whole life by the original author.
Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly.
If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.
View HTML
Download HTML (zip, ~62K)
Download PDF (~127K)
Download PostScript ( ~151K)
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
Jukka
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!