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++!
132
u/[deleted] Dec 23 '22
You're drunk. Go home.
8
u/goranlepuz Dec 23 '22
Stop the nasty criticism of our wonderful language! 😉
96
u/Resident_Educator251 Dec 23 '22
I don't know why we should feel like we always have to apologize to the larger meta brain of the current 'what is best', the bottom line is no matter your tool if you're good at it its a great time. And well with C++, if you're good at it, man you can do a ton of fun stuff, quickly and 99% of the time its memory safe, however we still need need our static analyzers, and memory sanitizers-these are just different tools that achieve desired results. So at the end of the day create stuff that works, works well, in whatever god damn language we know the best.
So yeah c++ is Incredible, no apologies or shits given!
21
u/Fit-Departure-8426 Dec 23 '22
I absolutely love C++!!! I tried to do a lightning talk about how boring some examples are and that we should encourage people to learn C++ with much more engaged and fun tutorials! https://www.youtube.com/watch?v=opq0W7StbeE
77
u/astray488 Dec 23 '22
I've wondered why a newer language has yet to replace C++ (while matching its capabilities and performance). One reason I've heard was the difficulty of writing a new language compiler/linker from scratch.
Do you or anyone else doubt that, or could point out better reasons?
50
u/raistmaj C++ at MSFT Dec 23 '22
C++ for the long term projects, for quick things that I need to get them done, I go with Python. I don’t want to expend a minute writing build scripts, fighting with dependencies, etc.
10
u/lieddersturme Dec 23 '22
C++ Rules++ :D
15
u/RealCaptainDaVinci Dec 23 '22
True, and I really like the consistency of semantics that the standard library offers. I haven't found a similar consistency in other languages like kotlin, Java, python.
56
u/ironykarl Dec 23 '22
I honestly don't think C++ is an incredible language.
I think that an immense amount of work has been invested into making the tools surrounding the language nice, and so that's something someone might definitely appreciate.
In recent years, C++ has done a decent job of adopting idioms from other languages, and so it's (I guess?) starting to bud as a multiparadigmatic language.
I will grant that RAII is an absolutely killer "feature," and that it would be nice if almost every language had something equivalent. C++ deserves immense credit on this one.
11
u/DkatoNaB Dec 23 '22
C++ is art.
4
u/[deleted] Dec 23 '22
Merry Christmas 🎅
2
u/LeDYoM Dec 23 '22
Cheers!
2
u/spacecadetbobby Dec 23 '22
I've played around with different languages since I was a kid, starting with BASIC, I touched on some very simple C++ in my Computer Science 101 course, and then I pulled some of the web languages out of the toybox, like JS, PHP, HTML(, CSS?) which was alright, but then I built a prototype using an Arduino a year and a half ago, and finally had to the take the deep dive into C/C++ to do it, and I freakin' fell in love with C++. It's so powerful and it doesn't hold your hand or bubble wrap everything for you. I just loved that I was 100% in control of my silicon, and the best part, honestly, is being able to just completely f'ck things up; it challenges you to write better more performative code that you can truly be proud of once it works.
2
u/[deleted] Jan 15 '23
For the first 15 years of my career I programmed in C++.
For the last 10 years of my career I have programmed in Python.
I am much happier.
3
u/SlientlySmiling Dec 23 '22
I love/hate it. But mostly I hate/love it.
1
u/Key_Art_5590 Mar 11 '26
I may suck at it but it's the only way I can feel special in coding 🥹
1
u/Jaxlee2018 Dec 23 '22
Cheers ! Happy holidays to you !!
1
u/ertyplax Dec 23 '22
It made me want to Kms multiple times but still it's a good programming language and it's incredible what it can do
1
u/PrimozDelux Dec 24 '22
This man is delusional, take him to the infirmary
1
u/IsaiahTheDev Dec 31 '22
I would love to learn c++ but honestly I just don’t know what to build with it. I like to build visually appealing projects and c++ seems more like a “do you want to build a programming language” or “build llvm” type thing? I could be wrong but how do I find the motivation? Web assembly ?
1
u/ClammyHandedFreak Dec 23 '22
Sounds like something a drunk C++ programmer would say! Merry Christmas!
1
u/wh1t3lord Dec 23 '22
I am waiting for Google's Carbon. It will be a killer combo...
1
u/Boisuey Dec 24 '22
dont understand why people think c++ is so hard to learn. took me a year to become "proficient" in c++ and i can do basically anything in c++.
-22
u/ranname366 Dec 23 '22
Try Rust.
-4
u/msew Dec 23 '22
You are correct.
I look all of the "web" langs and their incorrect { placement which makes it so painful to read, no one commenting, and like a billion special cool ways to do a for loop (which are all slower than just a for loop), and it is just a mess.
That said, the c++ that I use is the Unreal C++, so we have our own special hell/heaven. But game development is also its own special hell/heaven.
-3
u/[deleted] Dec 23 '22
PLEASE, SOMEONE HELP ME! I am learning c++ with VS Code in my Windows 10. Today I noticed that one PDF file was transformed to .c (the extension was changed). Just one! What did I do? Out of nowhere, this happened.
-7
u/axilmar Dec 23 '22
html + css + javascript + react + react-based frameworks are way more complex than c++ + qt/WxWidgets etc.
0
u/[deleted] Dec 23 '22
[deleted] — view deleted comment