... Extensive if...else logic (or this ternary alternative) are usually a sign of a design problem or limitation. If I have any choice-logic that is more than...
... Verbosity is not a take-it-or-leave-it thing, of course. But I don't know what to say in response to someone claiming they "like" result = (blah != null) ?...
... if-then-else is a lost opportunity for polymorphisum. The hidden purpose of if-then-else is to recapture state that has been lost. The best way to capture...
... +1 Its funny, but examples of such logic that people give almost always involves typing, which is exactly what the point of O dispatch is. The fact that...
... Still, YANPM :) that you either have to include it somewhere in the class chain, maintain a (prob. singleton) delegate, or use yet another static utility...
That's all well and good and quite true, but the issue here is that one cannot override the objects because one is getting them passed in, e.g. as parameters...
I just wanted to shout out a big THANK YOU for whoever started the "Firefly" thread. Because of that I checked out the dvd's from Netflix and I think it's...
+1 I was really disappointed when it just came to a sudden end. I knew it did, of course, but still... shen sheng de gao wan! @D ... [Non-text portions of this...
... The countervailing force on this is the scattering of rules across many classes. While I know it's the Object Way (tm) it can make code comprehension...
... It is a real problem that isn't overlooked. In fact the estimate is that 60% of developers trained in the functional paradigm will not be able to ...
I see this sometimes when I'm working on code originally developed by other people. (A famous philosopher said, I think, "Hell is other people's code.") ...
... I think one of the things that tells me that I'm going in the right direction is that there is always less when I'm done than when I started. Funny story...
More and more for me the main issue here is really the miserly way that Java has implemented OO and as others have mentioned the major and minor apis that have...
... Man I wish people would learn this lesson. We are in the process of orphaning a system which has obviously reached its (poor) design limits. I keep telling...
Hi Scot, Up until recently I've been asked to refactor or pull components out of software that looks like yours sounds like it looks like. The only advice I...
Oh, and for those who haven't looked at the code recently and lest anyone doubt: class Component... ... * Note that if the event parameter is <code>null</code>...
... <rant> I've been giving some thought on how to respond to this, and after taking time to ponder my response, I've come up with: That's a load of crap! ... ...
I'll grant this is not great OO. And there's obviously numerous ways to do it better. But as I'm always interested in learning how to do things better, that...
... Maybe you missed it but I did say at some level capturing state *isn't* worth the effort. That implies that at some point in time you'll have to use and...
David I agree with you in practice, just not in theory. :) Agreed, it would be crazy to try to pretend to do "pure OO" in Java -- that was the point of *my*...
... Kirk pointed out that his indicator is that when he is done, there is less code. I use a similar indicator, but mine is duplication. When faced with the...
... Oops, the sentence got cut off. I was saying, ugly API code such as Swing event handling pretty much forced you to follow along so you'll be ugly also......
DR, You know I respect you a great deal, but the only thing that is "going off the deep end" in this thread is your jump-to-conclusion response. Kirk and I and...
System.currentTimeMillis() returns a long value representing the number of seconds since 1 Jan 1970 UTC, (with a built-in, and incorrect, assumption that there...
still not clear - I assume System.currentTimeMilles() inspects the system (this case Windows) time and so if you create a new Date with that long value it will...