• Arthur Besse@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    16 days ago

    The statement in this meme is false. There are many programming languages which can be written by humans but which are intended primarily to be generated by other programs (such as compilers for higher-level languages).

    The distinction can sometimes be missed even by people who are successfully writing code in these languages; this comment from Jeffrey Friedl (author of the book Mastering Regular Expressions) stuck with me:

    I’ve written full-fledged applications in PostScript – it can be done – but it’s important to remember that PostScript has been designed for machine-generated scripts. A human does not normally code in PostScript directly, but rather, they write a program in another language that produces PostScript to do what they want. (I realized this after having written said applications :-)) —Jeffrey

    (there is a lot of fascinating history in that thread on his blog…)

  • meowmeowbeanz@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    15 days ago

    If programming languages are made for humans, then explain Assembly. Or better yet, try debugging a segfault in C at 3 AM and tell me that was designed with human comfort in mind.

    Sure, some languages pretend to be human-friendly (looking at you, Python), but then you hit regex or dependency hell, and suddenly it’s like deciphering alien hieroglyphs. Let’s not even start on Lisp—parentheses everywhere like it’s trying to smother you in syntax.

    No, programming languages aren’t made for humans—they’re made for machines, and we’re just the poor fools trying to survive the translation layer.

    • saigot@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      add t0, t1, t2 is way easier for humans than the 0x014B4820 that it could be assembled into, and what programmers had to use before assembly existed.

    • Kacarott@aussie.zone
      link
      fedilink
      arrow-up
      0
      ·
      15 days ago

      Brainfuck is genuinely a fun toy language, and not that hard to use (for fairly simple stuff anyway). For really anti-human check out malbgolge 🫣

    • Platypus@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 days ago

      Those are arguably the most “made for humans” languages—they’re made to make humans laugh and/or headbutt a railroad spike in frustration