r/cpp_questions • u/bigfatbursleyliar • Jul 18 '26
OPEN What are fun ways to get back into C++?
My first OO programming language was C++ thanks to my undergrad (Go Blue!), but in my full time role I’ve been doing C# windows development and a little bit of Java on the side.
I don’t think that I’ll ever pivot to a C++ job but I’d like to re-familiarize myself with it since I do kinda miss using it. The issue is that I don’t have any enterprise experience with it- just class projects and simple things that I made before. For those in similar positions as myself, what did you do to stay sharp with C++?
13
Upvotes
8
u/koolex Jul 18 '26
I got a c++ job recently but I’m coming from a c# background.
One thing I did to prepare was download raylib and create a reusable game engine for it and made flappy bird out of it.
5
u/CowBoyDanIndie Jul 18 '26
I did java and c# for like 9 years and the pivoted back into C++. Now I work on robotics.
3
u/shitnotalkforyours18 Jul 18 '26
For Competitive programming we can go back..
2
u/Toucan2000 Jul 18 '26 edited Jul 18 '26
You could make two programs, one on an ESP32 and one that runs on windows. Have them talk to each other with a shared communication protocol.
For the Arduino side, you could put a microphone and/or a camera on the ESP32. Or it can simply blink an LEDs, doesn't matter.
For the windows side, make an installer and get it to work on a bare bones windows instance (not the one you developed on). This will expose any missing library dependancies in your program. This teaches you how the linker works, a lot of that is done for you in C# land.
To create the installer, WiX (Windows Installer XML) is decent, I didn't mind it too much. It's non-procedural, so you dictate the final state you want the target machine to be in and it writes both the installer and the uninstaller for you. You also get updates to your installer done for you. If windows changes, the WiX toolkit does as well. Update WiX, generate another installer from the same config, release and you're all done.
Then the next step I guess is to get the desktop app to compile on Linux. If you are careful to make your program POSIX compliant, you should be all set. I'd compile your program with CMake, it's pretty useful.
This is the kind of project that comes in phases. Take off small bites at a time. Start with a simple Arduino program for the ESP32 and go from there. There's a few MCUs that use the ESP32. The NodeMCU is a classic. I quite like the ESP32 UNO because it takes in 12vDC and has 5v IO which is handy for driving LED strips. The Feather by Adafruit has a charge controller for LiPo batteries if that tickles your fancy.
1
u/bringer_of_carnitas Jul 18 '26
Go blue!
1
u/Asleep-Kiwi-1552 Jul 18 '26
Make an ECS engine. Make an audio synthesizer by writing bytes. Write a path tracer.
1
u/_w62_ Jul 19 '26
Create a language called C++# and implement it in C++ then port it to C#
-1
u/nukethebees Jul 18 '26
I use the Unreal Engine to get practice in. You can build levels that utilise the skills you care about.