Edit: sorry I didn’t realize I already posted this

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    1 day ago

    I watched an hour long video on why C++ sucks. I thought it wouldn’t be too hard to pick up since I can program well in probably 7 languages. I was wrong, now I’m convinced C++ is a dumpster fire and needs to die and I’ll never get a job in it unless someone holds a gun to my kid.

    • sp3ctr4l@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      Genuine question:

      Would you have a reccomendation for a comparable alternative?

      Like, I have experience with a good deal of scripting languages, sql variants… am currently trying to do Morton coding/interleaving for octrees in Godot.

      I have the framework working in GDScript… theoretically, if its not performant enough, i could either attempt to transition it to C++ / GDExtension… or, potentially, I could do a ‘Rustdot’ type thing, apparently its possible to… do that.

      So, while I am only really aware of Rust as a potential alternative to C++, in my specific context… would you have a broader opinion of lower level languages? I just actually don’t know much about them.

    • unknownuserunknownlocation@kbin.earth
      link
      fedilink
      arrow-up
      15
      ·
      18 hours ago

      To be fair, an hour long video about why C++ sucks maybe isn’t the best source if you’re trying to get a balanced view.

      I’ll out myself: I kind of like C++. Yes, it definitely has its sharp edges, but I like how much you can do with it. You can do object oriented, functional, procedural, in fact there’s not much it can’t do. You can stay high level or you can go very low level (pretty much just drop into C if necessary). Yes, it’s complex, but once you have a decent feel for it you can do a massive amount with it, especially with the newest versions. And that despite it running on bare metal without any VM or anything. Probably the most frustrating part for me is that the standard library is in many cases stuck with old C++ paradigms. But otherwise, I like C++.