News for hackers. Stuff that matters.
Re:Django 3.1 by StavrosK on Tuesday August 04, 2020 @06:57AM (#24048667)
Fields are messy because you have to check for nulls, yet JSON keys aren't messy because you have to check for nulls?
Re:Django 3.1 by alanfranz on Saturday August 08, 2020 @03:02AM (#24089672)
All json keys are optional, so you ALWAYS need to check for their presence or absence. Mess exists when some key is nullable and some isn't. Checking for nullability on a key that can never be null isn't extremely elegant.
Re:Django 3.1 by StavrosK on Saturday August 08, 2020 @06:23AM (#24090503)
Why is that a mess? I don't see the difference.