Comment

Comment by ZYbCRq22HbJ2y7

> You’re supposed to store timestamps instead, and treat the presence of a timestamp as true. I do this sometimes but not always - in my view there’s some value in keeping a database schema immediately-readable.

Seems overly negative of broad advice on a good pattern?

    is_on => true
    on_at => 1023030
Sure, that makes sense.

     is_a_bear => true
     a_bear_at => 12312231231
Not so much, as most bears do not become bears at some point after not being a bear.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton