Please dont take this seriously guys its just a dumb meme I haven’t written a single line of code in half of these languages

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    25
    arrow-down
    1
    ·
    10 months ago

    Perl is write-only code. Larry Wall raised a monkey’s paw and asked for a language that works the way programmers want. So most Perl is the first thing someone tried, unfiltered by rigid syntax putting your thoughts in order, compiler warnings bringing side effects to mind, or even names forcing you to decide what a variable is. An uncommented Perl script is raw brain patterns displayed as ASCII.

    Thank god it runs like crap. We’d be in so much trouble if it was fast. Optimized C isn’t exactly gorgeous, but any project that compiles proves someone looked at the code more than once.

    • evranch@lemmy.ca
      link
      fedilink
      arrow-up
      11
      ·
      10 months ago

      I love the term “write-only code”, it’s perfect. I used to love Perl as it felt like it flowed straight from my brain into the keyboard. What a free and magical language.

      So it turned out I had ADHD. Took meds, went back to C/++ with renewed appreciation, haven’t touched Perl since as it horrifies me to look at it. What a nightmare of dangling references and questionable typing. Any language that allows you to cast a string to a function and call it really needs to sit down and think about what it’s doing.

      • mindbleach@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        10 months ago

        So it turned out I had ADHD.

        Genuine LOL. Yeah… yeah, that’s Perl in a nutshell. Creating Perl: ‘why aren’t all languages like this?!’ Editing Perl: ‘oh.’

        • evranch@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          As I said,

          C/++ with renewed appreciation

          No such thing as eval in non-interpreted languages. Unless you’re crazy enough to invoke the compiler and exec() the result.

          I used eval too in my Perl days which is why I specifically called it out. IMO any time you see eval used there should be another, more proper way to do it.

          • CapeWearingAeroplane@sopuli.xyz
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            10 months ago

            I was joking, and definitely agree with you. I don’t think I’ve used eval since my first programming course in uni.

            Edit: Except for monkey hacks for laughs of course.