40,303 reputation
1393183
bio website
location London, United Kingdom
age
visits member for 3 years, 6 months
seen 1 hour ago

Jul
2
awarded  Curious
Jun
27
comment Passing central objects around or having global instances?
The second rule of thumb is "always take with a pinch of salt any rule of thumb that starts 'never'." However, in this case, I would err on the side of too-strict.
Jun
23
awarded  Good Answer
Jun
18
comment Why was C# made with “new” and “virtual+override” keywords unlike Java?
@C.Champagne: Any tool can be used badly and this one is a particularly sharp tool -- you can cut yourself easily. But that's not a reason to remove the tool from the toolbox and remove an option from a more talented API designer.
Jun
18
comment Why was C# made with “new” and “virtual+override” keywords unlike Java?
@C.Champagne: You're still confusing override with new. They're not the same; not even close.
Jun
18
comment Why was C# made with “new” and “virtual+override” keywords unlike Java?
One excellent use of new is in WebViewPage<TModel> in the MVC framework. But I have also been thrown by a bug involving new for hours, so I don't think it's an unreasonable question.
Jun
13
comment Combinatorial explosion of interfaces: How many is too many?
@mga: Not knowing what Foo and Bar do, it's hard to say. I can think of circumstances where I'd give either answer. And circumstances where I'd derive one interface from the other, and circumstances where I wouldn't. Unfortunately, this is the kind of thing where experience will tell you what to do. Whether that be an experienced colleague, or an answer to a specific question here or on codereview, or simply taking an educated guess and learning from getting it wrong. (Which is what most of us have done at some point.)
Jun
12
revised Combinatorial explosion of interfaces: How many is too many?
added 699 characters in body
Jun
12
revised Combinatorial explosion of interfaces: How many is too many?
added 699 characters in body
Jun
12
answered Combinatorial explosion of interfaces: How many is too many?
Jun
6
comment Liskov substitution principle with abstract parent class
Can you link to the blog post, so we can see that claim in context?
Jun
1
awarded  Nice Answer
May
29
awarded  Notable Question
May
28
awarded  Good Answer
May
28
awarded  Nice Answer
May
27
answered Using packages (gems, eggs, etc.) to create decoupled architectures
May
16
comment Coding: conciseness/efficiency vs readability
@svick: I would argue that for pretty much any change I can think of here, you're maintaining less code. You're either going to change one of the methods or the calling code; rarely more than one of them, certainly not all three. And you're going to find it easier to find the bit you're looking for, when you're not figuring out which bracket goes with which in (Regex.Split(unitsParam.Last(), ", ")[1]).
May
16
comment Coding: conciseness/efficiency vs readability
@svick: Going too far into what? What downside are you envisioning?
May
16
awarded  Nice Answer
May
15
revised Coding: conciseness/efficiency vs readability
added 323 characters in body