XP CODE SPRINT XPDX will be hosting a code sprint on April 9-10, 2005 in downtown Portland, Oregon. A code sprint is a gathering of a bunch of programmers to...
Hey all. So once again I found myself gritting my teeth about the duplication in code I was looking at. If you do any Java programing (as most of us on this...
... I like the anonymous innerclass approach, it does nothing to the outer class, and hides the details of the Equals.innerEquals( Object o ) method. ... I...
... I prefer your second method with the anonymous inner class. Although, how about something a little simpler that doesn't use inner classes like this: class...
... Well I guess it could return one of three values: Boolean.TRUE, Boolean.FALSE, or null ... and then only do the "real" checks if we get back a "null"...
Hey all, So, someone pointed out that they were a bit uncomfortable with the code fragments I posted having still having GPL license on them. I'm sorry if I...
... I'm wondering if not having to two generic tests before getting down to the business of the "real tests" is really worth generating another class and...
... That seems relatively low cruft. it still contains some duplication, of course, so it is a violation of Once And Only Once. On the other hand, it doesn't...
... Man, you are way to strick on such things! We've got it down to a reference test for equality, a call to a helper and then a bunch of specific tests. ... ...
... "No duplication" did I fail to understand ;-) ... That's what I meant. Using composition to create a reference to an object of type "Equals" (or...
... Well, since I proposed an alternate solution I guess I'll comment. Eric's goal was to eliminate duplication in the equals method. What exactly though is...
eric wrote: class OurNiftyClass extends SomethingForeign { //... // I'll count redundant lines even the method declare, 'cause if // we could just call a...
... [snip] ... [snip] ... Yup, that's about how it comes out, with some room for debate, but either way ... pretty small potatoes. However the fact that...
What I don't understand is why you are testing for equals all the time. At least to such and extent that you need a utility for it. Double dispatch takes care...
Wow! Hey Jeff, long time! I trust things are going well with you. ... Oh, come on Jeff ... how much duplication is enough to warrant scratching one's head...
... Yeah, I agree. Makes me wonder whether getting rid of the preprocessor was such a great idea. #define defineEquals(obj,classname) ... public class Foo { ...
Hi All, The next Seattle XP Users Group meeting will be on Thursday, April 14, 2005 at Avenue A | Razorfish. TOPIC - Xp Planning, Estimating and Tracking How...
Hi All, OK, with the April meeting announcement out, we can deal with May. :-) Dr. Neil Roodyn will be in town and could speak to us on May 19. This is the...
Hey all! I think the up coming topics are great, but I really would like to re-visit the idea of comparing the first edition White Book with the new White...
Charlie, Eric, et. al. If Dr. Neil will be in town, I vote for taking advantage of the opportunity to hear him speak -- even if it means delaying the meeting a...
Hi Alan, Let's do the V1/V2 stuff in June. But you guys will have to tell me what happened last month when we get together tonight. This planning ahead stuff...
Enter your vote today! A new poll has been created for the extremeprogramming-seattle group: As an agile user group, we are elligible for the Agile Alliance's...