C++: The Documentary

(herbsutter.com)

86 points | by ingve 3 hours ago

8 comments

  • jdw64 16 minutes ago
    It's surprising that C++'s development trend continues.

    When a game or program is made with C++, it's usually nice because performance is mostly guaranteed. But if someone told me to write C++ myself, I'd cry. There's too much to memorize, and the standards are too varied. When I go to a project site for maintenance and it's a C++ project, I instantly lose energy — because it's just too difficult.

    I'd be happy if someone else wrote it, but it's not a language I want to write myself

    • bayindirh 14 minutes ago
      Personally I don't find programming with C++ that hard. The downside is it needs a brain warm-up, and this is per project, but once that flywheel is spinning, I find it almost effortless to write code.

      I have to go through the same warm-up more or less for any language I work with, so it's not that different than writing Python, Go or Java for me.

      • jdw64 10 minutes ago
        There are so many standards and idioms that it gets confusing. There are still legacy codebases out there — some codebase still use C++98 as their standard, others use C++11... And with Unreal Engine, the modern C++ standard is C++14, right? There are things like smart pointers, but some places don't even use them. I feel like there are just too many features. When I saw template metaprogramming — that new feature — I realized I have no talent for C++.
        • bayindirh 2 minutes ago
          I have developed things with C++98, C++11 and C++14. Every of these standards are so vast, so remembering everything (even in a single standard) is not possible. Instead of knowing everything, I first fix the standard I want or need to work with.

          Then I design the thing I want to build. I always design what I want to build beforehand. This takes a couple of iterations from high level to low-ish level. That last design becomes a bit language dependent. Then I select some of the core tools that I'm going to use (which kind of pointers, classes or structs, etc.)

          With that design in mind, I go "library shopping" both for file formats (if any) or other stuff like vectors, etc.

          Armed with the reference docs of these, I write my code with the toolbelt I have built for the project.

          Some things are hard, but they are not impossible. I find thinking like compiler helps a lot.

    • nnevatie 4 minutes ago
      The language is fine, mostly, nowadays.

      The ecosystem isn't fine - just to get a project going requires picking a non-trivial set of tools and approaches, none of which the C++ standard enforces or guides to.

      For example, will you manage dependencies via packages? If so, with what? What will you use for building your project? The list goes on and on.

  • bdamm 42 minutes ago
    Since I've been working in C++ a lot recently I decided to watch the video as I waited for a build to complete. So the length is about right. And fortunately, the video is a delight!
    • zeafoamrun 24 minutes ago
      I have read as much as I can on the history of C++ and I'm looking forward to watch this. I find the process of it's evolution deeply fascinating.
  • Tomte 14 minutes ago
    I‘m out of the loop: we‘ve had Python, Clojure and possibly something else recently. Is that a series by the same people working through several languages? Is it happenstance? Is it a trend, and every programming language is now scrambling to get their own video documentary?
  • gizajob 5 minutes ago
    Is it better than the Erlang documentary?
  • claiir 30 minutes ago
    > currently (as of Q3 2025) the fastest-growing of the top four languages in the world… +90% users in the past 3.5 years.

    Because of AI, right?

    • bayindirh 17 minutes ago
      Let's assume that it's because of AI for this case.

      Is this good or bad?

    • visha1v 19 minutes ago
      but do vibe coders even use c++? won't they use js or python?
  • keyle 5 minutes ago

             +90% users in the past 3.5 years
    
    huh? That is incredible growth. How is it even measured?
  • scott01 35 minutes ago
    Oh great, the documentary about the least interesting programming language ever created :)

    Haven’t watched it yet, but I hope they mentioned how Stroustrup was asking people not to criticise the language publicly back in a day, because it would hurt adoption (I heard this from one of the Casey M’s videos from a few years back).

    • _hao 26 minutes ago
      I have the utmost respect for Casey, but his disdain for Stroustrup is unfounded. The fact of the matter is C++ occupied a niche in the right place and at the right time, and it grew from there. Many mistakes have been made, but Stroustrup is in no way personally responsible for all of them and I don't think Stroustrup is a bad programmer (something I've heard Casey say in some of his videos). You can argue that the committee route is not the best, but C++ is here to stay and by some metrics adoption is actually growing.