Post #2430695
2026-04-28 19:59 UTC
@davidism@mas.to like I'm a big fan of Active Nothing and other coding tricks to avoid null checks, and sometimes there's a superficial temptation to say "oh well if it's a string there's no need to make you deal with null" but if you have to guess that "empty string" means "not specified" then you're not saving work you're creating NEW work, work that the type checker or linter isn't even going to warn you that you need to do when you forget to do it
Replies (1)
-
@glyph@mastodon.social 2026-04-28 20:00
@davidism@mas.to as some others have said though I would generally avoid database-level defaults in any case, unless you have some specific bit of database functionality that you really want to invoke interactively sometimes