in reply to Re^4: Modernizing the Postmodern Language?
in thread Modernizing the Postmodern Language?

If your code only works properly without strict, wasn't your code already broken? And broken by design?

that! (*points at you*) is the attitude that disgusted me so much from the announcements. SawyerX, is that you? LOL

Wow. I don't know if it's still true today, but back when Perl was actually popular there were 1,000 "single-screen scripts" out in the wild for every CPAN module or application framework. And, emphatically and forever, I say it's silly to call those broken by design, or bad code, just because they didn't put unnecessary constraints on themselves.

Anonymous, I script everything. Bash, sed, perl, python, lua, pwsh, and tons of others (but never once in awk, true fact). I write scripts that write scripts so I can script while I'm scripting. And I am here to bring you the good news that there is a wide wide spectrum of scripting tasks out there, and one size does not fit all.

So sure, when you get past that one-screen level of script, you start to care more about misspelling a variable, and you don't mind spending a couple lines of code making sure $3 isn't undef before you splice it into a string. Probably 2/3rds of my perl scripts are strict+warnings, and factored into modules, and all that. But, Anonymous Monk, listen to me now and hear me later: the single screen, non-mission-critical, just-lives-in-my-$HOME scripting... the -p scripting where $cnt++ comes out of nowhere but totally has your back when you need the count at the END, is some of the best scripting there is. That's the 20-minutes of scripting that does the next 8 hours of your job while you browse XKCD. Don't miss out on that scripting, Anonymous.

Broken? ...like a fox!

Replies are listed 'Best First'.
Re^6: Modernizing the Postmodern Language?
by Anonymous Monk on Jul 03, 2020 at 12:22 UTC
    I'm AM because the only people left on Perlmonks are those who will disagree with you out of spite and then hassle you for no reason until you just log out and forget your password. Look at your comments in this thread... you don't even really disagree with my comment but still swing between imagining I don't know that darkpan exists and can't grasp that some small scripts are one-offs that do a very small, specific task and do not need to be perfect as long as they work. But in the time it took you to write all that condescending noise, you could have tested and 'fixed' several of your little pet scripts that might not be strict-ready and be done with it. Instead, here you are, defending your right to not put `my` in your code.
      …the only people left on Perlmonks are those who will disagree with you out of spite and then hassle you for no reason…

      Present company excepted, of course. :P

      you don't even really disagree with my comment

      I don't even ... what now?

      I completely disagree with your original comment, both in tone and in content. I disagree somewhat less with your present comment.

      imagining I don't know that darkpan exists and can't grasp that some small scripts are one-offs

      Your original post concisely divided the world into (a) strict code, (b) one-liners, and (c) maintenance nightmares. I don't see how I can be expected to imagine that you know about darkpan and the plethora of useful one-off scripts, but so be it--let's just agree that my psychic powers did not kick in as expected, and I mischaracterized you as a result. Salva's replies were more measured but also were a recap of posts we already have here. This was a useful discussion for me, and I really don't want it to devolve into arguments. So, rather than going in circles, I think I will log out and forget my password. :-)