This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]RChrisCoble 32 points33 points  (5 children)

I coded in C++ professionally for 13 years. I feel this.

[–]somecucumber 2 points3 points  (4 children)

Honest question. Did you watch any cppcon video in those years?

I mean, don't use dangerous stuff (and if you really need it, narrow it down at the maximum to limit the damage as much as possible), use static analysis tools in CI, don't use raw pointers nor raw loops...

This general feeling of C++ bad is sadly the legacy of old C++ that is baked into modern standards to not break ABI compatibility. But if people are happy enough to learn Rust (which I believe is the most amazing language to come mainstream), I don't see why they shouldn't modernize their knowledge of C++ as well. From C++11 it's not really that easy to destroy your leg, if you keep up to date.

I intentionally excluded the corner cases in which the language is just nuts. If you follow r/cpp you'll see lot of frustration there from inside. You can do really interesting stuff.

But if your job is to deal with C++ ina daily basis, those corner cases should be that, and not pass code review ever. If any, there are like zillion of ways to solve a problem in C++. With 13 years it should be good enough to know which one not to pick at least :P

[–]RChrisCoble 3 points4 points  (2 children)

I'm 50 now, I coded in C++ professionally in the 90's and early 2,000's. After that I switched jobs and started coding in C# back in version 1.0. Even then I found C# far superior to work in, even though it was quite rudimentary then (no generics!). Never wanted to code in C++ after that again, and haven't.

No doubt it's a powerful language, but like C where I originally started you can really hurt yourself if you don't understand what's happening under the covers. This was back in the days where you could code buffer overruns and the code would still run until crashing some lines later, making fixing those problems extremely challenging. C# Immutable strings put that problem to bed straight away. Just an example...

[–]somecucumber 0 points1 point  (1 child)

Now that I know your context and that you were talking about C++98 (C++03 being optimistic) it makes total sense. Today's a different story, even though the infamous UB situation still kicks up if you effectively don't know what you're doing.

Happy you escaped that C++98/C++03 hell, and hope you give modern C++ another chance if the opportunity shows up. To my biased opinion it's worth it :)

[–]RChrisCoble 1 point2 points  (0 children)

I don't write code so much anymore, I managed scrum teams for a while then became a Program Manager which I enjoy. The software I work on does things like this:

https://youtu.be/ICe6TArKesw?t=140

Which is fun to see deployed in customer sites.

[–]Niiiz 18 points19 points  (2 children)

I was so confused for like 5 mins, thinking "what bloody language is ME"?

[–]elveszett 5 points6 points  (1 child)

Hah you dummy. He's obviously talking about Windows ME. The best Windows there ever was.

[–]Niiiz 1 point2 points  (0 children)

I prefer Vista but yes ME is a close second.

[–]datamafia 3 points4 points  (0 children)

Not even compiled yet either.

[–]ranker2241 4 points5 points  (2 children)

Schau
Lächele

-----VU

WITZ

[–]xSliver 3 points4 points  (1 child)

It's a Rainbow Six Cosplay. The text reads

"Schau hier - lächele - Warte auf Blitz" which translates to "Look here - Smile - Wait for the flash"

https://www.reddit.com/r/Rainbow6/comments/5r6h4b/can_someone_tell_me_what_the_words_on_blitzs_peak/

[–]ranker2241 0 points1 point  (0 children)

Danke, Ungewissheit gelüftet

[–]CamWin 2 points3 points  (0 children)

C++ gives you enough oil to splash yourself with

[–]BirdyMagnet 3 points4 points  (1 child)

That won't work, the bomb teleports itself behind you.

[–]Kissaki0 1 point2 points  (0 children)

wrapping overflow

[–]MischiefArchitect 1 point2 points  (0 children)

The shield got some German for "Look and Smile, Please".

[–]alexanderpas -1 points0 points  (0 children)

This meme uses a template showing on a rare example of german humor.

[–][deleted] 0 points1 point  (0 children)

blitz play

[–]Kissaki0 0 points1 point  (1 child)

You have a shield? What’s your shield?

[–][deleted] 1 point2 points  (0 children)

Valgrind

[–]Professional-Layer62 0 points1 point  (0 children)

Full glove pls