3 comments

  • ninkendo 2 minutes ago
    [delayed]
  • raincole 17 minutes ago
    No language scares me like C++ does. Look at this page: https://www.learncpp.com/cpp-tutorial/variable-assignment-an...

    This is just a single section of the first chapter of a beginner tutorial. And it's already more things to remember than, say, the whole Lua.

    • tolugenius 1 minute ago
      C++ is a language I heard is very "beginner unfriendly, and expert friendly" and it's true, I'm trying to relearn and really not clicking with me, anyone have tips on relearning or better sites than even learncpp?
    • chuckadams 10 minutes ago
      Reading Effective C++ those many years ago was eye-opening in a couple ways: initially for the intended reason in the title of the book, but later it felt like having a map to a minefield: good info to have, but it felt more prudent to stay out of the minefield in the first place.
    • apples_oranges 12 minutes ago
      C++ dev here. I love this mess of a language ..
      • 01HNNWZ0MV43FF 9 minutes ago
        Did you see the "Spooky C++" post? https://www.nablag.com/spooky_cpp

        Did you already know that? Do all your junior C++ programmers know that? Do you have lints turned on in every C++ project and dep for that?

        Cause I had to really look at it to figure it out. And I had to think, "Would Rust allow this code?"

      • lkjdsklf 0 minutes ago
        It’s a weird language

        On your initial look, it looks like a total nightmare.

        The more you learn and use it, you learn that it is even worse than you ever imagined

        So you try something else and find yourself in a constant loop of “if this were c++ i could just go xyz, by nooo”

        So then you love it

      • coldpie 5 minutes ago
        I have a theory that the reason people like C++ is because it's challenging to use. It's like a puzzle or a riddle or a Dark Souls game. It feels good to get something done in C++ because there's so, so many ways for it to go wrong that when you do it right(-ish...), it feels like you're a master of a complex skill. This makes it a terrible language for actually getting things done, of course, but people like that feeling of overcoming the challenge, so they keep using it.
      • gchamonlive 3 minutes ago
        [delayed]
      • raincole 9 minutes ago
        Yes, people even have a term for this. It's named after a Swedish city.
    • on_the_train 15 minutes ago
      In a cruel twist of destiny, it doesn't actually get much more complex than initialisation. But it's something that rarely goes wrong. Static analysis has that nailed down.
      • 01HNNWZ0MV43FF 9 minutes ago
        I hope everyone is doing static analysis!
    • fnord77 9 minutes ago
      [delayed]
  • vinyl7 11 minutes ago
    The only sane usage of C++ is to only use a very small subset of its features.
    • cogman10 2 minutes ago
      The only sane usage of C++ is "This is a legacy project, needs to integrate with a legacy C/C++ project, or all our engineers are C++ experts and they don't want a new language".

      For everything else, you should pick one of any number of other languages. Rust, swift, zig, go, java, python, javascript. Take your pick.

    • lordnacho 3 minutes ago
      Which makes various c++ repos look quite different. It's like learning Arabic and then finding out that you can't actually talk to all the other Arabic speakers.