Reputation
4,773
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 19
Newest
 Revival
Impact
~215k people reached

  • 0 posts edited
  • 0 helpful flags
  • 723 votes cast
Apr
25
comment How to make Scrum work for a team with defined roles?
@Revenant you're confusing jack of all trades (individual) with cross-functional (team).
Apr
22
comment How to resolve LSP violation based on minimum precondition
@Evan The provable property is not that the size can be zero, it's that it is greater than or equal to zero. The property is provable for any instances of Party or NpcParty.
Apr
22
comment How to resolve LSP violation based on minimum precondition
@Evan I assumed DocBrown was talking about class invariants, not method preconditions (he used the term "class constraints"). A stronger class invariant cannot be likened to a stronger method precondition about a class member, since the state the object would have to be in upon method call isn't even attainable. Stronger class invariant is more like stronger method postconditions, which doesn't violate LSP.
Apr
22
comment How to resolve LSP violation based on minimum precondition
@DavidPacker it seems to me that the premise of LSP is to have both a valid instance of type T and a valid instance of subtype S, otherwise it makes no sense trying to reason about what happens when you replace one with the other.
Apr
22
comment How to resolve LSP violation based on minimum precondition
@DavidPacker your example isn't substitution to me. new NpcParty(collection) wouldn't work in the first place, regardless if you assign it to a Party or anything else.
Apr
22
comment How to resolve LSP violation based on minimum precondition
@DocBrown "having a derived class with a stronger constraints would violate the LSP" - I'd rather say with conflicting constraints, e.g. ones that make it impossible to satisfy Party requirements and NpcParty requirements at the same time. If you satisfy a stronger constraint, you automatically satisfy the weaker one by definition and pass the LSP test successfully.
Apr
20
comment When Agile becomes a bit slugish
Funny how this type of question tends to read "Agile/Scrum criticism" on the headline but if you look closely at the contents it all boils down to "someone just didn't do their job" :)
Apr
15
awarded  Revival
Apr
5
comment Determining the optimal amount of unit tests?
Obviously, there's no universal answer to this except "write the right amount of tests for your context". Start with an arbitrary amount, collect metrics about what matters in your environment (time to deliver, bug count, etc.), analyze them and use them to adjust amount of tests as you progress.
Mar
25
comment DDD: Creating reusable modules and service type distinctions (Domain, Infrastructure, Application)
These are very diverse issues. I suggest you split this into separate questions.
Mar
25
comment Repository pattern and Dependency Injection without an ORM
Why do you need a Factory for your repositories ?
Mar
25
comment Repository pattern and Dependency Injection without an ORM
One-method interfaces are all the rage these days ;)
Mar
25
answered If Repository Pattern is overkill for modern ORMs (EF, nHibernate), what is a better abstraction?
Mar
10
comment How to separate public and “mostly private” code in C#? (Friend classes, PIMPL pattern, etc.)
Off the top of my head, I don't see any native constructs carrying "here be dragons" semantics in C#, but comments and appropriate naming might do the trick.
Mar
10
comment How to separate public and “mostly private” code in C#? (Friend classes, PIMPL pattern, etc.)
@piojo I'm not sure how the samples you gave live up to the premise that ancillary/dangerous functions should be hidden. Normal classes still have access to them, unlike private functions in C++, right ? In the end, is this still a requirement you have ?
Mar
9
revised Are DDD aggregates a good boundary for unit testing?
added 6 characters in body
Mar
9
revised Multiple implementation architecture inside a single bounded context?
deleted 34 characters in body
Mar
9
answered Multiple implementation architecture inside a single bounded context?
Mar
9
answered Are DDD aggregates a good boundary for unit testing?
Mar
3
answered Extending the flyweight pattern: an oxymoron?