How CRAPpy is your Java code?
I do a lot of code review lately. LotusScript, JavaScript, Java etc. When I encounter code that is difficult to understand I'm usually met with the defence "But it is working". Funnily it is self-defeating. I never do code review (short of the we-have-fixed-it-now-have-a-look types) of code that works well. Asking us to do code happens because there are problems (I really would love to do a the-proud-code-parents-want-to-show-off-their-really-pretty-baby review once in a while). The typical problems are:
- Poorly documented code
- Lack of decomposition
- Slow code (e.g. getNthDocument)
- Lack of separation between user time and backend time
- Lack of caching/object reuse (e.g. Connection pools, Profile Fields)
Posted by Stephan H Wissel on 14 May 2009 | Comments (2) | categories: Software