Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Don't blame TDD, blame morons
While morons are morons - you should handle nulls in your db, unless the db itself prevents null to be written.
In case someone accesses your db not through your code, it might break your code. again - morons.
hitko10359d@kescherRant Indeed, and for some cases it defines even more complex constraints like pattern validation for strings, min / max for numbers, or even compound constraints across keys (either of the two must exist, but not both) - basically, things that can't be represented as interfaces and types in most programming languages.