4 ms·
I don’t like NULLs. Nullables always get back you in ways you would never expect. That’s why I won’t use a tip like that.
by andix 6y ago
I don’t like NULLs. Nullables always get back you in ways you would never expect.
That’s why I won’t use a tip like that.
- vbsteven 6y agoThe problem can be managed somewhat depending on the language and tooling. I have used this advice for archived_at or deleted_at before. In the database it’s a NULLable timestamp column. In application code I would map this field to an Instant? (Kotlin) and a computed isArchived val that checks for presence of the archivedAt field.