this post was submitted on 12 Mar 2024
1093 points (95.7% liked)
Programmer Humor
32472 readers
599 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.
Genuine LOL. Yeah... yeah, that's Perl in a nutshell. Creating Perl: 'why aren't all languages like this?!' Editing Perl: 'oh.'
I believe
eval
would like a word with you...As I said,
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.
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.