I thought "instanceof" was expensive, but I just wrote a performance test that suggests it's not.Wonder if something is being optimised out?
-
-
-
Replying to @mjpt777
@mjpt777@trisha_gee Very cheap vs design smell... Bugger, coin toss? :)2 replies 0 retweets 0 likes -
-
Replying to @mjpt777
@mjpt777@trisha_gee Very true. Harder with 'design smells' though, always good to get a 2nd, 3rd opinion when unsure...2 replies 0 retweets 0 likes -
Replying to @darachennis
@darachennis@mjpt777 (a series of these classes replaces a God class with a series of "if"s and switches)2 replies 0 retweets 0 likes
Replying to @trisha_gee
@trisha_gee @mjpt777 Meyer's advice comes to mind here http://www.javapractices.com/topic/TopicAction.do?Id=31 …
8:58 AM - 16 Apr 2013
from Hillingdon, England
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.