▲ | monkeyelite 5 days ago | ||||||||||||||||||||||||||||||||||
> Now you dont know exactly what field to check. Yes you do - you have a helper method that encapsulates the details. In the DB you could also make a view or generated column. > This is just micro-optimization for no good reason It’s conceptually simpler to have a representation with fewer states, and bugs are hopefully impossible. For example what would it mean for the bool authorized to be false but the authorized date time to be non-null? | |||||||||||||||||||||||||||||||||||
▲ | RaftPeople 5 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
> In the DB you could also make a view or generated column. Or you could just use a boolean with a natural self describing name. | |||||||||||||||||||||||||||||||||||
|