logoalt Hacker News

apples_oranges • today at 3:42 PM • 5 replies • view on HN

C++ dev here. I love this mess of a language ..


Replies

01HNNWZ0MV43FF • today at 3:46 PM

Did you see the "Spooky C++" post? https://www.nablag.com/spooky_cpp

Did you already know that? Do all your junior C++ programmers know that? Do you have lints turned on in every C++ project and dep for that?

Cause I had to really look at it to figure it out. And I had to think, "Would Rust allow this code?"

➕ show 2 replies
lkjdsklf • today at 3:54 PM

It’s a weird language

On your initial look, it looks like a total nightmare.

The more you learn and use it, you learn that it is even worse than you ever imagined

So you try something else and find yourself in a constant loop of “if this were c++ i could just go xyz, by nooo”

So then you love it

➕ show 1 reply
coldpie • today at 3:50 PM

I have a theory that the reason people like C++ is because it's challenging to use. It's like a puzzle or a riddle or a Dark Souls game. It feels good to get something done in C++ because there's so, so many ways for it to go wrong that when you do it right(-ish...), it feels like you're a master of a complex skill. This makes it a terrible language for actually getting things done, of course, but people like that feeling of overcoming the challenge, so they keep using it.

➕ show 4 replies
gchamonlive • today at 3:51 PM

Stockholm syndrome we're all vulnerable to. I love bash for instance.

raincole • today at 3:46 PM

Yes, people even have a term for this. It's named after a Swedish city.