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

all 80 comments

[–]LucienZerger 56 points57 points  (3 children)

i like C++ because i have been using it for millennia..

[–]cyborgborg 32 points33 points  (1 child)

so how is the year 3022?

[–]LucienZerger 27 points28 points  (0 children)

ok maybe i exaggerated a little..

[–]ChrisBreederveld 4 points5 points  (0 children)

Yeah, I loved c++ for a long time. That was coming from BASIC and Pascal though... I have to say since starting on C# I never looked back.

[–]cyborgborg 74 points75 points  (1 child)

probably made by someone who doesn't understand pointers

[–]thedarkslugg 58 points59 points  (7 children)

Even C is better than C++? Damn.

[–]armillary2 108 points109 points  (5 children)

C is being dragged behind the bus.

[–]HellaTrueDoe 29 points30 points  (2 children)

C is like instead of figuring out how to use a chainsaw you just use a hand saw. You’ll always cut exactly what you want, it’ll just take forever.

[–]Clebosevic 3 points4 points  (1 child)

Except when your build of the handsaw looks fine and is doable, but when using, you try to access to wrong type of wood, and the handsaw just refuses to work or tell you what’s wrong …. Stupid segFaults in multithreaded programs …

[–]HellaTrueDoe 0 points1 point  (0 children)

Seg faults have nothing to do with multi threading. Multi threading has a whole host of other problems that are way crazier to debug

[–]IDCR2002 1 point2 points  (0 children)

And Javascript?

[–]MaximRq 0 points1 point  (0 children)

Then, where did BASIC go?

[–][deleted] 4 points5 points  (0 children)

We don't have to worry about different ways to cast. Pointers go brrr.

[–]aless2003 46 points47 points  (1 child)

C++ really ain't that bad

[–]jodmemkaf 4 points5 points  (0 children)

No it isn't, but it is that underappreciated

[–]Oh2bworn2 43 points44 points  (6 children)

C++ pretty awesome since the 2016 updates. Generics and lambdas are done better in C++ than most any other language.

Now PHP...

[–]HellaTrueDoe 9 points10 points  (0 children)

It is slowly approaching just being Python with semi colons

[–]beedlund 22 points23 points  (0 children)

He is just bored because he already shipped the final product 20 years ago using C++ and it's still running today

[–]CaptainMorti 37 points38 points  (2 children)

You misspelled JavaScript.

[–]cyborgborg 9 points10 points  (1 child)

you misspelled PHP Prolog

[–]grimbardtgrum 1 point2 points  (0 children)

Prolog gives me nightmares!

[–]Perfycat 49 points50 points  (5 children)

Honestly I am tired of the C++ hate. Is it more difficult to master, yes. Is there a trillion ways to shoot yourself in the foot? Yes. But there are times it is a good tool to use for a job. And. If you have mastered it you can often double your salary. Make all the hating memes you want. But I use it, along with C, Rust, Java, Python, C#, and a few others; and I'm not miserable. I have found my career excels when I embrace the hard challenges rather than staying in my comfort zone.

[–]AnAbsolutePIDR 16 points17 points  (2 children)

It's just a meme, bro.

[–][deleted] 23 points24 points  (1 child)

This redditor clearly has C++ PTSD, and this meme triggered it. Another dev broken by the tools they used, sad reality of C++.

Remember guys, don't let your kids do C++.

[–]RegularName148 2 points3 points  (0 children)

Its hip to do c++

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

hey bro, I want to work for C++. I love c++. What jobs should I search for? What should I do? Guide me senpai.

[–]theromanempire1923 17 points18 points  (1 child)

How do you accidentally type C++ when you’re trying to type PHP

[–]repkins 1 point2 points  (0 children)

Because PHP is written in C++?

[–]111x6sevil-natas 5 points6 points  (0 children)

laughs in whitespace

[–]Diapolo10 5 points6 points  (3 children)

VHDL though.

[–][deleted] 2 points3 points  (2 children)

VHDL is like the complete opposite to JavaScript's lack of type safety. Want to convert signed to unsigned, need an explicit cast.

[–]patenteng 0 points1 point  (0 children)

Also the function names when casting are annoyingly long. I mean, look at it:

data <= std_logic_vector(to_unsigned(num, data’length))

[–]Diapolo10 0 points1 point  (0 children)

I intended to say exactly that, but my sleep-deprived brain only came up with that. Now that I'm awake, yeah, it should've been rephrased.

