r/cpp_questions • u/YogurtclosetThen6260 • 3d ago
OPEN Great C++ Software Engineering techniques
Currently starting up a new project and I really want to emphasize very sophisticated uses and practices that make it beyond just a toy project and a real software engineering project. I'm using Alpaca for live market feed so I'm learning about socket programming but I wanna ask, what are some very very useful techniques to know that actually prep for C++ software jobs? Stuff like CI/CD, Yaml, and other toolchains that make hiring managers look and take notice
37
Upvotes
15
u/DrShocker 3d ago
CI/CD helps, haivng unit tests, e2e tests, etc depending on the project. you can also get coverage reports.
YAML is just a serialization format used sometimes, not much to learn there
Learn about the various sanitizers (memory, address, thread, etc)
fixing bugs from stack traces
GDB or other debugging tools
11
u/novel_eye 3d ago
Concurrency / work queues / protobuf. Not gonna elaborate just some ideas.
1
u/JustAPieceOfMeat385 3d ago
Just curious but what laptop are you using?
1
u/ClockMoney4525 3d ago
hey mate i'd love to chip in to this project, if youre open to contributions. im already in finance and a c++ dev so ill be able to help you out with knowing what you should build for, im just time poor and don't think rawdogging projects with LLMs teaches anything
as for your question, it depends 100% on the role itself. do you know what you want to cut into? CI/CD is a useful skill for any role though.
6
u/Simengie 3d ago
Thread safety. Concurrency. A newer one is proper memory alignment if cross compiling between X86 and ARM. At my location, how to work without AI/Google because our systems are considered dark sites with no external connectivity. So either you know or you don't.
CI/CD is just your job. You can work 10 different places and there is a good chance all 10 will use different tool chains for this. So know the terms and concepts but specific tool chains not much. I have seen SVN and GIT used at different locations with very different company policy on how to use them.
On socket programming, really understand push versus polling pros/cons. Maybe even have a basic understanding of web sockets.
Know how to profile your code for performance and memory leaks. Know why the compiler flag -O2 is better than -O3 for optimization even though -O3 is higher level of optimization.
Know that you can and how to turn on keeping the intermediate compile product that has the C++ with assembly it is being converted too. I have used this way more than I ever thought I would. But sometimes the compiler just throws out parts of your code during optimaztion that actually need to run because the compiler was not seeing the dependencies on it. This intermediate file will show you what was thrown out.
1
u/Discordbothost 3d ago
For your market feed, try a fake server that sends two updates, drops the socket, then accepts a reconnect. Check that your client marks the data stale during the outage and subscribes again on reconnect. That gives you a socket failure you can reproduce in CI.
1
u/Melodic_Impress9664 2d ago
> make hiring managers look and take notice
Delivering actual production software and then supporting it
-5
u/jarislinus 3d ago
ask any decent llm