• RoyaltyInTraining@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    12 hours ago

    Programming in C++ is downright horrifying to me after trying other languages. The way it does generics is fucked up on so many levels…

    • UnderpantsWeevil@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 hours ago

      Feels a bit like being told to do brain surgery and getting handed a hatchet, especially in the modern era.

      Like, its a great learning language precisely because it does force you to think about what’s actually under the hood of your objects and attributes. You actually have to learn what a pointer is. You actually have to think about memory usage and system states. Its like Bio 1 when they have you dissect a rat.

      But without a ton of library support, you’re doing so much heavy lifting. And with a bunch of library support… why not just use C#?

      • Pelicanen@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        6 hours ago

        …do you mean C++ or just C? Cause, sure, you can poke around with pointers and references in C++ but it can also be used just like any other OOP language, whereas in C it’s absolutely necessary since it’s not an OOP language.