• h0bbl3s@lemmy.world
    link
    fedilink
    arrow-up
    21
    arrow-down
    3
    ·
    6 months ago

    I used c++ in college, and I think it’s useful to know c because so much relies on it. That said if I’m going to do something that needs performance I’ll look to go first, then rust if go isn’t a good fit, but that’s mostly because I know go better. Both are excellent languages.

    If I just need something functional quick and easily I’ll turn to Python. If I need a net service quick node.js is great.

    • PenisWenisGenius@lemmynsfw.com
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      6 months ago

      I use c++ whenever possible because I like classes and objects and having more versatility to make more dynamic programs. I made an entire kernel that way one time because fuck the police.

      • h0bbl3s@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        6 months ago

        Haha I love it. c++ is definitely super useful. I never got that deep with it but I’ve certainly benefited from many things written in c++. Wrote small things and I’ve had to debug it on occasion just to get something working. It usually ended up being a compiler flag I had to set. I ended up going into web and network related stuff after college. Perl was my goto back then but I’m loving these newer languages and the thought put into some of it. For example the struct and type system in go could probably replicate a lot of what you would use the classes and objects for.

    • Opisek@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      5 months ago

      I was a huge C++ fan back when I was doing a bunch of competitive programming. If I need a performant project nowadays, I look to golang first. It gives me the speed of a compiled language with the usability of high-level language. I still solve the occasional Advent of Code in C++, though :)