r/cpp_questions • • Aug 19 '26

OPEN Is C++ systems programming too fragmented for hiring?

145 Upvotes

I recently saw a manager reject a candidate we were interviewing because his experience didn't exactly match the specific sub domain.

But I found myself disagreeing with the philosophy behind the rejection. My instinct is that if someone has strong C++ skills and has worked on reasonably complex systems, you should at least ask: "Can this person learn the domain?" rather than requiring an almost exact match.

This made me wonder whether this is a particular problem with systems programming in C/C++.

The ecosystem seems incredibly fragmented:

  • Embedded

  • Linux kernel/drivers

  • Graphics

  • Multimedia/codecs

  • Databases/storage

  • Networking

  • Telecom

  • Game engines

  • Server/backend infrastructure

  • Qt/GUI

  • Compilers

  • etc.

Someone can have spent 8 years writing sophisticated C++ in one of these areas and still be considered a poor candidate for another area because they don't have the specific domain experience.

Compare that with web development, where the skill boundaries seem somewhat easier to communicate: "React developer", "Angular developer", "Node.js backend developer", etc. There are obviously specializations there too, but the fragmentation doesn't feel as extreme.

I personally have the philosophy that if someone knows C++ well, understands systems programming concepts, debugging, memory, concurrency, Linux, etc., they should be given some credit for being able to move between domains. The domain-specific knowledge can be learned.

I have faced this exact issues with companies too. They reject you because haven't worked specifically on what they do. This becomes a serious issues when it's already hard to get into C++ jobs. Has anyone faced similar issues? What exactly is the solution for this?


r/cpp_questions • • Feb 06 '21

OPEN Modern C++: Snippets and Examples

142 Upvotes

Hi everyone.

These are GitHub Pages with snippets for Modern C++:

  • We often need to copy and paste some snippets to code more productively.

  • Snippets can help us when it's not easy to remember all high levels features Modern C++ has to offer.

  • This repository contains lots of organized, reusable, and safe snippets for Modern C++.

  • All snippets are available in GitHub pages in a way convenient for copying and pasting.

https://alandefreitas.github.io/moderncpp/


r/cpp_questions • • Mar 18 '22

META What is modern C++

138 Upvotes

I'm a C guy. I love the simplicity but the industry has simply moved on and C++ is unavoidable now.

I'm tired of being a Luddite so I picked up 'A Tour of C++ Second Edition' to get it straight from the source. Since this book is based on the previous standard I decided to look up what's new from C++17 and C++20 and I've come across a rabbit hole. In particular it comes down to this all encompassing term "Modern". So I'll ask the old heads who have seen it all, what does this mean to you?

Should I ignore a vast part of the C++ feature set and just use it like "C but with strings"? Should I ignore a vast part of the C compatibility and treat it like a new language? Of course nothing is black and white but what features should I be using "right this instant" and what features seem like "one big headache" to you?


r/cpp_questions • • Mar 08 '25

OPEN Why people claim C is simpler than C++ and thus better?

137 Upvotes

C is minimal—I know that. I also agree that C++ is somewhat more complex and hasn’t always made the best design decisions.

But anyway, it has many features that improve readability and save us time.

In C, if you want to create a container or reuse a function, the lack of generics forces you to:

  • Use the unsafe void*, adding some overhead.

  • Reimplement the algorithm or data structure multiple times for different types.

  • Depend on macros.

Why is this better than C++ templates? If you’ve learned how to implement a data structure in C, why not also learn the API that the STL offers for the same structure?

Polymorphism? You have to implement a dynamic dispatching mechanism every time you need it, whereas in C++, it comes built-in.

Operator overloading? What’s the harm in that level of indirection? If something is not a fundamental type, I can deduce that operator overloading is at play.

Combined with templates, this becomes a powerful tool to reduce boilerplate code and improve readability.

I'm not a huge fan of OOP. In fact, I see this as the area where C++’s complexity is most apparent. This OOP approach introduces:

  • Move semantics.

  • L-values and R-values.

  • Strict rules that you have to memorize, like the Rule of Three or Five.

  • new and delete, which are not fully compatible with malloc, especially with arrays.

