• @[email protected]
    link
    fedilink
    English
    168 hours ago

    the author of C++ said that C gives you many opportunities to shoot yourself in the leg. You have a much less chance for this to happen with C++, but when it does, you will blow your whole lower body off

    • @Valmond
      link
      48 hours ago

      Yeah C++ is a bazooka, C is like the death of 1000 paper cuts.

      The paper cuts are all poisonous and kills you anyway.

      • @affiliate
        link
        13 hours ago

        C++ is a bazooka that only fires when it’s pointed at your feet

      • @[email protected]
        link
        fedilink
        English
        37 hours ago

        I haven’t used either, but compiled a lot of C source code and they compiled or could be adjusted easier even for someone who barely knows what printf, fopen, or #include are

        • Possibly linux
          link
          fedilink
          English
          24 hours ago

          The thing with C is that you probaby won’t know you messed it up. It happens silently as memory gets corrupted.

          Modern compilers are much more advanced but you still can overwrite stuff in memory with other stuff