121 reputation
5
bio website
location Sweden
age 38
visits member for 3 years, 10 months
seen Nov 20 at 22:03

I use C++. I do not like it.

I use Linux. My employer doesn't like it.


Jun
2
comment Builder Pattern: When to fail?
@IvanGammel I did not suggest validation in the object constructor. That would be alternative 3. This is a a variant of alternative 2.
May
31
comment Builder Pattern: When to fail?
So why not have a validate() that is called by build()? That way there is little duplication, consistency and no SRP violation. It also makes it possible to validate the data without attempting to build, and the validation is close to the creation.
Apr
4
awarded  Supporter
Mar
28
awarded  Analytical
Mar
28
awarded  Informed
Mar
9
awarded  Teacher
Mar
9
answered Continuous Integration Feedback Cycle
Jan
21
awarded  Autobiographer