who wants pasta in their computer?

  • @Redkey@programming.dev
    link
    fedilink
    13
    edit-2
    2 months ago

    Assembler, BASIC, Old C code, Cobol…

    …Pascal, Fortran, Prolog, Lisp, Modern C code, PHP, Java, Python, C++, Lua, JavaScript, C#, Rust…

    The list is infinite.

    Show me a language in which it is impossible to write spaghetti code, and I’ll show you someone who can’t recognize spaghetti code when it’s written in one of their favourite languages.

    • @UnrepentantAlgebra@lemmy.world
      link
      fedilink
      102 months ago

      The obvious solution is to use Rust’s upcoming “spaghetti checker” feature. Once the compiler decides that your code is too messy to be maintainable, it refuses to compile.

      • @dosuser123456@lemmy.sdf.orgOP
        link
        fedilink
        42 months ago

        great, now the compiler wont let me modify my programs (i really should get better at coding because i seem to only know to do spaghetti)

    • @dosuser123456@lemmy.sdf.orgOP
      link
      fedilink
      22 months ago

      thats exactly what the “you get the idea” line meant, i was only giving some examples because if i did itd be literally every language

      (also modern c is spaghetti, but old c is even more. legacy code is spaghetti no matter the language)