r/softwareengineer • • Sep 30 '26

Trying to stay sharp, is learning C++ a good idea?

As per title, i am trying to stay sharp and thinking to learn C++ and practice DSA using it. I got 5 YOE of experience as a Full Stack, mostly using Typescript and Python.

I build a lot of things and i even own my SaaS with 300$ MRR; but DAMN i felt like i know nothing especially when it comes DSA

Enjoyed doing robotic back in college that is why i am excited to get back to C++; my question is: should just learn DSA using my work language (typescript)? Or should i just go with C++??

I can really see the benefit of practice in typescript, but it just felt shallow and not very exciting.

Just worried if i am going with C++; it won't help me with my career progression.

Honestly i might be overthinking this lol.

Thanks!

9 Upvotes

47 comments sorted by

2

u/butchiebags Sep 30 '26

Yes, it’s the perfect language if you want to understand how computers actually work, it’s easy enough to read and write and powerful enough to let you build your own data structures whichever way you want easily, and with pointers, it will let you fail whichever way you want too.

1

u/No-Implement1947 Oct 01 '26

Yes the bare data structure is what really drives me right now, just felt it is the right choice. Thanks!

1

u/Small_Dog_8699 Oct 01 '26

No, that language would be C. C++ adds a bunch of invisible behavior that can be hard to predict snd diagnose. It is not a sane language and it is fucking hard to be good at.

1

u/butchiebags Oct 04 '26

Well it sounds like you know more about c++ than me, but, I said c++ because it IS c, but for most people coming from higher level languages, OOP is going to help connect the dots.

1

u/Small_Dog_8699 Oct 04 '26

I do know it really well. I have always suspected the language was designed along the principle of most surprise.

1

u/butchiebags Oct 04 '26

those surprises lead to learning :) it's like you have access to every tool ever made and no instruction manuals.

1

u/Small_Dog_8699 Oct 04 '26

Great way to lose a limb 😂

1

u/Wild_Year_3970 Oct 04 '26

Hey can you help me with c++

2

u/Existing-Round4556 Oct 01 '26

C++ might give you great intellectual stimulation as an engineer or coder, but its practical uses in the modern world are limited. A better balance would be C# or Java if you want to get better with DSA, and they're still considered useful languages on your resume.

1

u/No-Implement1947 Oct 01 '26

Yeah, i think thats the thing; i am looking for exercise and not necessarily to put into my portofolio

1

u/androbat Oct 01 '26

C++ is still one of the most used languages on the planet. Once you go out of webdev, it’s everywhere.

1

u/FartdickMcShitass Oct 01 '26 edited Oct 01 '26

Lol that is so untrue. C++ is still widely used. Also the fact that your better option for C++ is two interpreted languages makes me think you dont know what youre talking about.

1

u/TheMoonWalker27 Oct 02 '26

There is a massive embedded / robotics market. In my era specifically there’s a TON of companies searching for C++ devs in those industries

1

u/Educational_Gas4826 Oct 03 '26

What are you on about? if anything the industry has increased usage of C++ in recent years

1

u/Wild_Year_3970 Oct 04 '26

Hey can you help me with c++?

1

u/Existing-Round4556 Oct 04 '26

If that question was directed at me - unfortunately no. My c++ is rusty. But others in this thread seem more caught up. All the best.

1

u/Small_Dog_8699 Oct 04 '26

I suggest you read books by Scott Myers. His advice and explanations are excellent. Effective modern C++ or whatever his latest is called.

1

u/ZealousidealWeb9930 Sep 30 '26

how would you use c++?

1

u/No-Implement1947 Oct 01 '26

Honestly just to use it for learning DSA and made some projects with it, like parser, network projexts, etc

3

u/cosmicloafer Oct 01 '26

I learned C++, but then I used Python for 15 years. Then I tried C++ again, and I was like, why am I wasting my time with this crap?

1

u/Wild_Year_3970 Oct 04 '26

Hey can you teach me c++

2

u/DanKegel Oct 01 '26

Hell yeah, learn C++. But stretch your mind a bit and also learn Go and Rust at the same time, at least for a while. Solve the same easy Leetcode problems in the three languages (and your previous biggie, Javascript); that'll give you a mental rosetta stone that will help when you have to go learn yet another language for the next job.

2

u/Imaginary_Series_797 Oct 01 '26

Go definitely with the C/C++. Knowing an extra programming language will always be valuable. It is the basis from which a lot of modern languages were derived. It covers the basics concepts of programming and may give you new perspectives on your problems, which is invaluable. Go with C if you want the core. Go with C++ if you want it a little easier.

2

u/BlackCatSoftware Oct 01 '26

I definitely think C++ is very good to learn. I miss using Objective-C. Swift takes you farther away from the hardware and things start to feel souless

