Navigate Select ESC Close

Please Stop Using Booleans.

2025-08-27 Science & Technology
72.8k
3.5k
561
Theo - t3․gg
Theo - t3․gg
539.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

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 🙏

Top Comments (10)

@sojdzezz 2025-08-27

tomorrow a new video with title: "I was wrong, booleans are the gods"

469 7 replies
@TofuBug24 2025-08-27

"You either die a complex type or live long enough to see yourself become a Boolean."

96 1 replies
@stevenreddie9780 2025-08-27

There's no in-between when it comes to booleans.

315 15 replies
@timc183 2025-08-27

So tl;dw: Don't store booleans. If the boolean can be derived off some logical explaination, it shouldn't be stored.

600 40 replies
@exp2745 2025-08-27

I once saw someone store age, despite having the users birth date, so yeah.

130 11 replies
@lightningdev1 2025-08-27

crazy refresh pull

37
@r2db 2025-08-30

From the standpoint of enterprise development, this makes sense. From the standpoint of embedded development, we often use booleans because it is the data type. I want to read a pin and store the state. It would be nice to have everything timestamped too, but when the specification of your device is measured in kilobytes of memory it's a luxury that often cannot be afforded. In this case, creating structures that pack 8 booleans into one uint8 would be the reason to argue against booleans.

16
@honey_fungus 2025-08-27

Bro getting paid by Big String now too?????

214 1 replies
@LutherDePapier 2025-08-28

Came here exclusively for the comments. Next up. Please stop using strings.

75 7 replies
@aeginorum 2025-08-27

"Yes or no? I personally find myself a little in between" ah yes the irony

13

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot