One of the most important aspects of coding is that your code should be easy for others to read and maintain later. This module examines "best practice" coding conventions ranging from variable and method naming through commenting standards to code structure issues.
This topic is presented on public courses
Java Programming for the Web,
Learning to Program in Java
Background information
This module is available under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Within a class.
Variable Naming.
Constant naming.
Commenting.
Further coding standards.
The specification of the interface to a class.
Class naming.
Method Naming.
Instance variable naming.
Bean-able and other standards.
Grouping together classes into packages.
Naming conventions.
Imports.
The four Ps.
Deploying multiple classes.
Directories and files.
Jars.
Accessing shared classes.
CLASSPATH and CLASSDIR.
Other Virtual Machines.
Course links
The following web pages are used as references / examples in this module
[
Link] Code Conventions for the Java Programming Language
(at http://java.sun.com/docs/codeconv)
We check these links from time to time with a spider written in PHP. Latest full check was on Saturday, 12th June 2004. Titles are extracted from the web pages listed.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Java,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.