TDD with IDEA – Test List

February 22, 2009

Hi there!

One aspect of TDD is go step by step and keep the focus. If you follow the Boy Scout Rule and have a common project it is easy to lost that focus. Like Kent Beck teaches us in Test Driven Development it is good to use a Test List. Normally a pen and a paper is enough. I like to have it integrated into my IDE. Fortunately Sergiy have had that same wish and wrote the Tasks-Plugin for IDEA. Great.

Advertisements

Testing and Concurrency – Brett Schuchert

October 30, 2008
  • In Java you can’t get out of a deadlock, there you need to avoid
  • Beim Concurrent Testing auf Thread warten (join), bevor die Assertions gepr├╝ft werden
  • Bei I/O bound problems kann Multi-Threading gut helfen; Bei cpu-bound meist nicht
  • try to put the locking as close as possible to the object – prefer server-based locking
Hints:
  • run with more threads than processors
  • run on target platform when tuning
  • run with -server VM argument
  • rely on published algorithms when possible
  • don’t build your own thread-safe contrainers
    • use java.concurrent
  • consider using intrinsic locks with java 6
  • There’s a lot of gold in java.lang.concurrent
  • use ConTest from IBM