The Best Ways to Implement Your Design

Good Java developers write and implement applications swiftly while creating code that is highly logical and reusable.

By Bruce Eckel
  To make your Java code perform as it should—that is, with as few snags as humanly and technically possible—there are certain general rules programmers must follow. These are mostly common-sense solutions, such as using established coding conventions, making sure that the code style is standardized so that a team can best utilize it, and making the code readily available for testing at regular intervals.

In the end, your code should be as simple and as accessible (meaning without hidden data) as possible, with the development and milestone ground rules clearly spelled out so that everybody working on the project is on the same page throughout the entire cycle. If you follow these rules closely, your code should require fewer adjustments, test better, and perform at an optimum level.

With that in mind, this article contains 10 key maxims for efficiently implementing Java code. Read on ...

Editor's Note: The tips published here are excerpted from Bruce Eckel's book, "Thinking in Java, Second Edition," (Prentice Hall, 2000). It is the second in a series of articles in which Eckel shares his explicit advice on Java development, design, and implementation.



  
Next: #1 - Follow the Sun coding conventions


Follow the Sun coding conventions Use "get," "set," and "is"
Standardize! Make iterative testing of classes easy
Follow standard capitalization rules Avoid inheritance
Don't create your own "decorated" private data member names Don't overuse finalization
Follow a canonical form Use nested classes


Java Zone - Get Help - Search Tips

 

Eckel's Ten Java Maxims for Good Design
DevX's Review of Eckel's "Thinking in Java"
"Thinking in Java, Second Edition" DevX product listing
Eckel's Home Page
Java Code Library
Java Pro Magazine
Java Discussion Group

 TALK BACK
Is a set of standard coding rules enforceable in a medium or large organization? Does your team and/or company have a standardized Java coding scheme? Join the discussion and tell our growing Java development community about it.
Click here to Join


Save on Hot Java Specials
SOFTWARE:
dtSearch Web
Add power searching to your web site.
Buy Now!
BOOKS:
PointBase Mobile Edition
Enable local data access for mobile users.
Buy Now!
Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map
Jupiterweb networks

internet.comearthweb.comDevx.comClickZ

Search Jupiterweb:

Jupitermedia Corporation has four divisions:
JupiterWeb, JupiterResearch, JupiterEvents, and JupiterImages

Copyright 2004 Jupitermedia Corporation All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Jupitermedia Corporate Info | Newsletters | Tech Jobs | E-mail Offers