Java   View all facts   Glossary   Help
programmer
Next kbTopprogramming    UpkbTop    Previous kbTopprocess   

programmer comparison table
Subject follow comment consider choose reject be is a kind of is a subtopic of group avoid create remember restructure apply check for use ensure pay attention to keep write learn about take advantage of adhere to
kbTop                       
programmerthe specific conventions for commenting classes and methods that allow for documentation to be automatically generated using a program called 'javadoc'whatever is non-obvious but should not comment obvious things as this adds clutterlanguages other than Java for number-crunching applicationsalternative that makes code simpler over more complicated one'clever' or 'cool' coding techniques unless they make the code simpler to understandresponsible for anticipating things that can go wrong and writing exception handling code in preparationkbTopProgrammingclasses into logical sections with a clear comment separating each section if a class has many methodsover-use of class variables or class methodsseveral small classes, rather than one big, complex classthat shorter code is not necessarily better code but unnecessarily long code is also badcode to make it simpler if necessarythe 'isa' rule religiouslyvalid generalizations by checking that:
  • superclasses and subclasses have unambiguous names
  • each subclasses retains its distinctiveness throughout its life
  • all the inherited features must make sense in each subclass
consistent code layout stylethat anything that is true in a superclass is also true in its subclassesto the documentation describing which features of Java are deprecatedthe number of instance variables small. If this number exceeds 10, then consider splitting the class into separate classes - e.g. a superclass and a subclasscomments at the same time as writing code , and perhaps even before writing the codeabout the different programming strategies that make a Java program run fasterpolymorphism, inheritance, abstract classes, and methodsobject oriented principles

Next kbTopprogramming    UpkbTop    Previous kbTopprocess