Reputation
4,662
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
7 25
Newest
 Nice Answer
Impact
~38k people reached

Apr
7
comment When to mark a function as virtual?
I would argue that making an interface is not 'just to test the code'. Instead, it is ensuring that all your code works against an interface and not a concrete implementation. That is one of the basic principles of a good OO design, and one that comes along naturally when using unittests.
Apr
6
revised Sequence of Integration Test in Build Process
added 5 characters in body
Apr
6
answered Sequence of Integration Test in Build Process
Apr
1
answered Constructor Injection vs Field Injection
Mar
10
comment Event Sourcing + Updates to multiple aggregates
If the invariant is an absolute, that simply means that during the booking you 'lock' the seats being booked BEFORE doing anything else. A lot of fixed-seat venues would work this way. This is the opposite case of overbooking as you might reserve seats for a customer that doesn't confirm his booking information during the process or who's creditcard bounces. Mitigation for this strategy is simply to open up the seats again when a booking fails, which means that an event might be sold out but at a later point still has seats opening up because bookings are not finalized.
Mar
9
answered business rules, business proceses and business logic
Mar
7
comment Conditionally creating objects at runtime using Spring.NET
It's not really a sentinel value... Sentinel values have something to do with lists or sequences and work as a value that indicates the end of said list or sequence. Null Objects are specific objects that are designed to act as an object that has no specific behaviour.
Mar
7
answered Conditionally creating objects at runtime using Spring.NET
Mar
7
comment How to represent an object with actions that can only be used in a specific situation?
You have to validate your state transitions, yes. And it's a lot easier to do if you clearly separate your states into separate classes.
Mar
7
comment How to represent an object with actions that can only be used in a specific situation?
A lot of people also crash into walls because they panic and mistake the gas for the brake pedal. Mechanical systems, unlike virtual system, tend to have very little leeway when it comes to dealing with 'bad' inputs that might harm the system or the user. With the complexity of software being what it is, 'forcing' developers to do (or not do) something is very much worth considering. That being said, in a simple application (CRUD-like systems) it's often acceptable to enforce constraints only from the UI. But those systems are very simple at heart...
Mar
7
answered How to represent an object with actions that can only be used in a specific situation?
Mar
6
comment Automatically creating .pdf files from CSV
Could you put that in the original question to make it clear? I'll vote to reopen it.
Mar
4
answered What Strategy to Employ when Updating a Dependency
Mar
4
comment Automatically creating .pdf files from CSV
I'm not sure I fully understand your question. Do you want to create a new (empty) PDF file for each selected filename?
Mar
4
reviewed Approve How to Structure Simple C++ projects for TDD
Mar
3
reviewed No Action Needed swift typealias vs empty inherited class
Mar
3
reviewed No Action Needed Problem with understanding “seam” word
Mar
3
reviewed No Action Needed Creator acknowledgement for a modified project (under GNU GPL)
Mar
3
reviewed No Action Needed language with two binary operators of same precedence, left-associative & right-associative
Mar
3
reviewed No Action Needed Blocking queue for token based synchronization