- cross-posted to:
- programmer_humor@programming.dev
- memes@lemmy.world
- cross-posted to:
- programmer_humor@programming.dev
- memes@lemmy.world
cross-posted from: https://lemmy.world/post/25277566
Well so is torture
some languages are however made to be anti-human, looking at you brainfuck and whitespace
Those are arguably the most “made for humans” languages—they’re made to make humans laugh and/or headbutt a railroad spike in frustration
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 🫣
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…)
Sorry to chip in and change subjet… But would you recommend that book for learning regular expressions as a non CS guy? I’m working more and more towards bash scripts and I run occasionally into the case where I need to write some regex and I’m getting frustrated not being able to do so and always ask for some help here on Lemmy.
It really rough sometimes where simply using a regex tester isn’t enough to fill my use case.
would you recommend that book for learning regular expressions as a non CS guy?
Absolutely, it’s an excellent book which I highly recommend.
The latest edition (3rd) is almost 20 years old, but I don’t think regex has actually changed substantially since then so it should still be very useful. (I read the 2nd edition cover-to-cover and enjoyed it enough that I bought the 3rd when it was released 😀)
If you’re going to buy a physical copy from amazon you should use the author’s link here to give him slightly more money for it. But if you just want a PDF I see one is available here.
Thank you :) I will buy a physical copy next month. But I do prefer a PDF version because I do work a lot with zotero. I will find a work arround though !
Sorry for my badly written first comment, I was in a hurry and after a re-read I saw how badly It was to read it…
Thanks again !
What is an example of “plain-text code”, or of someone fainting at the sight of it?
The Java® Language Specification explains that “Programs are written in Unicode”, which can reasonably be described as “Plain Text”, but I would be surprised to see someone fainting at the sight of one.
That’s a very Earth-centric assumption
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.
add t0, t1, t2
is way easier for humans than the0x014B4820
that it could be assembled into, and what programmers had to use before assembly existed.i prefer c than python tbh. When I write a c application, it keeps working. When I write a python script, it rots and rarely lasts a year before I have to stop whatever else I’m doing and dive back into the python code to get it working again
Not to mention python has a tendency to influence things outside of its domain. I’ve configured my software repos to never update any packages containing python scripts or dependencies, because every time python updates, there’s a chance all those packages will stop working.
*except JavaScript