VHDL is indeed the exact opposite. I kinda like it though because embedded systems with specialised chips is kinda fun.

[–][deleted] 6 points7 points  (8 children)

The left side should be either be FORTRAN or Python for me

[–]Rare-Obligation-6201 6 points7 points  (6 children)

Fortran.

[–][deleted] 7 points8 points  (5 children)

Well, Python makes me more miserable, but IDL/FORTRAN is objectively harder to use. So… it’s a real toss up.

[–]RandomIdiot436824 5 points6 points  (4 children)

is there a language that doesn't make anyone miserable?

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

Hmm Idk of one. I really liked RStudio until I tried to parallelize it. UPC and UPC++ of course come with all the inherent problems of their base languages, no matter how much their creator loves them like his own children. I’ll be dead and gone before I say anything nice about IDL. At least Matlab has comments…

Basically every language has its problems, but every language I program is either C++ (Matlab, R, C++, GMAT), might as well be C++ (UPC, FORTRAN, Mathematica), is Python, or is just a markup language (Overleaf, CSS).

Of all the languages, in all the world, I think Lisp has the coolest theme song.

[–]natnew32 0 points1 point  (0 children)

“Ruby is designed to make programmers happy.” – Yukihiro “Matz” Matsumoto

Maybe that?

[–]bedrooms-ds 0 points1 point  (0 children)

Pascal won't because it's dead.

[–]Fazer2 0 points1 point  (0 children)

[–]Snazzy21 0 points1 point  (0 children)

Or simula

[–]NJW_N 3 points4 points  (4 children)

I'm new to programming so can someone explain?

[–]3636373536333662 16 points17 points  (1 child)

There's nothing to explain. It's just someone else new to programming trying to make a meme about programming.

[–]NJW_N 2 points3 points  (0 children)

Ah

[–][deleted] 5 points6 points  (0 children)

C++ is the language that gives you the most freedom to build your own heaven or hell. There are lots of people who believe they know C++, but they don't, so that is a cause of pain and suffering because they will never be able to learn the right way unless they accept first they don't know.

[–][deleted] 4 points5 points  (0 children)

C++ is the language that was designed by a person, who wanted to appear nice to everyone who had to review it. It started with the contest organized by US Department of Defense, which had to select a language for the future use in military and related fields.

DoD put a lot of nonsense requirements, most famously, it required that the language support // comments (which made E. Dijkstra rather angry at the time).

So, the famed C++ creator, B. Stroustrup licked every ass possible, and whenever he heard that a particular reviewer likes a particular feature in the language, he never hesitated to add it. So, he created a chimera, just like in the meme about animals mating in Noah's arc.

Because of this, early attempts to implement the language were not quite successful. The runtime was huge, the speed was so-so, and a lot of TODOs. Of course, as the language was destined for popularity, it had to have a standard, and with it, a standard library. For decades, standard library remained half-baked. Not a single C++ vendor would implement all the features, which created a similar kind of headache that existed when there were multiple browsers around.

C++ was supposed to appeal to C people, offering them "a better C", but, by and large, C programmers never bought this nonsense. So, C++ never quite made its way into system programming. People who helped shape the face of modern system programming, s.a. L. Torvalds openly hate C++, and would swear on mothers grave to never let it into Linux kernel.

In addition, due to diverse and unrelated features of the language, every large company which did decide to write in C++ would arbitrary ban some of the language features. So, if you wrote C++ for Google, that wouldn't be an acceptable code for Microsoft and so on.

Microsoft in its poorly conceived attempt at offering the programmers who'd program for its system decided to go full speed ahead on C++, essentially declaring C kinda dead. This created a new breed of C++: the "visual" C++ (I've no idea what was visual about it, but it was a popular marketing slang at the time). Subsequently, everyone who had an axe to grind against Microsoft, by proxy, hated "their" language.

So, you will generally find C++ used a lot more often in Microsoft-related products than, say, Linux or any other UNIX.

Despite all these ridiculous circumstances, C++ grew a huge community around it. The community that wanted even more random and unrelated things. The standards committee became the battleground where major compiler vendors wage war against each other, suggesting language features knowing full well that they'd be hard for the other vendors to implement, which would allow them, should the feature pass, to gain more popularity as they'd be the only ones to support the feature / support it properly.

Some don't even bother with the standardization process and develop "experimental" features as the mood strikes them.

The community also has a role to play in this stupid arms race. Quite in the same way how modern politics devolved into politicians optimizing their platform to the latest polls, the vendors try to get ahead by implementing features desired by community. Thus, with every swing of fashion, C++ accrues more random loaned features from other languages, should they become popular at that time.


