Logo
The first webcam monitored a coffee pot.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Cpp-quirks Memes

Posts tagged with Cpp-quirks

The Bool Vector Is A Lie

C++ Programming
1 month ago 45.2M views 0 shares
The Bool Vector Is A Lie
So you think you understand C++? You confidently declare your std::vector<int> and life is good. But then someone mentions std::vector<bool> and suddenly you're choking on your cereal because IT'S NOT ACTUALLY A VECTOR OF BOOLS. Plot twist: C++ decided to "optimize" vector<bool> by packing bits together instead of storing actual bool objects. Sounds smart, right? WRONG. It breaks everything you thought you knew about vectors. You can't get a reference to individual elements, iterators behave like possessed demons, and it's not even a proper STL container anymore. It's basically the programming equivalent of ordering a pizza and getting a picture of a pizza instead. The C++ standards committee has openly admitted this was a mistake, but we're stuck with it forever because backwards compatibility is apparently more important than our sanity.

Today's picks

Handover

Handover

Programming
172.4M views 4 days ago
I feel like a god

I feel like a god

Programming
96.4K views 2 years ago
NordVPN

NordVPN

Sponsored
VPN