31 August 2008


i have proof that i have good ideas occasionally: apparently Michael Feathers doesn't care for the idea of overriding equals() and hashcode() in subclasses either. since equality is likely to be context-dependent for most any class, prefer creation of methods or classes that encapsulate that context. Dave and i came up with the "Equalator," a name derived from Comparator.

let's just say i have a peeve about id equality.

No comments:

Post a Comment