40,657 reputation
1399184
bio website
location London, United Kingdom
age
visits member for 3 years, 8 months
seen 35 mins ago

Mar
6
answered Agile software development: How do you react *financially* to changing user requirements?
Mar
6
awarded  Enlightened
Mar
6
awarded  Nice Answer
Mar
5
comment Base classes as factories?
@PeterK. Fowler refers to switch statements in Code Smells, but his solution is that they should be extracted to Factory classes, rather than being replaced. That said, if you are always going to know the type at development time, generics is an even better solution. But if you don't (as the original example implied) then I would argue that using reflection to avoid a switch in a factory method can be a false economy.
Mar
5
comment Base classes as factories?
I mean that if you ever want to be able to replace one factory method with another. Mocking it for test purposes is just one of the most common examples of that.
Mar
5
answered Base classes as factories?
Mar
3
comment How do you do technical interview when you can't commnicate with the interviewer?
@KingChan: All that said, I have been known to pass developers on to other teams if I thought they'd fit better there. But all-told, the upshot of my message is, don't worry about it. This won't happen at every job, count it as bad luck and move on.
Mar
3
answered How do you do technical interview when you can't commnicate with the interviewer?
Mar
2
comment Is Visual Source Safe (The latest Version) really that bad? Why? What's the Best Alternative? Why?
Surely the more common situation is where two people are adding a class to a project, thus both needing the project file.
Mar
2
comment how to find out if spelling mistakes in source code are a serious issue or not?
Oh no. I found it outrageously amusing.
Mar
2
comment how to find out if spelling mistakes in source code are a serious issue or not?
Please tell me you typed "porblem" deliberately. :)
Feb
29
answered Is it bad practice for a decorator to break the decoration chain?
Feb
29
revised Add a unit test for each new bug
added 279 characters in body
Feb
29
revised Add a unit test for each new bug
added 279 characters in body
Feb
29
answered Add a unit test for each new bug
Feb
29
comment Type mocking frameworks does not change coding practices from testability point?
@TomCaps: I'm aware of that. I still argue that doing so makes a class polymorphic, by definition, so an interface is appropriate. I would only use that functionality where I cannot control the class I'm mocking.
Feb
29
comment Type mocking frameworks does not change coding practices from testability point?
"if you are 100% sure that the class you are mocking will not have polymorphous behavior in the future" - I would argue that as soon as you decide something must be mockable, it is polymorphic NOW.
Feb
29
answered Best solution to run a Linux sandbox on my Windows machine?
Feb
29
comment How can I justify my disclaimer of warranties license to a customer?
Microsoft's "explanation" of this clause would be "Don't like it? Don't install our software." Can you afford to play hardball that way? Are there many alternatives to your software?
Feb
29
awarded  Nice Answer