Replace boolean flags with nullable timestamps
A nice little tip to clean up your code base from boolean flags (is_active, is_deleted, is_subscribed) is to switch to nullable timestamps instead.
— Marcel Pociot ? (@marcelpociot) July 2, 2019
You remain the same flag functionality, but get the point of time for free. pic.twitter.com/86iHt6ow0X
Read more [twitter.com]