logoalt Hacker News

sobellian • today at 4:00 PM • 2 replies • view on HN

It's not expert friendly either. The Stockholm syndrome just kicks in.


Replies

simonask • today at 6:20 PM

Exactly. C++ programmer confidence is a bell curve, where the X axis is skill level.

The more you know about programming in C++, the less confident you become that your code is actually correct, because you've seen before how the most seemingly innocuous decisions turned out to be massive UB footguns. Even worse if you know anything about how computers actually work - that's not relevant, C++ like C targets an abstract virtual machine with semantics unlike any computer ever built.

The simplest example is signed integer overflow: the bright young student knows all about Two's Complement and mistakenly believes all is well, and the wizened but weary mentor must waste everyone's time to avoid summoning nasal demons.

What an unbelievable waste.

bestouff • today at 4:17 PM

The more you know about C++, the less you're confident about how your code will be compiled.

➕ show 1 reply