Yes, I prefer Rust’s approach—I’d rather use factory methods instead of constructors. But C++ gives us more power, and we can use that to our advantage.

It allows us to express our intentions more clearly in code. The ownership model becomes strict and explicit with unique_ptr and shared_ptr.

We have span, string_view, iterators, etc. Instead of just pointers and values that we use in a certain way (as in C), C++ provides clear concepts.

What I can't defend are compilation times and exceptions. But I believe the advantages outweigh the disadvantages.

Portability is no longer a valid excuse—we have extern "C" and C++ compilers available almost everywhere. I don’t buy into the idea that C’s simplicity is a benefit, because that just means the complexity falls onto me as the programmer. We still need all the concepts that C++ provides—we just have to implement them ourselves in C. And that’s even worse than relying on a standardized implementation.


r/cpp_questions • • Sep 18 '23

OPEN What are your best jokes about c++?

137 Upvotes

Hello there,

I am recently learning cpp with the learncpp.com guide. And in chapter 7.8 is a joke about global variables:

What’s the best naming prefix for a global variable?

Answer: //

So this might be a bit offtopic for this sub, but what are your best c++ related jokes?


r/cpp_questions • • Jun 02 '24

OPEN Best C++ book that teaches you just enough?

136 Upvotes

I just started learning programming and i choose C++ to be my first language, i know that C++ is difficult and dense but i insist on starting with it because i just think it's cool.

but i also don't want to get hooked so early into the advanced complicated side of the language and get stuck in a tutorial hell just studying the language.

Knowing that, what books do you recommend that doesn't dive so deep into the language and just teaches you enought to be able to build some interesting useful projects


r/cpp_questions • • Sep 01 '26

OPEN Is it worth learning another language besides C++?

134 Upvotes

C++ is the only general-purpose language with which I am most familiar, I tried to learn other languages like C# or Rust, but without a clear idea of what to do with those tools, it's more difficult to learn them.

And all the software I use uses or is written in C++, specifically Godot Engine, Blender, LMMS, that's why I always have ideas of what to do with C++.

learncpp.com is amazing and possibly one of the best educational resources for a language in general, either that, or I have Asperger's and they have to explain everything to me in simple terms.

My question is, if this limits me in the long run as a programmer or should I learn an additional language that works well with C++?, I personally wouldn't trust a programmer who claims to know 15 technologies; someone who tries to do too much often accomplishes little, but that's just a personal opinion, what do you think?.


r/cpp_questions • • Apr 13 '26

OPEN I can't think without AI anymore

134 Upvotes

I’ve been learning C++ for about two years and have built a solid foundation. Recently, I started challenging myself by implementing parts of the STL, not fully recreating it, but understanding and building selected components. My long term goal is to develop a game engine, so I decided to start from scratch, including my own data structures and architecture.

However, I’ve run into a problem. Whenever I get stuck, I quickly turn to GPT. I explain my thought process and ask if my approach is correct. Instead of helping me grow, this habit is making me dependent. I’m no longer pushing myself to think deeply or solve problems independently.

I’ve realized this is hurting my problem solving ability. I want to break this pattern and regain confidence in my own thinking, but I’m struggling to do so. I need help...


r/cpp_questions • • Sep 17 '24

OPEN how graphic libraries are made?

133 Upvotes

How does one create a window and put pixels on the screen with a language like C++. I'm aware of libraries like SFML , SDL and wxWidgets. but like, how? How do they actually achieve the window and how does a pixel actually get drawn to the screen? (Sorry if this is a stupid question I am just starting out. I know most just use libraries but I would like to know out of curiosity.)


r/cpp_questions • • Nov 08 '22

OPEN learncpp.com

132 Upvotes

Not so much a question, but I wanted to take a moment to express appreciation to everyone who worked on this website. I think it’s hands down the best free cpp tutorial on the internet. Anyone who is starting out or just wants to brush up on a topic they may not have seen in awhile should check it out! They deserve the traffic.


