Logo
First Git commit message: 'the stupid content tracker'
  • 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

Const pointers Memes

Posts tagged with Const pointers

Really Gotta Make Sure It Doesn't Change

C++ Programming
2 months ago 37.3M views 0 shares
Really Gotta Make Sure It Doesn't Change
When you're so paranoid about immutability that you've basically declared war on any data that dares to think about changing. This is what happens when you read one too many articles about const correctness in C++ and decide to take it as a personal challenge. We've got const pointers to const structs containing const expressions that return const pointers to const constants, all wrapped up with a const_cast for good measure. It's like wearing a belt, suspenders, safety pins, and duct tape all at once—just to keep your pants up. The irony? After all this const ceremony, they're using const_cast to potentially strip it all away anyway. That's the C++ equivalent of installing a bank vault door on your house and then leaving the key under the doormat.

Today's picks

Retreez Funny Mug - Eat Sleep Game Repeat Gamer 11 Oz Ceramic Coffee Mugs

Retreez Funny Mug - Eat Sleep Game Repeat Gamer 11 Oz Ceramic Coffee Mugs

Affiliate
$9.99
Cmon Firefox No Need To Be So Aggresive

Cmon Firefox No Need To Be So Aggresive

Javascript
228.0K views 2 years ago
Because your side projects are just an excuse to make a new framework, right?

Because your side projects are just an excuse to make a new framework, right?

Programming
108.3K views 5 years ago