Browse by Tags
All Tags »
OOP (
RSS)
Sorry, but there are no more tags available to filter with.
-
|
Mike left a comment last week on one of my blog entries about my ravings of interfaces and classes. First off, yes, you are quite right that explicit declaration of interfaces has its advantages in terms of breaking and bending the rules of polymorphism. It is one thing that I’ve been waiting for someone to mention. In terms of categorizing a class by saying Person class implements the two interfaces of IPersonDetails and IPersonAddress might sound quite brilliant. But I would like to argue...
|
-
|
I started googling around to see what links I can put in reference to my previous blog post about the part of refactoring. And it seems that my perception is somewhat similar to Martin Fowler’s . I quote… Martin Fowler: Part of the justification of YAGNI is that many of these potential needs end up not being needed, or at least not in the way you'd expect. The effort you'll save by not doing any of them is less than the effort required to refactor into the ones you do actually need. And...
|
-
|
Scott Dukes has blogged a response to my two (going onto three) blog posts that interfaces are not worth the classes they are written on. In this third one, I will be responding with a practical example (in other words: physical code) and also add a twist to the end of this blog post. I must say that I’m in agreement with most part of Scott’s content. Besides some major commentary which I’ll place in this blog post and the minor ones on Scott’s feedback , there is only one...
|
-
|
Thanks Brian for the comments in my previous post . I thought of just putting this as yet another comment but thought that maybe it would be more useful to be seen in a more “public” RSS feed and also, this is one heck of a long response. Brian Wilson: You are probably aware of the Sort method for the Array class. It sorts data in a single dimension array. Remember that arrays can be of any type: integers, strings, Animals, BankAccounts, etc. The Sort method does not care about the data...
|
-
|
Wow! In my last blog post about interfaces and base classes, I got quite a bit of comments which I think my primary point has been overlooked. I’m just going to repeat myself to ensure my intentions are made clear: I’m not against the idea of interfaces. I’m just against the idea of making the contract of the “workable” class in every single factory, strategy and so forth patterns as an interface. Maybe I should stop everyone and stop treating everything literally in...
|
-
|
How about that for a catchy blog title? Anyway, this blog post is in response to a little blog post by Brian Wilson. I’m in protest that Dr. Phil is not always right. And I sort of gave the bomb shell in the commentary and found myself being attacked like “What is wrong with you? Interfaces have been my friend.” My take is that the overuse of interfaces is a very common mistake that most developers make. These developers normally go on a rampage when they found that they can extract...
|