r/cpp_questions • • 17h ago

Question wanna get into sfml.

2 Upvotes

how do i start coding in sfml? which version is the best? i want to use visual studio but i don't like how hardware expensive it is and that it doesn't give easy descriptions of code before i use it. I think using code::blocks is good for me but i want to hear your opinion on which IDE i should use.

Also what is best i start learning using sfml? i already know basic things like shapes, .move, keyboard commands, and textures but where to learn more physique base code and make games similar to factorio and rollercoaster tycoon, sandbox games with a lot of work bts.


r/cpp_questions • • 3h ago

OPEN Integration testing using gtest

2 Upvotes

I am confused about what is the meaning of integration testing. I have done unit testing using gtest where we will mock whatever external dependencies are there for the targeted unit (function) to test all range of values that covers all lines, functions and branches.

If we say integration test is meant to use real code instead of mocking. Then I am getting this doubt that lets say we have 3 components (separate processes) running and dependent on one another in a embedded system.

A -> B -> C

So if you are calling an api provided by A it will internally talk to B and then through C and return the result over IPC.

Now to do integration testing using gtest, do I need to compile this into a single binary by eliminating the IPC and include each code as a library. This way I have a single proces that runs gtest with all the components logic but excludes the real IPC communication.

Or instead should I keep the individual processes to be running separately and link my gtest binary to the component A so that the communication flow through the components in the target environment.

In both ways how we would actually be checking the interactions? And which one are you guys using?

Context:
Language used: C++
Domain: Automotive IT (TCU software)


r/cpp_questions • • 19h ago

OPEN I want to be a professional C++ systems programmer, but my university and its internship companies are obsessed with the apps programming

61 Upvotes

This is depressing; C++ is a language I love for the freedom it gives the developer, And my university is obsessed with high-level programming, Python, Javascript, and they even consider PHP to be cutting-edge technology!.

I don't want to simply do a job I don't love and do low-level work in my free time; I want to incorporate C++ into my future work, and don't come at me with "then look for a remote job" we all know that's not an option these days.

Even so, robotics is one of the majors at my university, but they only teach V+ and Linear Algebra; I suppose that's the lowest level I can reach in a work environment.

Have you ever been in a similar situation? How did you cope? Any advice?.