3,964 reputation
815
bio website
location
age
visits member for 4 years, 1 month
seen 11 hours ago

1d
comment Implementing common logic in base class
As long as you stay in-memory and not I/O bound I'd say test it without mocking it, or if it's really too slow, put the test in a long-running test suite that is executed less frequently.
1d
comment Implementing common logic in base class
Long-running to me usually means you have crossed an application seam and stepped into the realm of I/O bound modules such as data or file access, network, etc. Crossing that boundary means it should be in another, easily mockable class, not in a private method.
1d
revised Implementing common logic in base class
deleted 2 characters in body
1d
answered Implementing common logic in base class
1d
revised Unit Testing and dependencies
deleted 1 character in body
1d
answered Unit Testing and dependencies
1d
comment Unit Testing and dependencies
I mostly only use Factories when the dependent object needs complete control over its dependency's "birth" time and finalization time. In which case you pass it a Factory instead of passing it the dependency per se. Another case might be when the eligible implementation for a given abstraction fluctuates over the course of application runtime, but that rarely happens in my experience.
1d
comment Unit Testing and dependencies
In my experience, Factories are overkill most of the time, especially when you have a well-identified Composition Root, i.e. a single entry point where the whole object graph is assembled (it might use a DI container or not). In your example, that would be when the configuration value is read and the correct implementation chosen accordingly.
1d
comment Unit Testing and dependencies
@JonRaynor what's the point of a Factory here ?
1d
revised Understanding Bob Martin's Closed For Modification Explanation
added 7 characters in body
1d
answered Understanding Bob Martin's Closed For Modification Explanation
1d
answered Why not using questions in TDD tests descriptions
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
@MatthewPatrickCashatt Functional-ish C# would involve static methods and static classes in lieu of functions and function containers. However that doesn't mean the data structures passed around from function to function should be static, they are necessarily "instances" of some type in OO speech (=values). It doesn't violate FP rules since they are pure data containers, they don't encapsulate behavior.
Feb
26
revised DDD - Aggregate root with large number of children
more suited link
Feb
25
answered DDD - Aggregate root with large number of children
Feb
25
answered Write a (good) code convention for c#
Feb
18
answered What is the purpose of planning poker in a sprint?
Jan
31
awarded  Yearling
Jan
21
comment Architectural / Application Practices to guard against 'breaking changes'
@dougajmcdonald it's unclear to me what you're asking. Does the problem lie in the fact that other developers working on unrelated stuff are hampered by these breaking changes ? Or that it takes time to get big reworks right (which there's honestly not a lot you can do about...) ?
Jan
21
comment Should a scrum team estimate time for the user stories during Sprint Planning, or before it?
Time is not the usual measure for user story estimation. It might be for tasks though. I recommend you update your question to reflect what you really mean by "estimate times for stories".