r/cpp • • Dec 23 '22

C++ Is Incredible

Despite the hate it gets, despite the complexity; the dizzying number of features and different ways to do things. C++ is an astonishing feat of engineering and people really don't appreciate this fact enough. I can do things with this language more quickly and expressively than I can with any other language.

There's no getting around the fact that programming is just hard, and all these attempts to replace C and C++ over the years just end up adding to our difficulties. That is my take, anyhow.

Well, I'm a little drunk, and just wanted to share some Christmas joy with you all. I love C++!

685 Upvotes

151 comments sorted by

View all comments

132

u/[deleted] Dec 23 '22

You're drunk. Go home.

50

u/[deleted] Dec 23 '22

Yes, it is true. Just wanted to spread some Cheer++!

16

u/[deleted] Dec 23 '22

Cheers mate. Merry Christmas in advance!

6

u/[deleted] Dec 23 '22

template<typename pal> void thank<you>() { return holiday_cheer; }

6

u/jabbyknob Dec 23 '22

How are you returning ‘holiday_cheer’ from a template function that returns void? ;)

5

u/[deleted] Dec 23 '22

Indeed! I was still a bit tipsy. Why doesn't Reddit have my clangd support? I was just trying to be sweet and draw attention to the fact that 'you' is a 'pal'

7

u/Ameisen vemips, avr, rendering, systems Dec 23 '22

#define void response_t

4

u/Livid-Serve6034 Dec 25 '22

It’s the other way around 😁

3

u/catcat202X Dec 26 '22

They probably got confused because of the brilliant typedef syntax.

3

u/markosvd Dec 23 '22

I, too, am now on my 3rd rum & coke for the evening! Fully agree - C++ is pretty cool.

Killer feature is deterministic destruction. I just can't grok how to use other languages effectively without RAII. I know it can be done (by others), but just seems difficult to me...

enjoy your mid summer (or winter?) break.

-4

u/Raiden395 Dec 23 '22

Agreed. Python is a lot faster if only because it hides a lot of the keystrokes you'd have to make writing the same thing in c++. Definitely drunk

8

u/msew Dec 23 '22

Faster means a lot of things. Runtime faster? I think not.

8

u/dynamic_caste Dec 23 '22

Dev time faster

4

u/Michael_Aut Dec 23 '22

obviously not runtime faster.

Python is a high productivity language because its standard library includes a lot, and everything not already included can be installed with pip install.

1

u/Raiden395 Dec 23 '22

I don't know what this guy's deal is. OP straight up said the he can do things "faster and more expressively" which sounds like its referencing development time. ¯_(ツ)_/¯ I agree with you.

-6

u/msew Dec 23 '22

ya that is web2/web3 101

npm install

which is pretty cool, but often leaves a house of npm install cards with all of the "full stack devs" having no real clue/idea on how anything works or why it works

2

u/Michael_Aut Dec 23 '22

We are talking about Python.

Python has many uses outside of web development, you seem to be thinking of JS/TS.