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
3 months ago
2,945,641 views
0 shares
cpp-memes, c++-memes, vector-memes, standard-library-memes, language-design-memes | ProgrammerHumor.io
More Like This
What Can You Say When Speed Costs 990 Lines
1 year ago
360.2K views
0 shares
Linear Scaling 101
7 months ago
533.5K views
1 shares
Proof Of Proficiency
1 year ago
396.2K views
0 shares
The Passion Tax: Game Dev Edition
1 year ago
414.9K views
0 shares
NordVPN
Sponsored
VPN
It's All Goto? Always Has Been
1 year ago
534.7K views
0 shares
When You Are A Public Function But Only Friends Are Allowed To Touch Privates
1 month ago
18.6M views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++