r/cpp_questions • • May 01 '25

META Why are cppreference examples always so extremely convoluted

131 Upvotes

Today I wanted to check how to convert a floating point to milliseconds value only to find out examples on cppreference that were very little to no use to me.

The examples included conversion to “microfortnights”. I mean, when am I ever going to need microfortnights? And not just chrono includes these unusual examples, but I’ve seen more. I am aware that one is obliged to change it, but the fact that someone comes up with such an unusual example confuses me. Why not just keep it plain simple?


r/cpp_questions • • Oct 17 '26

OPEN I'm trying to learn how experienced engineers write low-latency C++ systems.

129 Upvotes

I'm trying to learn how experienced engineers write low-latency C++ systems.

I already understand the basic idea of cache locality and choosing efficient algorithms, but I want to understand what actually makes latency-sensitive code different from ordinary well-written C++.

For example, how important are things like:

  • cache hierarchy and memory layout

  • branch prediction

  • instruction latency/throughput

  • allocations and custom allocators

  • SIMD

  • atomics and contention

  • false sharing

  • compiler optimizations/PGO

  • CPU affinity and OS effects

  • measuring tail latency

For those who have actually worked on these systems, what concepts made the biggest difference in your understanding?

I'm mainly interested in single-machine performance, not distributed systems.


r/cpp_questions • • Jun 08 '26

OPEN How do people make anything with c++?

128 Upvotes

So I've been seeing a lot of people saying you can make anything with c++ however I don't really understand how.

I've been learning c++ for around a year now however sadly I've only been taught to code in the command line which I have learnt and as far as I know can be sort of restricting in some aspects and so my question is what programs, apps, or other ways are there to create things with c++? Because i've seen people talk about creating file managers, hardware managers, etc. but I just don't really know how they do the things they do such as how they create interactive interfaces with c++?


r/cpp_questions • • Feb 28 '26

OPEN Why isn't stl_vector.h programmed like normal people write code?

122 Upvotes

I have an std::vector type in my code. I pressed F12 inadvertently. That goes to its definition and this unfortunately made me have to confront this monstrosity inside of stl_vector.h :

template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
    class vector : protected _Vector_base<_Tp, _Alloc>
    {
#ifdef _GLIBCXX_CONCEPT_CHECKS
      // Concept requirements.
      typedef typename _Alloc::value_type       _Alloc_value_type;
# if __cplusplus < 201103L
      __glibcxx_class_requires(_Tp, _SGIAssignableConcept)
# endif
      __glibcxx_class_requires2(_Tp, _Alloc_value_type, _SameTypeConcept)
#endif


#if __cplusplus >= 201103L
      static_assert(is_same<typename remove_cv<_Tp>::type, _Tp>::value,
        "std::vector must have a non-const, non-volatile value_type");
# if __cplusplus > 201703L || defined __STRICT_ANSI__
      static_assert(is_same<typename _Alloc::value_type, _Tp>::value,
        "std::vector must have the same value_type as its allocator");
# endif
#endif


      typedef _Vector_base<_Tp, _Alloc>               _Base;
      typedef typename _Base::_Tp_alloc_type          _Tp_alloc_type;
      typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type>     _Alloc_traits;


    public:
      typedef _Tp                         value_type;
      typedef typename _Base::pointer                 pointer;
      typedef typename _Alloc_traits::const_pointer   const_pointer;
      typedef typename _Alloc_traits::reference       reference;
      typedef typename _Alloc_traits::const_reference const_reference;
      typedef __gnu_cxx::__normal_iterator<pointer, vector> iterator;
      typedef __gnu_cxx::__normal_iterator<const_pointer, vector>
      const_iterator;
      typedef std::reverse_iterator<const_iterator>   const_reverse_iterator;
      typedef std::reverse_iterator<iterator>         reverse_iterator;
      typedef size_t                            size_type;
      typedef ptrdiff_t                         difference_type;
      typedef _Alloc                            allocator_type;


    private:
#if __cplusplus >= 201103L
      static constexpr bool
      _S_nothrow_relocate(true_type)
      {
      return noexcept(std::__relocate_a(std::declval<pointer>(),
                                std::declval<pointer>(),
                                std::declval<pointer>(),
                                std::declval<_Tp_alloc_type&>()));
      }


      static constexpr bool
      _S_nothrow_relocate(false_type)
      { return false; }


      static constexpr bool
      _S_use_relocate()
      {
      // Instantiating std::__relocate_a might cause an error outside the
      // immediate context (in __relocate_object_a's noexcept-specifier),
      // so only do it if we know the type can be move-inserted into *this.
      return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{});
      }


      static pointer
      _S_do_relocate(pointer __first, pointer __last, pointer __result,
                 _Tp_alloc_type& __alloc, true_type) noexcept
      {
      return std::__relocate_a(__first, __last, __result, __alloc);
      }


      static pointer
      _S_do_relocate(pointer, pointer, pointer __result,
                 _Tp_alloc_type&, false_type) noexcept
      { return __result; }


      static _GLIBCXX20_CONSTEXPR pointer
      _S_relocate(pointer __first, pointer __last, pointer __result,
              _Tp_alloc_type& __alloc) noexcept
      {
#if __cpp_if_constexpr
      // All callers have already checked _S_use_relocate() so just do it.
      return std::__relocate_a(__first, __last, __result, __alloc);
#else
      using __do_it = __bool_constant<_S_use_relocate()>;
      return _S_do_relocate(__first, __last, __result, __alloc, __do_it{});
#endif
      }
