10,524 reputation
42056
bio website
location
age
visits member for 3 years, 4 months
seen 12 mins ago

May
16
comment How is the Decorator Pattern actually used in practice?
Inheritance is effectively unavailable to you when you would need to inherit from multiple classes. This happens frequently in classes you can change, either because they already need to have a superclass for some unrelated functionality or because you want to compose more than 1 behavior.
May
16
comment How is the Decorator Pattern actually used in practice?
The problem the decorator solves is - an alternative to subclassing. That's it. It doesn't directly solve real world, "concrete" problems. It's like asking for a real world problem solved by addition. Or by polymorphism. The best you will get is when some random application happened to use it. An anecdote about how "addition was vital in my nuclear launch software" won't really tell you much about addition or its purpose. You keep rejecting examples of composition that are as valid as anything you will get.
May
16
answered How is the Decorator Pattern actually used in practice?
May
8
comment How do you prevent confused tests?
meta.programmers.stackexchange.com/questions/6629/…
May
7
answered Refactoring a live system that is tightly coupled with improper data models and business logic in the front-end
May
7
comment Refactoring a live system that is tightly coupled with improper data models and business logic in the front-end
I would say "Techniques to re-factor garbage and maintain sanity?" is related but not a duplicate.
May
4
awarded  Publicist
May
3
awarded  Booster
May
3
awarded  Announcer
May
2
awarded  Nice Answer
May
1
revised Why don't more languages have the ability to compare a value to more than one other value?
deleted 23 characters in body
May
1
answered Why don't more languages have the ability to compare a value to more than one other value?
Apr
30
comment Are random number generators security holes?
en.wikipedia.org/wiki/Random_number_generator_attack
Apr
23
awarded  Nice Answer
Apr
18
comment Adding field to the class at runtime - design pattern
steve-yegge.blogspot.com/2008/10/universal-design-pattern.html
Apr
15
reviewed Leave Open Search for the (slowly moving) number with penalty for too high test value
Apr
15
reviewed Close What are appropriate metaphors for the pieces of a word processor?
Apr
15
comment What are appropriate metaphors for the pieces of a word processor?
This question appears to be off-topic because it is about finding metaphors. Design questions would be on topic, but this would probably be too broad anyway even if it asked for a design instead of a metaphor.
Apr
15
reviewed Leave Open Should an API be aware of client versions?
Apr
15
reviewed Close Deleting Content from Service