Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: last/next/redo usages

by sundialsvc4 (Abbot)
on Mar 22, 2018 at 01:45 UTC ( #1211476=note: print w/replies, xml ) Need Help??


in reply to last/next/redo usages

Thank you for once more coming to my defense.

I stand by my previous reply – in spite of the 12 downvotes it has so-far received – and offer this new response as a bully-target for many more downvotes should you so choose.   (Go ahead.   Make my day.)

Or, maybe not?

The original code was obviously written by someone who didn’t know that his code was fundamentally wrong.   (And, he took advantage of the too-forgiving nature of the Perl interpreter, which IMHO should have thrown a fatal-error if it encountered a next statement outside of a loop.   But that is “historical interpreter behavior” now.)

But now, let’s put ourselves into the point-of-view of someone who is innocently encountering this code for the first time.   One of the basic assumptions that you tend to make about “original source code” is that the original author knew what (s)he was doing:   that if there is a next statement here, then it must be valid, it must be correct, and there must be a good reason for it.   But, guess what:   none of these statements are true.

Furthermore, the “innocent follower” would actually have to go to the PerlDoc description of the module in question, discover the comments that the author of that PerlDoc chose to explicitly make, and from this discover the gross(!) errors made by his erstwhile predecessor.

Thus, my original recommendation, by which I now stand: “fix the damned thing.”   Don’t require any of your successors to face this same error as made by the now long-lost original programmer, ever again.   (Then, please grep the source-code library for more possible occurrences of it ...)

Replies are listed 'Best First'.
Re^2: last/next/redo usages
by stevieb (Abbot) on Mar 23, 2018 at 00:11 UTC
    Thus, my original recommendation, by which I now stand: “fix the damned thing.”

    Why don't you fix it homie?

    I mean seriously. You understand what a patch is, yes? You know how to email a text document, yes?

    Anybody, imho, who has the experience you do would submit a fix. You could then claim credit if you wanted to, and that may silence some of your critics for a time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1211476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2019-07-20 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?