#endif // C++11


    protected:
      using _Base::_M_allocate;
      using _Base::_M_deallocate;
      using _Base::_M_impl;
      using _Base::_M_get_Tp_allocator;


    public:
      // [23.2.4.1] construct/copy/destroy
      // (assign() and get_allocator() are also listed in this section)


      /**
       *  u/brief  Creates a %vector with no elements.
       */

... and on and on...

Why is C++ not implemented in a simple fashion like ordinary people would code? No person writing C++ code in sane mind would write code in the above fashion. Is there some underlying need to appear elitist or engage in some form of masochism? Is this a manifestation of some essential but inescapable engineering feature that the internals of a "simple" interface to protect the user has to be mind-bogglingly complex that no ordinary person has a chance to figure out what the heck is happening behind the scenes?


r/cpp_questions • • Nov 15 '25

SOLVED Why do so many people dislike CMake? (and why I don't)

122 Upvotes

What the title says. I've heard people say all sorts of negative comments about CMake, such as that it is "needlessly complicated" or that "beginners shouldn't use it, instead use (shell scripts, makefiles, etc)".

Personally, I don't think that's the case at all. CMake has one goal in mind: allow you to compile your code cross-platform. CMakelists files are meant to be usable to generate build files for any compiler, including GCC, Clang, MSVC msbuild, and VS solution files (yes, those last two are different).

Sure, Makefiles are great and simple to write if you're only coding stuff for Linux or MacOS, but the moment you want to bring Windows into the equation, stuff quickly gets way too difficult to handle yourself (should I just expect people to compile using minGW and nothing else? Maybe I can write a separate Makefile, let's call it Maketile.vc or something, which has the exact format that MSBuild.exe can use, or I should use a VS solution file). With CMake, you have one file that knows how to generate the build files for all of those.

"But CMake is complicated!" Is it? You can go to a large library such as OpenCV, point at their large CMake file, and say "see? CMake is way too complicated!" But that's because OpenCV itself is complicated. They have a lot or target architectures and compilers, optional components, support for different backends, and many architecture-specific optimizations, all of which must be handled by the build system. If they decided to use Makefiles or shell scripts instead, you bet they'd be just as complex, if not more.

If you just have a simple project, your CMake file can probably be no longer than a couple of lines, each being simple to understand:

cmake_minimum_required(VERSION 3.20)

project(
    SimpleCppProject
    VERSION 1.0
    LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) 

