Gedanken eines Informatikers, Mathematikers und Lehrers.

01.03.2008

7 Question Code Review

The Seven Question Code Review beinhaltet eine Übersicht aus sieben Fragen, die man sich als Java-Entwickler über seinen Code stellen sollte.
The 7 question Java Code Review
  1. Are your equals() and hashcode() methods implemented correctly? (and there is a precise definition of correct...)
  2. Do you have a build process independent of an IDE?
  3. Do your methods that return collections wrap them as unmodifiable?
  4. Are any exceptions either caught, logged, and handled appropriately or passed up the calling stack?
  5. Do you know all of the third party libraries your project depends upon, and their version numbers?
  6. Do you have unit tests that adequately exercise your code?
  7. Do any of your packages have circular dependencies?

Keine Kommentare:

Kommentar veröffentlichen