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

programmer
subjectfact 
programmercan write comments before writing the codesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
checks for valid 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
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
is responsible for anticipating things that can go wrong and writing exception handling code in preparation    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
is a subtopic of Programming2001-10-19 11:37:44.0
is a kind of kbTop2001-10-19 11:37:44.0
should adhere to object oriented principlessource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should apply the 'isa' rule religiouslysource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should avoid duplication of codesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should avoid over-use of class variables or class methodssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should choose alternative that makes code simpler over more complicated onesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should comment any changes to the code so that it is easy to see what has changed from one version to the nextsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should comment whatever is non-obvious but should not comment obvious things as this adds cluttersource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should consider languages other than Java for number-crunching applicationssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should create several small classes, rather than one big, complex classsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should ensure that anything that is true in a superclass is also true in its subclassessource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should follow consistent guidelines that make programs easy to read when writing programssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should follow the specific conventions for commenting classes and methods that allow for documentation to be automatically generated using a program called 'javadoc'source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should group classes into logical sections with a clear comment separating each section if a class has many methodssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should keep related methods together inside a classsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should keep the number of instance variables small. If this number exceeds 10, then consider splitting the class into separate classes - e.g. a superclass and a subclasssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should learn about about the different programming strategies that make a Java program run fastersource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should not use tab characters in code - use two spaces for indentation instead because when code is printed on certain printers, or displayed in certain editors, the width of the indentation resulting from the tab can vary and make the code hard to readsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should pay attention to to the documentation describing which features of Java are deprecatedsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should reject 'clever' or 'cool' coding techniques unless they make the code simpler to understandsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should remember that shorter code is not necessarily better code but unnecessarily long code is also badsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should restructure code to make it simpler if necessarysource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should take advantage of polymorphism, inheritance, abstract classes, and methodssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should use consistent code layout stylesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0
should write comments at the same time as writing code , and perhaps even before writing the codesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:44.0

Next kbTopprogramming    UpkbTop    Previous kbTopprocess