Archived How To Implement Complex Data Integrity Constraints And Rules (github.com)
submitted ago by AnghelLeonard
Posted by: AnghelLeonard
Posting time: 9 months ago on
Last edit time: never edited.
Archived on: 7/7/2020 10:00:00 AM
Views: 30
SCP: 4
5 upvotes, 1 downvotes (83% upvoted it)
Archived How To Implement Complex Data Integrity Constraints And Rules (github.com)
submitted ago by AnghelLeonard
Sort: Top
[–] ScionOfZion ago (edited ago)
COBOL never died. It just migrated to databases. Look at this shit.
A book has a maximum number of pages? In the database? What? If a programmer can see something is invalid then the constraint belongs in the database. That's the best place for it. You suck it up and you write that COBOL look-alike beauty. But if only a manager can say something is invalid? Those constraints should go in a domain model somewhere. He's going to change his mind.