News for hackers. Stuff that matters.
Re:Ask HN: What are the “lost arts” of our field? by warrenm on Wednesday August 16, 2023 @03:40PM (#37152540)
Bit masks are cool

They are also very fragile

Far better to have some maintainable and extendable (what happens when you exceed 32 binary flags?) than being overly clever for the sake of saving a couple bytes of storage

Re:Ask HN: What are the “lost arts” of our field? by xp84 on Friday August 18, 2023 @09:56AM (#37175667)
No dispute there, it would be silly now, I just think it was kind of cool how programmers used to understand how binary worked, and appreciate that it was worth it at one point to use 1 actual bit to store a true/false value.