Live data from Hacker News

93% of Paint Splatters Are Valid Perl Programs (2019)

mcmillen.dev

41–50 of 170 posts

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#41
post #2

Sometimes I forget how insane Perl was before `use strict;` became commonplace.

use strict; has basically eliminated typos or variable-related errors for me. combined with -T, it's given me a lot of peace of mind, which I miss when using PHP. I'm seriously contemplating writing my own SetConst and GetConst functions. (Lately I've been finding a lot of sense in immutable variables.)

For Perl

    use const name => value;
Though ... I'm not sure why you'd need a "set" constant, as constants should be immutable, and set once ...

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#42

Earlier quoted context omitted.

I’m sorry the code you produced made you so unhappy EDIT: verb tense changed

Was this edited? I don’t see why anyone is reading this comment as rude or offensive … Seems fine. He’s basically ribbing GP by purposefully misinterpreting the comment, so that what gave GP nightmares was his CMS rather than Perl itself.

Yes, sorry, I edited it to change it from present tense to past tense, as that was more in line with my meaning

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#43
post #41

Earlier quoted context omitted.

use strict; has basically eliminated typos or variable-related errors for me. combined with -T, it's given me a lot of peace of mind, which I miss when using PHP. I'm seriously contemplating writing my own SetConst and GetConst functions. (Lately I've been finding a lot of sense in immutable variables.)

For Perl use const name => value; Though ... I'm not sure why you'd need a "set" constant, as constants should be immutable, and set once ...

Well, perhaps I should've said SetImmutableVariable?

Are consts not allowed to be set at runtime?

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#44
post #32

Earlier quoted context omitted.

? What is nasty about that?

Almost certainly has been edited? Now I wonder what the original post was.

Nah. Wasn't edited, but it was definitely a slap at me, personally. I touched a nerve, and was reprimanded. It was not a "fun" response, and it made me realize that I had caused offense.

Teh Internets tubes are a difficult landscape to navigate. It's almost impossible to write stuff without causing some offense.

Some folks take that as an admonition to never write anything fun. Others (like me) learn to apologize.

I'm fairly good at apologizing, as I need to do it so often. Each time, I learn to ameliorate my approach.

But I'll never stop posting in a humorous way.

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#45

That's a fun read. I once wrote an entire CMS in Perl. I still wake up, screaming, sometimes. [UPDATE] It appears as if my flippant remark caused upset. I am sincerely sorry that this was the case. No offense was meant. @peteretep, you have my sincere apology. It was a flippant remark. At the time I wrote it (mid-1990s), Perl was the best way to write portable server-side code. I took the time to learn it, and got fa…

Fun fact: cPanel[0] is still written in Perl [0]: https://www.cpanel.com/

Booking.com also

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#46

That's a fun read. I once wrote an entire CMS in Perl. I still wake up, screaming, sometimes. [UPDATE] It appears as if my flippant remark caused upset. I am sincerely sorry that this was the case. No offense was meant. @peteretep, you have my sincere apology. It was a flippant remark. At the time I wrote it (mid-1990s), Perl was the best way to write portable server-side code. I took the time to learn it, and got fa…

I once wrote a vital satellite maneuver orchestration software, which had to parse various files and call models. Simultaneously the scariest and proudest moment in my career, but the alternative was Fortran or C.

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#47

Can we talk about the original tweet some? How DO we let kids be kids in this age where all the other kids wanna do is be on YouTube and TikTok?

I don't like the idea that programming is a vocational skill. Literacy and numeracy aren't. Arts and crafts skills we understand have other uses.

Programming is great for self expression, exploring new ideas, amusing people. These are great goals for kids.

If you teach a kid to program, probably they're gonna put it to use in Minecraft or Roblox, not by writing accounting software. That's good! That's no more professional software development than kids building with Legos are doing engineering.

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#48
post #41

Earlier quoted context omitted.

For Perl use const name => value; Though ... I'm not sure why you'd need a "set" constant, as constants should be immutable, and set once ...

Well, perhaps I should've said SetImmutableVariable? Are consts not allowed to be set at runtime?

It sounds like the confusion might be in declaration vs. initialization, which for language-supported consts of course have to happen at the same time. Retrofitting the concept into a language without native support for immutable bindings, you'd of course need some kind of setter on whatever object or similar you're using to encapsulate the binding and ensure it never does actually change.

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#49

Can we talk about the original tweet some? How DO we let kids be kids in this age where all the other kids wanna do is be on YouTube and TikTok?

The same way you raised kids who just wanted to sit in front of a computer all day.

Re: 93% of Paint Splatters Are Valid Perl Programs (2019)

#50
post #23

Can we talk about the original tweet some? How DO we let kids be kids in this age where all the other kids wanna do is be on YouTube and TikTok?

Why are TikTok and YouTube excluded from "kids being kids" activities? If that's what all the kids are doing then it seems that's what a kids activity has become. I used to play with neighborhood kids quite a bit when I was younger. Now my nephew plays Fortnite almost every day with 5ish different friends. He gets way more experience socializing than I ever did. Ultimately (I think) kids need to learn to socialize wi…

There’s a difference between socialising where you can say something dumb, and your friends will say “that was dumb haha” and everyone will move on with their lives, and socialising where you can say something dumb, someone posts it on social media, and the next day everyone at school is talking about what you did.

Ubiquitous socialising can be good but it cuts both ways, especially in an environment where you have no plausible deniability. In my opinion, people should be free to have their own thoughts, potentially get blasted for them, and move on with their lives the next day with minimal consequences. Certainly there should be no consequences coming from people that were not actually there, but just heard about it from some social media platform.

Post reply on HN