Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ask them to put a default value then. Why do we have to write code when db can do it automatically? (Not mentioning all the times I don’t find foreign keys and delete/update rules defined)
-
0 and null are clearly the same, stop complaining!
*glitches into a wall*
THE SAME I TELL YOU! -
sariel84473y@piratefox but wait there's more!
What if it's a zero reference to an ID that actually exists in another table?! -
@sariel real life scenario:
“If we use GUIDs we don’t even need to link two tables! There will never be a collision!”
Spoiler: there were collisions.
Also: sorry for the randomness, your example just reminded me of that bs developer who seriously implemented that -
@sariel I crashed my app before because I wrote the relationship and it referenced 1000 records.
-
@IntrusionCM it was a joke about the fact police’s db(S) have crimes inside them, and that they were committed into them (e.g. via transactions)
Related Rants
Was just told to put 0 if field doesn’t exist In database instead of marking the column nullable. That is driving me crazy bull and 0 are not the same two different meanings.
rant
data
database