• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    27 days ago

    C++ is pretty sweet.

    It definitely has its issues - don’t get me wrong, but it’s pretty sweet.

    • Cornelius@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      25 days ago

      Correction: modern C++ is pretty sweet.

      Chances are if you’re working on C++ in a professional setting it’s not modern C++ :(

  • Doombot1@lemmy.one
    link
    fedilink
    arrow-up
    2
    ·
    27 days ago

    Meh? I write pretty much exclusively in C and honestly I still like C++ better, and wouldn’t mind switching to Rust either

    • Funkytom467@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      27 days ago

      I started with c++ so does c really has advantages over c++ ?

      And yeah same, Rust seems to be pretty cool too, at some point I’m gonna try it…

      • Doombot1@lemmy.one
        link
        fedilink
        arrow-up
        1
        ·
        25 days ago

        I started with C++ too, and then ended up finding a job writing firmware pretty much all in C. There really hasn’t been anything we’ve run into that’s made us consider switching to C++; being able to (and needing to) have complete control over your memory means you can do some pretty fancy stuff with the tiny amounts of memory on our ASICs.

        We’ve been eyeballing switching to rust a little bit, but really only for other applications; the root of our main code base is over 25 years old at this point and a rewrite would take a Herculean effort.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      26 days ago

      Yeah, learning Rust has given me greater appreciation for C/C++. Like, the selling feature of all three is that they don’t use a runtime, which means you’re not locked into that ecosystem. You can create libraries with them, that can be used from virtually any other language.

      It’s also easy to say that the performance of Java, Python et al is fine, but having a larger application start up in 1 rather than 20 seconds is still always appreciated.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      26 days ago

      To my knowledge, it’s a name that came out of the free software / GNU movement. So, “hackers” as in clever problem solvers, not those that break into insecure systems.

      • beeng@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        26 days ago

        Which should be known as a “cracker”, but yeah mainstream media fucked the word “hacker” to mean something it doesn’t.

  • onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    25 days ago

    C and C++ are way worse than mid. Had rust been invented at the same time, C and C++ would’ve disappeared in obscurity and only been taught at university to explain pointers.

    They are nearly on the same level of bilge as COBOL.

    Anti Commercial-AI license