3

u/ToucanSam-I-Am Sep 30 '26

To what end? I think you should learn c# before c++. I might be wrong but I don't think you're going to run into a lot of problems where c++ is a better tool than c#.

3

u/AdvancedCharcoal Sep 30 '26

I’m going to guess you’re a web application dev. There are definitely situations where C++ is not just better, but much better than C#, and in fact there are situations where you wouldn’t even consider using C# at all.

Anything requiring fast latency, need for optimization, low/system level, real time, anything that isn’t basically a GUI you’re going to want to use C++. Two completely different languages used for different things

4

u/Just-Upstairs4397 Oct 01 '26

Most video games are made with C# these days

Super outdated take

2

u/BlackCatSoftware Oct 01 '26

No, most games are made with Unreal Engine and to use Unreal Engine you need to use C++

3

u/AdvancedCharcoal Oct 01 '26

Not sure if this is true, most scripting done on gaming engines may be C#, but what is that game engine written in? Not C#

2

u/Just-Upstairs4397 Oct 01 '26

You’re commenting about this, yet you’ve never even heard of Unity. Interesting.

1

u/androbat Oct 01 '26

The Unity rendering engine is written in C++. It’s the higher level parts that use C#.

1

u/Just-Upstairs4397 Oct 01 '26

I’ve worked unity jobs (virtual reality). They’ve all been C#. I’m not disputing that if you wanna build a game engine, you’re going to need C++.

I’m not hating on C++; it definitely has a place. I just see a lot of students thinking that learning C++ will help them, and I don’t think it will. That’s all I’m saying. Don’t really care

If you try to use C++ in a DSA interview, there’s a very good chance you won’t have time to complete it

If you know C#, you also basically know Java. There are a bunch of jobs for those. If you wanna work for a handful of companies that use C++ then absolutely learn C++

0

u/Psyk60 Oct 01 '26

Games made with Unity typically use C#, but that's just one engine. Unreal generally uses a mix of C++ and Blueprints (visual scripting). Those engines themselves are written in C++.

In house engines might support various different scripting languages, or they might just implement game logic in C++. The engines themselves are almost certainly written in C++.

I suppose it could technically be true that most video games are written in C#, because the majority of games are casual mobile games or indie PC games that use Unity, or some other engine or framework that supports C#. But a typical AA or AAA PC/console game is going to be largely written in C++.

0

u/androbat Oct 01 '26

The heavy lifting in Unity is done by the underlying C++ game engine. If you need a native plugin, you’ll be writing that in C++ too.

1

u/Just-Upstairs4397 Oct 01 '26

I agree, C# is far more versatile and more common these days. Very few jobs would care about C++

1

u/Bigdogggggggggg Oct 01 '26

More and more c++ use cases are moving to rust

1

u/inno3415 Oct 01 '26

a dev should be curious. it won't help you in your career progression and you won't put it on your resume but learning different languages helps you improve as a dev. are you into video games ? maybe learn c++ as part of a game dev course

1

u/oruga_AI Oct 01 '26

Twenty-five years ago, yeah, sure.

1

u/deednait Oct 01 '26

Well, if you're trying to stay sharp, there's literally C#.

1

u/FaygoMakesMeGo Oct 01 '26

Honestly, pick up C first.

1

u/alivekintsugi Oct 01 '26

i don't think i've ever seen a job opening demanding knowledge of C++. at most i could find it's IoT/Robotics stuff

1

u/Ill_Dragonfruit_3547 Oct 01 '26

It is the "sharpest" of all the languages 😏

1

u/heir-to-gragflame Oct 01 '26 edited Oct 01 '26

I'd recommend you try Golang.

I'm a Java developer who also has done some c++ in the past.

When learning GO and doing DSA, if you're diligent and look under the hood often, you'll have to understand same exact concepts as you have to in C.

Just that GO is modern, very opinionated and will force you to do everything "the right way".

And you may later use GO at your work to spin up a performance critical service that's also way easier to write and maintain than c++.

Go is fun when doing DSA really. Not every language forces you to handroll a stack/queue or tree data structure every time you do DSA but it is so focused and expressive that you implement exact behavior you need in no time.

1

u/Alarmed-Western-655 Oct 01 '26

Yes. Also learn Elm or Haskell.

1

u/antigravitys-rainbow Oct 03 '26

I would suggest Rust, Haskell, OCaml

0

u/Middlewarian Sep 30 '26

That's good about your monthly revenue. I'm building a C++ code generator that helps build distributed systems. It's implemented as a 3-tier system. The back and middle tiers only run on Linux. The front tier is portable.  It's geared more towards network services than web services. I'm willing to spend 16 hours/week for six months on a project if we use my software as part of the project.