So someone enthusiastically declares C as their favorite language, and the drunk committee member in the back immediately starts screaming the truth: vector<bool> is neither a proper vector nor does it actually store bools. It's a "space-optimized" abomination that packs bits together, breaking the entire mental model of what a vector should be. You can't even get pointers to individual elements because they're bit-packed. The C++ standards committee really thought "hey, let's make this one specific template specialization behave completely differently from every other vector type" and then went home for the day. It violates the principle of least astonishment so hard that seasoned C++ devs still get caught by it. The committee member is having a meltdown because this design decision haunts them to this day.
I Want What The Committee Was Smoking
4 months ago
2,964,205 views
0 shares
cpp-memes, c++-memes, vector-memes, standard-library-memes, language-design-memes | ProgrammerHumor.io
More Like This
The Price Of Type Safety
1 year ago
557.4K views
1 shares
Memory Leaks: It's Not The Bug, It's Who Reports It
1 year ago
342.4K views
0 shares
We All Dreamed About Making Our Own OS At Some Point…
9 months ago
857.1K views
0 shares
Enough Is Enough
7 months ago
438.6K views
1 shares
SQL Cheat Sheet Desk Mat for Database Administrators, Analysts, and Programmers, Quick Key, Large Anti-Slip Keyboard Pad Mouse Mat KMH
Affiliate
Desk Accessories
Designfullprint
Who Would Win: $2000 GPU vs Japanese Dev Coding Like It's 2009
1 year ago
590.9K views
0 shares
Max Erals: When Copy-Paste Goes Too Far
1 year ago
465.1K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++