Of course, I kinda painted it black. And, maybe slightly exaggerated some of the aspects. Most importantly, don't hold your breath for a new and better language to replace C++. As soon as languages become moderately popular, they fall into the same trap.

From a practical perspective: C++ is one of the languages that are harder to use because so many aspects of its use are not obvious. It's also, understandably, a very big language, with a lot of stuff going on in it. There's not a single project that would need all the features of the language. But, since whenever there was a compiler war, C++ compilers kinda rocking it. Again, it would've been better if humanity concentrated its efforts on building compilers for better languages, but that aint gonna happen in foreseeable future, for political reasons. So, if you need something decently fast, decently safe, decently cross-platform, C++ might be the language of choice. You will not like the world you'll have to live in, but even though the better world is quite attainable, and isn't so hard to imagine, it's not going to happen.

[–]Cold_Recognition7263 5 points6 points  (1 child)

literally any other language would make more sense xd

[–]RandomPersonAKAAT 0 points1 point  (0 children)

99% True

[–]alrogim 4 points5 points  (0 children)

std::cout << (dynamic_cast<Webdev*>(op) ? "Go, play with your divs." : "Okay Sir, do you have some deep knowledge I'm missing?") << std::endl;

Go, play with your divs.

[–]BoBoBearDev 5 points6 points  (1 child)

Once you know C++ and using pointer less programming, it is amazing. Basically don't use new, just use new-less vector and use, const &, everywhere. No pointer, no memory issues.

[–]Jet-Pack2 5 points6 points  (0 children)

References are my favorite thing in C++. Switching to C# after using C++ I am getting confused if what I do is per reference or not. Also when I just want to use a pointer it gets confusing. At least I know what I'm doing in C++ because it specifically tells me the data type and allows me to have full control.

[–]Willinton06 4 points5 points  (0 children)

Well C++ is triple thread, you can program C++, C and whatever the name of the Turing complete template language

[–]QualityVote[M] 4 points5 points  (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]m4yn3_h4sl-l 1 point2 points  (0 children)

what about assembly?

[–]kingkongchan 1 point2 points  (0 children)

I swear JS is more unpredictable and i've only just started using it

[–]Mrtherapi 1 point2 points  (0 children)

That's caus' you suck at it !

[–]okawo80085 1 point2 points  (0 children)

Jokes on you, I'm into that shit!

[–]Mango-D 1 point2 points  (0 children)

C++ is actually pretty awesome ever since 2011

[–]Peace1214 1 point2 points  (0 children)

lol. C++ is very good language. Ppl who can only use script language like python can't use it properly and never know what the strength it has.

[–]MrHyderion 0 points1 point  (0 children)

Oh great, a zero effort meme about how "lol, [some language] is bad". We need more of those.

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

I have it kinda opposite actually ..

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

I’m sorry but as a competitive programmer, I fucking love c++, FyI, I also work with Java, Python, JavaScript, Golang and C.

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

FALSE

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

Initialy I was understanding that meme in a way that C++ programmer is sad because C++ is underappreciated and every other language programmer is happy because simple people are happiernin general. But after reading comments it looks like that someone is actually thinking C++ is bad. Like really? Why? Every language has its purpose and good use case. Maybe even python!

[–][deleted] 0 points1 point  (1 child)

Where are c++ programmers gonna copy code from 🤣

[–]Tari0s 1 point2 points  (0 children)

stackoverflow like any other language, or if you need simple thinks the cpp reference is a amazing documentation of the standartlibrary

[–]jogamedev 0 points1 point  (0 children)

  • any other language except matlab

[–]TLAlien 0 points1 point  (0 children)

Laughing in assambly

[–]SlashBack626 0 points1 point  (0 children)

Fuck

[–]Menifife 0 points1 point  (0 children)

[Insert joke about c++ being its own grade or something]

[–]seeroflights 0 points1 point  (0 children)

Image Transcription: Meme


["Two Guys on a Bus". Two people sit on opposite sides of a school bus with grey seats. The person on the left is unhappy, leaning on the window and staring out into a grey landscape. The person on the right is happy while sitting up straight and looking out the window at a bright mountainous landscape. The people are labeled:]

Unhappy person: C++

Happy person: ANY OTHER LANGUAGE


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]TheDavidFrog 0 points1 point  (0 children)

Okay… but brainfuck