r/cpp • u/Live-Manner2725 • Mar 06 '26
C++ development challenges
Hi fellow C++ developers,
What are some of the most challenging problems you've worked on or solved using C++, also do you think there is a certain domain where C++ usage becomes more challenging. Was the problem a platform issue or a code logic issue.
The reason I'm asking this is because, with the AI tools these days, it's really easy to code a basic skeleton and I want to carve my way to work on problems difficult for gpts to solve.
24
Upvotes
29
u/CarloWood Mar 07 '26
Writing a Vulcan engine was the most challenging. But don't worry about AI, the only effect that that is going to have is that the next generation of coders can't code anymore.
3
u/LogicalPerformer7637 Mar 06 '26
AI is very good on solving complex coding problems nowadays (if used right). If you want something what AI cannot do you need to go to some niche area.
My recommendation is to learn how to effectively incorporate AI in your workflow. It is what companies want and what gives sense if done right.
The only problem is, that you still need to understand the code generated by AI and if you relly on AI too much, then you will have no background knowledge, i.e. there will be not enough seniors who would be able effectively use AI and spot when it halucinates.
There will be lots of AI operators.
4
u/thecratedigger_25 Mar 06 '26
A.I will have some weak points but it can help with designing a base to build your code on top of. Or at the very least, design some diagrams you can build with. However, it is easy to get into technical debt and debugging can become an ordeal later on.
It is simply a tool, not an entire generator that does the work for you. I'm just a hobby programmer so I've never used A.I to production scale.
3
u/osmin_og Mar 06 '26
I recently started using AI in my work and can say that even the latest models can produce highly inefficient code, working but inefficient. So I need to read every line and ask AI to fix/rewrite here and there.
3
u/PrimozDelux Mar 06 '26
If you want a challenge try 3D game programming. I did that with claude, even made a server for it with netcode. Never done any of that before and it's a pretty good way to learn how to use claude. You'll have to teach it how to "see" the game world in order to debug things like hitbox mismatch or jittering in online play.
2
u/pjmlp Mar 06 '26
GUI and OS vendor frameworks, once upon a time C++ was king during the 1990's, nowadays it lives on the runtimes of languages or graphics layer, with surviving frameworks like Qt, VCL, FireMonkey remembering those days.
1
u/phi_rus Mar 07 '26
AI is good in coding the stuff that was already done multiple times all over the internet. If you encounter a novel challenge, you're better off without it.
1
u/Realistic-Reaction40 Mar 07 '26
Great question the memory management and undefined behavior rabbit holes in C++ are probably where AI tools struggle most, since the bugs are often deeply contextual and timing/hardware dependent. For the scaffolding and boilerplate side though, I've actually been combining a few tools lately Cursor for code aware suggestions, Claude for explaining complex templates, and Runable for automating the repetitive workflow stuff around projects. Frees up more mental energy for the actually hard problems you're describing.
1
u/jepessen Mar 07 '26
Write code that's readable and easy to understand after some month
1
u/HorsesFlyIntoBoxes Mar 11 '26
AI has been nice for generating makefiles catered to my project structure. I try to avoid using it to write large swathes of c++ code though. I’ve also used ai to write small snippets like generating bit masks and bitwise logic operations.
Most complicated cpp project I worked on was when I was in industry working on a high performance math library. Most complicated non-industry project has been a compiler for a custom language as part of a compiler engineering course I took in college.
1
u/01e9 Mar 11 '26
Coroutine abstraction that is bridged to Boost.Cobalt and works with modules.
Spent a few weeks and a few tries from scratch, explaining to AI what I need and it generating incomplete, not working, UB code.
Eventually I succeed with a working solution by micromanaging AI and checking+refactoring everything.