Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Readability

Human readability is extremely important

Tutorial Details:

Humans must be able to read the programs
Source code is read by both the compiler, which doesn't care about your writing style, and people, who care enormously about your writing style.

ALL programmers insist that certain rules be followed. Some of the most important are:

Indentation. Statements which are contained within something else (a class, a method, a loop, etc) must be indented on indentation amount to the right. There are several styles for this; use one of them.
Meaningful names. Variables, methods, classes, etc must be given names that mean something to the reader. Use names like a, b, and c only when there is no inherent meaning in a variable -- it's just an abstract number.
See Names for a more detailed discussion.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/principles_and_practices/style/readability.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Readability

View Tutorial:
Readability

Related Tutorials:

Programming Java threads in the real world, Part 2 - JavaWorld - October 1998
Programming Java threads in the real world, Part 2 - JavaWorld - October 1998
 
Design networked applications in RMI using the Adapter design pattern
Design networked applications in RMI using the Adapter design pattern
 
Java Tip 81: Jazz up the standard Java fonts - JavaWorld
Java Tip 81: Jazz up the standard Java fonts - JavaWorld
 
Build an object database, Part 2: Object storage backend - JavaWorld April 2000
Build an object database, Part 2: Object storage backend - JavaWorld April 2000
 
Product Review: Kawa 4.0 - JavaWorld June 2000
Product Review: Kawa 4.0 - JavaWorld June 2000
 
Validation with Java and XML Schema, Part 2 - JavaWorld October 2000
Validation with Java and XML Schema, Part 2 - JavaWorld October 2000
 
Jato: The new kid on the open source block - JavaWorld March 2001
Jato: The new kid on the open source block - JavaWorld March 2001
 
Language improvements and models make great Java - JavaWorld
Language improvements and models make great Java - JavaWorld
 
JSP best practices
Follow these tips for reusable and easily maintainable JavaServer Pages
 
Use XML data binding to do your laundry
Use XML data binding to do your laundry
 
Quickly access files and directories you use repeatedly
Quickly access files and directories you use repeatedly
 
Unwrap the package statement's potential
Unwrap the package statement's potential
 
Second-generation aspect-oriented programming
Second-generation aspect-oriented programming
 
Use the Element Construction Set to create formatted logs.
The Jakarta Element Construction Set (ECS) is an open source project for creating markup language documents using the Java language and an object-oriented approach. Can be used to format logs into well-formatted HTML files
 
Chat Transcript: New Language Features in J2SE 5.0
Java 2 Platform, Standard Edition (J2SE) 5.0. includes the biggest set of language changes since the original release of the Java programming language.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.