Bug in Java 1.5 Timestamp.compareTo()

About two months ago we caught a nasty issue with getting some

1ClassCastExceptions

when comparing two

1Dates

. The code that failed the unit tests looked something like:

if (startDate.compareTo(endDate) < 0) {

The strange part was the developers running IBM’s RAD 6.0 never had failing tests and

1ClassCastExceptions

. The tests failed on the [...]

Encrapted Passwords

Learned a new term today going through 19 Deadly Sins of Software Security. They give an example of a URL containing a strange looking id parameter:

1www.xyzzy.com?id=TXkkZWNyZStwQSQkdzByRA==

Turns out a simple run through a base64 decoder for gives you:

1My$ecre+pA$$w0rD

The authors then refer to this as an “encrapted” password.

Excessive Setup Anti-Pattern

James Carr has come up with a basic list of TDD anti-patterns and while I’ve seen many of them, one currently still plagues many of our tests:

Excessive Setup A test that requires a lot of work setting up in order to even begin testing. Sometimes several hundred lines of code is used to [...]

Piloting Two Week Iterations

We just wrapped up our organizations first Scrum project using 2 week iterations. Of course it was a proof of concept project and only had 3 sprints, but it gave us some idea of the possibilities. At the final retrospective feelings were mixed on the team:

Pros

Kept everyone focused. We got a lot done [...]