r/cpp • • Dec 17 '23

Cpp std features and tech domains

Hello fello C++ developers!

I been reading a lot this sub and it always comes to the conversation that the std have a lot of things, and that you are expected to learn what its related to your tech domain.

So here is my question:

What parts of the std do you link to what domains?

If you were to recommend someone that aims to build servers what they should start learning, what would you suggest? Why?

Same for other domains ofc, I'm curious on how the experience and language features varies per domain and usage, and how you find out what you need or where to search for it.

Edit: it seems that my question was not laid out correctly.

Im not asking specifically about server stuff for my line of work, I'm asking about yours.

So, what do you do? What parts of C++ do you use? Why those?

Sorry if my initial post was unclear!

0 Upvotes

13 comments sorted by

View all comments

10

u/Thesorus Dec 17 '23

c++ is a generic multi-paradigm programming language.

at its core, it can do nothing on its own, and do everything.

I don't think any particular part of the std (library?) is linked to any particular domain.

with the exception, maybe, of coroutine which will be useful for networking/multitasking. (if I understand them correctly).

Personally, in my different jobs, we use straight forward C++ and basic std library stuff (containers, algorithms) which work for 90% of our work (engineering, graphics... ); either we re-invent the wheel for our needs or buy 3rd party C++ libraries.

For the rest, we use C#, Python and web oriented stuff (javascript, react, ...)

1

u/antara33 Dec 18 '23

Thanks for the insight! I edited the post since I noticed I laid my question in a vague way.

Do you use templates? Metaprogramming? I often see a lot of super intresting code here using templates and metaprogramming, and I'm curious on howuch it gets used outside of libraries, for example.

3

u/Thesorus Dec 18 '23

I've used basic templates (for generic types, mostly)

but I never had the need to do metaprogramming (compile time stuff)

I work mostly on front end (desktop applications),

1

u/antara33 Dec 18 '23

Thanks for sharing! What kind of desktop apps do you make?

Im working on backend so I use threading stuff A LOT, along with pointer related stuff, but templates and metaprogramming are so alien to me haha

1

u/Thesorus Dec 18 '23

Engineering software (computations, 3d rendering, hardware interface)

Large scale database front-end for public schools.