Reputation
58,338
Next tag badge:
564/400 score
79/80 answers
Badges
17 131 213
Newest
 Enlightened
Impact
~1.2m people reached

12h
comment When to use interfaces (unit testing, IoC?)
@wilbert - sure, a small interface is more readable than the class, but you're not picking one or the other, you have either the class or a class and an interface. And you might be reading too much into my answer. I'm not saying never make interfaces for a single implementation - most should in fact, since most interactions should require that flexibility. But read the question again. Making an interface for everything is just cargo culting. IoC isn't a reason. Mocks aren't a reason. The requirements are a reason to implement that flexibility.
13h
comment When to use interfaces (unit testing, IoC?)
@wilbert - YAGNI.
Aug
22
comment Do legal names matter with source code licensing in the USA?
I'm voting to close this question as off-topic because this is a legal question, not a programming question.
Aug
20
comment Clean Abstract Syntax Tree
@MasonWheeler - in my experience, the issue comes in the flow of processing. Processing a node may require another node to be processed, but it hasn't been. Processing it would in turn require others to be processed (while the original node is sitting there waiting for its result). By making the tree immutable, I've found that it pushes my implementations to make fewer assumptions about processing order.
Aug
20
comment Clean Abstract Syntax Tree
@MasonWheeler - sure, it's not particularly harder to reason about, but in my experience actually implementing compilers, a mutating AST (where half is in one state and half another) is a pain to work with and a pain to unit test.
Aug
20
answered Clean Abstract Syntax Tree
Aug
18
answered Mutable AST vs. different immutable ASTs
Aug
12
comment What is the point of an Expr in vanilla F#? How can it be applied?
Presumably by walking the expression tree and doing stuff with it, but I don't know enough F# specifically to say for sure.
Aug
11
comment Functions whose parameters are implicitly supplied
@BarryBones41 - of course not, that's because you're not calling MyCallBack - the function itself is the argument.
Aug
11
answered Functions whose parameters are implicitly supplied
Aug
10
answered When to have bug triage meetings in SCRUM process?
Aug
7
comment Code review lags behind the Deliver/Test Cycle
Does your test team not have an automated regression suite?
Aug
5
revised Why does this use of IEnumerable, List, and Arrays seem to get modified when it shouldn't be?
Tried for a more descriptive title.
Aug
5
comment Could a class with only auto properties could be a new language type and act like an interface?
It is insufficient to do multiple inheritance since the properties still have backing.
Aug
3
awarded  Enlightened
Aug
3
awarded  Guru
Aug
3
awarded  Good Answer
Aug
3
answered Is it good practice to assign an instantiated class to a static property in the same class?
Aug
3
awarded  Nice Answer
Aug
2
answered Should a method be forgiving with the arguments that are passed in?