find_package(Boost 1.80 COMPONENTS json REQUIRED)

# Define the source files for the executable
set(SOURCE_FILES
    main.cpp
    utils.cpp
    utils.hpp 
)

add_executable(
    simple_app
    ${SOURCE_FILES}
)

target_link_libraries(
    simple_app
    PUBLIC
    Boost::json
)

target_include_directories(
    simple_app
    PRIVATE
    ${Boost_INCLUDE_DIRS}
)

Besides, just look at how another library with a similarly large scope, PDCurses, uses Makefiles: https://github.com/clangen/PDCurses

They have subdirectories for each target backend, each with multiple different Makefiles based on the compiler, here's just one of the subdirectories wincon for Windows console, and all the Makefiles they use:

  Makefile      - GCC (MinGW or Cygnus)
  Makefile.bcc  - Borland C++
  Makefile.vc   - Microsoft Visual C++
  Makefile.wcc  - Watcom

Multiply this by all the other backends they support each on their own directory (os2, X11, sdl1, sdl2, etc) and things quickly get massively complex.

TLDR: I dont think CMake is "complex", just that people with complex requirement use it, and that may be giving people the "illusion" that CMake itself is also complex.


r/cpp_questions • • Jun 17 '21

OPEN Is "The Cherno" a good cpp youtuber?

121 Upvotes

Hey, i was on some discords chatting with people about cpp (They were people with seemingly a lot of experience). I was talking with them about a thing i dont understand and i told them that is saw this on a video from "The Cherno". They said that he is a really bad youtuber spreading wrong and bad abstracted information which are technically just not correct, they told me i shouldnt watch him because i m just gonna learn stuff which is wrong. What is your guys opinion on him? Thanks in advance


r/cpp_questions • • Jul 21 '25

OPEN C++ is much harder for me than C

120 Upvotes

Hey all.

Mostly doing C#, learned a bit of assembly years ago, and more recently, did a small project in C (Raylib game/graphics library). As expected, I often forgot to free, and malloc-ed 1 byte too few, and had crashes that took hours to find the source of... So I understood how unsafe C is, and decided to move to C++.

While C is difficult because you have extreme responsibility with malloc and free, C itself seems like a simple language in terms of size/features.

C++, on the other hand, seems extremely difficult due to the sheer size and highly complicated syntax. Thought smart pointers will be fun after C's hell... Oh boy.

What is that? std::move doesn't actually move anything? It just casts to rvalue? Oh ok ok, I get it. Wait, what's up with the &, &&, &&*, const etc everywhere? What is that ugly syntax in IntelliSense suggestions in Visual Studio? Templates - what the hell? Who wrote that messy syntax of templates?!

I know modern C++ is safer than C thanks to RAII principles like smart pointers, safer data structures like std::vector and std::string... But I'm overwhelmed. It seems like there is a LOT to learn here, much more than in C. C's learning style feels more like learning by trial and error. C++ is not only that, but also mountains of material to learn.

I know it requires patience, but it's frustrating to see C++ code and it looking like gibberish due to the syntax. C++ syntax looks significantly worse and less friendly compared to both C and C#.

I'm not giving up, just frustrated. Has anyone else had this experience?


r/cpp_questions • • Jul 31 '24

OPEN Why should I pick C++ over C?

120 Upvotes

I've been using C for years and I love it. What I like about C is that I can look at any line of C code and know what assembly the compiler will generate. Well, not exactly, but it's very obvious exactly what every line is doing on the CPU. To me, C is assembly with macros. I don't like rust, because it tries so hard to be low level, but it just abstracts away way to much from assembly. I used to feel the same about C++, but today I looked into C++ a bit more, and it's actually very close to C. It has it's quirks, but mainly it's just C with (a pretty simple implementation of) classes.

