r/ProgrammerHumor • • Apr 08 '22

First time posting here wow

Post image
55.1k Upvotes

2.8k comments sorted by

View all comments

Show parent comments

3.8k

u/obviousscumbag Apr 08 '22

"There are only two kinds of languages: the ones people complain about and the ones nobody uses" -- Bjarne Stroustrup

936

u/[deleted] Apr 08 '22

[removed] — view removed comment

2.0k

u/barkbeatle3 Apr 08 '22

To me it’s a fun language because of the weird ways you can play with pointers. It is also a terrible language because of the weird ways pointers can play with you.

213

u/mindbleach Apr 08 '22

And trying to cast a pointer to somewhere inside a multi-dimensional array is one of the torments AM inflicts on survivors in I Have No Mouth And I Must Scream.

125

u/UltraCarnivore Apr 08 '22

The Basilisk: I mean, they could have learned a little Python, a little Tensorflow, something about NLPs, but no, they chose not to. Now they're just going to debug legacy C++ for eternity

33

u/nipss18 Apr 08 '22

I got reminded of the basilisk p much all week. Stop it already, you're giving it power!

→ More replies (2)
→ More replies (3)
→ More replies (6)

307

u/IanSho Apr 08 '22

In capitalist America, you play with pointers...

In Soviet Russia, pointers play with you...

0

u/[deleted] Apr 08 '22

[deleted]

40

u/Vlajd Apr 08 '22

You just pushed me off my chair.

→ More replies (1)
→ More replies (4)

75

u/S0mu Apr 08 '22

TIL- I code in 100% communist C++

→ More replies (3)
→ More replies (3)
→ More replies (22)

158

u/hokaionthenet Apr 08 '22

I have a high opinion of C++, but I hope I'm lucky enough to never have to use it.

157

u/CardboardJ Apr 08 '22

I have a high opinion of anyone that can write good clean readable c++. I've never met that person, but theoretically if they existed, I'd have a high opinion of them.

→ More replies (12)
→ More replies (11)

278

u/Cozmic72 Apr 08 '22

As someone else said somewhere in this thread: if you don’t hate C++, you don’t know it well enough.

224

u/mindbleach Apr 08 '22

Lesson one: you can use nearly every feature from any other language!

Lesson two: don't.

→ More replies (31)

130

u/OJezu Apr 08 '22

I saw someone calling C++ a "clown car of a language" and I think it was very apt comparison that should get more recognition.

40

u/TheTomato2 Apr 08 '22

The worst is the people who think that just because the car has been upgraded to a newer model that it's still not a car full of clowns.

53

u/OJezu Apr 08 '22

Keeping the existing clowns in is a feature to not alienate long-term fans of the circus.

→ More replies (1)
→ More replies (12)
→ More replies (8)

433

u/hiphap91 Apr 08 '22

C++ is a great language, lemme break it down for ya:

  • easy, simple syntax, very readable

  • verbose easy to understand compiler errors

  • it's difficult to create memory bugs

  • there's always one 'clear' good way to do something

  • it's very hard to write bad code...

491

u/LeCrushinator Apr 08 '22

You had me up until right when you started.

→ More replies (1)

194

u/Exciting-Insect8269 Apr 08 '22

As for that last point: watch me!

0

u/[deleted] Apr 08 '22

[deleted]

→ More replies (2)
→ More replies (6)

58

u/fluffycritter Apr 08 '22

My favorite joke about C++:

Ask 12 different C++ experts about the best way to write a piece of code and you get 14 different answers.

→ More replies (65)

104

u/creepyswaps Apr 08 '22

IMO, pointers are pretty much the best thing ever created. Just every time I get to have the pleasure of dereferencing the reference to another array of references that I have to dereference to get the reference to the value at that index which needs to be dereferenced to get the char value of the string reference... it's the best.

33

u/RigelOrionBeta Apr 08 '22

This is, unironically, great.

→ More replies (12)
→ More replies (69)
→ More replies (16)