eoinoc

Ireland

eoinoc.net

Jul
2
awarded Curious
Jul
2
awarded Curious
Jul
2
awarded Nice Question
May
28
awarded Popular Question
May
22
comment Data Mapper pattern, exceptions, and handling user-provided data
Thanks Jasper. I'm struggling with where business logic sits, though. In the Domain Model pattern, the model controls business logic. As a contrived example (as I can't think of a more realistic one), let's say that if the firstname is "John", then their surname may not be "Brouwer". Surely both the PersonForm and Person models would have to check and enforce that logic? The easiest approach I see is removing that check from Person, but then the domain model is no longer defining business constraints.
May
21
accepted Data Mapper pattern, exceptions, and handling user-provided data
May
21
revised Data Mapper pattern, exceptions, and handling user-provided data
typo fix
May
13
awarded Notable Question
May
9
asked Data Mapper pattern, exceptions, and handling user-provided data
Apr
23
awarded Yearling
Mar
30
awarded Good Question
Feb
22
awarded Notable Question
Feb
11
accepted Tmux makes a sound when I launch it, how could I disable that?
Jan
30
awarded Scholar
Jan
30
accepted Can I use Darktable to export unmodified JPEGs without recompression?
Jan
26
awarded Student
Jan
26
asked Can I use Darktable to export unmodified JPEGs without recompression?
Jan
20
awarded Popular Question
Nov
27
awarded Famous Question
Nov
23
awarded Yearling
1 2 3 4 5