Anyway, why should I switch to C++? To me, it still just seems like C, but with unnecessary features. I really want to like C++, because it's a very widely used language and it wouldn't hurt to be able to use it without hating every line i write haha. What are some benefits of C++ over C? How abstract is C++ really? Is C++ like rust, in the sense that it has like 500, different types that all do the same thing (e.g. strings)? Is it bad practice to basically write C and not use many features of C++ (e.g. using char* instead of std::string or std::array<char>)? Could C++ be right for me, or is my thinking just too low level in a sense? Should I even try liking C++, or just stick to C?

EDIT: Thank you to everyone who objectively answered my questions. You were all very helpful. I've come to the conclusion that I will stick to C for now, but will try to use C++ more from now on aswell. You all had some good reasons towards C++. Though I will (probably) not respond to any new comments or make new posts, as the C++ community seems very toxic (especially towards C) and I personally do not want to be part of it and continue posting on this subreddit. I know this doesn't include everyone, but I've had my fair share of bad interactions while interacting on this post. Thanks again, to everyone who objectively explained the differences between the two languages and tried to make me understand why C++ is superior (or inferior) in many cases.


r/cpp_questions • • Oct 10 '26

OPEN Is c++ gonna have a good job market in the future?

119 Upvotes

AI rn isnt the best at c++ and although you cant hope that it stays bad forever but i was wondering if the job market was gonna be ok in the future for c++

i wanna keep learning graphics programming and hope it might get me a job one day

sorry if this post sounds dumb, idk what to do with my life


r/cpp_questions • • Aug 21 '24

OPEN I want to learn C++

117 Upvotes

I am a 42 year old single dad and i want to learn C++ because it is my dream to make video games. What are the best paid courses to take? Ive tried the free/youtube tutorial route but i feel like i need more structured learning. Also, is learning the newest version of C++ necessary for an absolutely ground level beginner like myself? Any advice would be greatly appreciated.


r/cpp_questions • • Aug 05 '26 Heartwarming

OPEN Which subfields in C++ development are actually in demand?

116 Upvotes

I'm kinda lost on the career side of things.
I'm an EE graduate specializing in C++ development, control theory and general electronic design.

I always thought I would go into embedded, and then job hop to a lucrative career. Even though I always wanted to work in big productivity apps like Zbrush, Nuke or Substance Painter.

But I'm not certain now, I'm not certain if market even values my skills.

So, if anyone can inform me about the career trajectory of C++ subfields I would be grateful, such as "I went to trading and work conditions are like this, people in my field earn between X and Y"
I really want to at least have some idea what to do rather than go blindfold, apply everything and accept the first offer without question

Thanks in advance


r/cpp_questions • • Aug 26 '24

OPEN I love Cpp but i hate desktop GUIs state

116 Upvotes

C++ is my favorite lang, but every year i look at GUI frameworks state - this makes me sad.

My opinion:

ImGUI - best of all for ad-hoc tools and any kind of stuff with 3D engine integration, but drawing every pixel by hand to make it looks good is a mess

QT - best for open-source good-looking GUIs, very scary to make a mistake and violate the license for closed-source app

WxWidgets - the best choice for my granny and grandpa, they are in love with such interfaces and are happy that i can't modify look and feel

FLTK - it's 2025 soon, but FLTK 1.4 still not there, which should fix a lot of issues of incompatability with modern systems and hardware like Wayland, 4k 120hz, metal, fractional scaling etc. So not usable for me right now.

Right now i'm exploring https://github.com/webview/webview , anyone tried it ? What is your opinion / outtakes about C++ Desktop GUI state ?

EDIT QUESTION

Maybe someone has happy story with higher level languages GUI frameworks and C++ libs integration into it ?


r/cpp_questions • • Feb 13 '22

OPEN Damn learncpp.com is AWESOME!!!!

113 Upvotes

Title says it all. I am learning C++ on such a deeper level from the usual youtube videos.


r/cpp_questions • • Apr 16 '21

OPEN What is the best way to learn c++?

113 Upvotes

There are like 50k of you guys in here and I've been trying with some online stuff but, what is the best way that you guys have found to learn c++? How did you pick it up and learn it? Are there any reliable ways outside of learning it in a highschool or higher education courses? Thanks in advance!