Please Stop Using Booleans.

Should we be using booleans? Yes, but a lot less then you think... Thank you Embrace for sponsoring! Check them out at: https://soydev.link/embrace SOURCE https://ntietz.com/blog/that-boolean-should-probably-be-something-else/ Want to sponsor a video? Learn more here: https://soydev.link/sponsor-me Check out my Twitch, Twitter, Discord more at https://t3.gg S/O Ph4se0n3 for the awesome edit 🙏

Channel: Theo - t3․ggGenerated by anonymousDuration: 20mPublished Aug 27, 2025
Thumbnail for Please Stop Using Booleans. ▶ Watch on YouTube

Video Chapters

Original Output

0:00 The Boolean Enigma: To be or not to be a good choice?
2:33 Unveiling the "Boolean Controversy": Why your simple true/false might be misleading.
3:10 Time for a Change: Discovering why datetimes often surpass booleans.
4:20 Avoiding Data Nightmares: The "split-brain" problem lurking in your booleans.
6:18 Beyond True/False: Mastering Enums for complex states and roles.
8:15 Building Robust Systems: Combining states and timestamps for ultimate data integrity.
12:00 The Unsung Heroes: Why `created_at` and `updated_at` timestamps are non-negotiable.
13:25 Permissions Power-Up: Why logic, not booleans, should drive your access control.
15:52 The Boolean Sweet Spot: Uncovering the rare instances when true/false shines.
18:35 The Deceptive Nature of Booleans: Unmasking their hidden complexity.

Timestamps by StampBot 🤖