Archive for November, 2005

hashCode method using primes

Wednesday, November 30th, 2005

I was coding up a new Java class yesterday. I was planning on using it in collections so I followed some good advice and wrote an equals and a hashCode method for it. On my new project we are using the commons lang library for this sort of thing. They have […]

Type Safe?

Thursday, November 3rd, 2005

Fun quote:
Static types give me the same feeling of safety as the announcement that my seat cushion can be used as a floatation device.
–Don Roberts
From Martin Fowler’s OOPSLA coverage.