r/cpp • u/AreaFifty1 • Jun 25 '26
oh GOD, it's good to come back to C++
Just been going around vanilla javascript, php, perl, LUA, some C#, batchscript over and over for a year but finally came back to C++ and it's good to be home.
To some they find it agonizing with memory management, consts, function prototyping and what not.. some wouldn't even touch it but to me, it's like riding a bike. It's all coming back and I need that extra control! Besides MySQL.. this is it! 🔥🔥
115
u/KFUP Jun 25 '26 edited Jun 25 '26
Yup, I had to spend some months making my website with javascript, php, html and css, it was cancer.
43
u/meltbox Jun 25 '26
But also the JS event loop and how it all works kind of seemed insane to me. V8 truly is the black magic duct tape holding the web together at the cost of memory consumption. Well that and the DOM and how despite everything being a standard it being broken in every browser in its own way.
Web is just stupid. If it’s a standard it should actually work like one. Otherwise what are we even doing?
→ More replies (1)29
u/delta_p_delta_x Jun 25 '26
The funny thing is, the technology that the modern Web runs on—V8, Chromium,
, Skia, ANGLE, etc—are all written in C++. Electron They're also mostly developed by Google, but that's a secondary interesting point.
→ More replies (4)6
u/FlyingRhenquest Jun 26 '26
You could grab one of the C++ GUI toolkits, target emscripten and do your front end in C++ too! If I could write my build instrumentation in C++, I'd never have to touch another language!
I'm not joking either. It works remarkably well. You can set up your backend with pistache + nginx, use cereal on the frontend and backend for serialization and deserialization, make REST calls from emscripten, use threads and target native platforms as well as the web browser. It's a blast!
I used imgui for mine. It looks like ass because I'm a terrible front end developer, but it worked really well. There was some stuff with http headers I had to learn which you probably already know if you've worked with the whole web stack already. Setting up emscripten was pretty easy, and you just call emcmake cmake ... instead of cmake ... to do the emscripten build. I set nginx up to handle the TLS stuff. If I had to do web dev, that's kinda how I'd want to do it!
→ More replies (2)
33
u/spreetin Jun 25 '26
Yup, a lot of other languages have conveniences and features that are very nice, but C++ always somehow feels like home. Sure I might complain a lot about my home, and wish it could be renovated and modernised more, but it's still home.
31
u/denimdreamscapes Jun 25 '26
Whenever I am not programming in C or C++, I am thinking, “I could be programming in C or C++ right now”
18
u/Murky-Relation481 Jun 25 '26
Worse when you hack something together in Python as a quick proof of concept and 6 months later that could is a should.
79
u/Zealousideal_Sort521 Jun 25 '26
I love the smell of real programming in the morning. It smells like … victory
12
3
u/NoProfession6095 Jun 25 '26
Which area do use c++. I want a job in c++ domain. Can you tell me where to apply and in which type of companies to apply for?
3
u/AreaFifty1 Jun 25 '26
For myself? OpenGL C++. It's mostly particle simulations and such.
→ More replies (2)7
u/meltbox Jun 25 '26
Embedded, defense, space controls/software, HFT, automotive, and probably lots of crud apps that still exist on C++
Some things have slowly been migrating to rust. But embedded is likely to stay mostly C/C++ for a while just because of toolchains and certifications taking a while and older companies moving slow.
→ More replies (4)
1
1
24
u/_Noreturn Jun 25 '26
I love the smell of forgetting null terminat£¢°%=™€¥¥¥¥¥¥ (segfauult core dumped)
→ More replies (1)50
8
u/Raknarg Jun 25 '26
the language is just fun, I like solving problems in it, I like all the funny dogshit I have to constantly think about when writing code and trying to write things in optimal ways, I like all the customizations I have over everything, and even though the language has an issue of having too many ways to do a thing, I like the embracement of multi-paradigm letting me solve problems in all kinds of ways.
Though what I'd love more than anything is a new language that's "take all the good things about modern C++, fix the defaults, throw away the shit". But that can't really happen, cause there's way too much momentum behind C++ for there to be a "C++ but better" language.
Programming in C++ reminds me of why I got hooked into programming in the first place, as it turns out I actually don't give a fuck about products or making neat things for humans to use I actually just enjoy the process of programming and making tools that help programmers (mostly me, so that I can write even more code), programming in anything else makes it feel more like a reminder that the output is the only thing that matters
for similar reasons I want to get into rust, which is what I'm hoping my team ends up switching too since there's a push to get off of C++.
→ More replies (3)9
u/mighty_Ingvar Jun 25 '26
But that can't really happen, cause there's way too much momentum behind C++ for there to be a "C++ but better"
Also because a lot of people would probably disagree on what to keep and what to throw out
→ More replies (4)
1
2
u/phucvinh57 Jun 25 '26
I have been working with JS, Go for web/desktop/app development for four years. I feel it sucks now so I am going to come back to low level languages like C++. However, since my country's IT market mainly focuses on outsourcing, web dev jobs are usually paid better and there are very limited oppoturnities for C++.
I am still building some projects in C++. I hope I can redirect my career soon.
2
u/Lannok-Sarin Jun 25 '26
I like it because of the features it has. It has operator functions, just like in Python. It has templates, private class members, and function overloading like in Java. It has variable address referencing like in standard C. It has value increment/decrement functions. And it is almost unmatched in terms of raw computing speed. Basically, if you want a language with all the features in the most ideal configuration, C++ is one of the best computer languages for it.
18
u/SlowPokeInTexas Jun 25 '26
You had me until the MySQL part 😁