164 reputation
6
bio website
location
age
visits member for 2 years, 3 months
seen 15 hours ago

2d
comment What is a helper? Is it a design pattern? Is it an algorithm?
Searching Google with keywords helper pattern antipattern reveals a lot of controversy. Not sure it needs asking here.
Apr
24
comment Visitor only applicable when using the Composite pattern?
That seems bad. Why?
Apr
19
answered Relative encapsulation design
Mar
29
answered Model-View-Controller: Does the user interact with the View or with the Controller?
Mar
29
comment Model-View-Controller: Does the user interact with the View or with the Controller?
The reason views exist as an abstraction is so we can substitute them easily when necessary. A controller for an app on various platforms can be the same, but the views have to recognize user gestures differently and translate them into controller operations. I disagree, therefore, that users interact directly with controllers.
Mar
29
comment Model-View-Controller: Does the user interact with the View or with the Controller?
Views recognize user gestures and translate them to controller actions. Think of Siri on the iPhone or the Kinect on the Xbox. Of course, clicking a button in the GUI is a gesture, too, albeit very easy to recognize.
Mar
28
comment Alternatives to inheritance on complex structures?
This would make sense if there is some client method in all the controllers that is similar to operation() in the Decorator pattern. My experience with controllers is limited, but I am not sure this exists.
Mar
28
comment Alternatives to inheritance on complex structures?
Favor composition over inheritance is a design principle.
Mar
25
answered Does the Composite design pattern implement recursive behavior?
Mar
23
awarded  Scholar
Mar
23
accepted Inverse of Extract Interface refactoring
Mar
22
comment How to use the Decorator pattern to add little functionality to big objects?
+1 for stating the cohesion problem (too many responsibilities is 15 methods) and using interfaces.
Mar
22
comment OOP what is meant by object-to-object communication
Check out Pebble for a somewhat complex domain model of a blog system. Not saying it's good or bad, but it might give you some ideas of what behaviors exist in the objects in this domain.
Mar
22
answered OOP what is meant by object-to-object communication
Mar
22
revised Inverse of Extract Interface refactoring
Added anti-patterns tag, since this refers to the so-called Interface anti-pattern
Mar
22
revised Inverse of Extract Interface refactoring
Added anti-patterns tag, since this refers to the so-called Interface anti-pattern
Mar
22
comment Inverse of Extract Interface refactoring
I found this blog that speaks of Merge Interface and Implementation (and it's spot-on to the gist of my question). It also states that no popular IDEs offer this refactoring, which also kind of answers my question at the same time. @david.pfx I recommend you submit your remark as an answer.
Mar
21
asked Inverse of Extract Interface refactoring
Mar
21
comment Do I need to use an interface when only one class will ever implement it?
Every class can have a public interface (the public methods) and a private interface (the implementation details). I could argue that the public interface of class is the contract. You don't need an extra element to work to that contract.
Mar
9
comment Difference between class clusters and abstract factory in cocoa
stackoverflow.com/a/2459385/1168342 has a few comments, one of which points out that Abstract Factory subclasses are usually public (whereas class cluster sublcasses are private).