Bad Example Here is an example of bad style written in Java for(i 2;i Problems: The lack of white space makes it hard to read The lack of indentation makes it hard ...
Self Documenting Code Check List: Classes: Does the class interface present a consistent abstraction? Is the class well named? Does the name describe the central ...
Good Example Here is an example of the same code written with good style (and NO comments) in Java for ( primeCandidate 2; primeCandidate In this 2nd fragment, it ...
Introduction to !Self-Documenting Code Good documentation is one sign of the professional pride that a programmer takes in producing high quality programs. There ...
Style Guide An overview of general guidelines to follow when writing our code to help figure out the underlying logical structure, improve consistency, readability ...