• @kekmacska@lemmy.zip
    link
    fedilink
    English
    166 days 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@lemmy.world
      link
      fedilink
      46 days 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.

      • @kekmacska@lemmy.zip
        link
        fedilink
        English
        36 days 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
          35 days 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