Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Best way to compare range of characters in two text files

by sundialsvc4 (Abbot)
on Jul 13, 2018 at 01:50 UTC ( #1218414=note: print w/replies, xml ) Need Help??


in reply to Re^3: Best way to compare range of characters in two text files
in thread Best way to compare range of characters in two text files

But, wait ... who said that there are “brownie points” for doing it the other way?   Please remember that I have spent most of my career working with other peoples’ (very old) code, and therefore, “I see first-hand just what happens to ‘terseness,’ and to me it isn’t pretty.”  

Without intending to make any reference whatsoever to the OP=Original Poster, I often feel that the OP=Original Programmer was trying to win a game of Name That Tune.   Then, when inevitably(!) requirements change, that block of code experiences unnecessarily-ugly edits and often becomes a source of “mysterious bugs” which occurred because someone’s attempt to change the code turned out to be wrong.

And why did it turn out to be “wrong?”   Because the original code had unnecessary dependencies – “cleverness” – upon itself.

So, yeah, “bring on the Pascal coding.”   If you say something in more lines that could have been said in less, each one of those lines will be less coupled with its cousins, and that makes my life easier.

As I inevitably get downvoted for saying – “pretty-please, please future-proof your code!”   Yes, it does matter how you decide to write it!

Tim Toady™ cuts both ways!
There is “more than one way to do it!”   And, sometimes, “Pascal is good.”
  • Comment on Re^4: Best way to compare range of characters in two text files

Replies are listed 'Best First'.
Re^5: Best way to compare range of characters in two text files
by Your Mother (Bishop) on Jul 13, 2018 at 12:54 UTC

    This is you in nutshell. You were offered a chance to learn a really cool bit of Perl. You rejected it with a muffed rebuttal to show why it never should be proposed or used.

    And why did it turn out to be “wrong?” Because the original code had unnecessary dependencies – “cleverness” – upon itself.

    It turned out to be wrong because you tried to force your Dunning–Kruger POV on it. Your answers often fall into this: Your problem is easy to solve. All you must do is have a different problem.

    You get downvoted because your posts are lazy, erroneous, self-aggrandizing, anti-Perl, or, like in this thread, incurious; and that you've burned your bridges.

    If your theory on maintainable code being 100% devoid of cleverness held, you'd be the best hacker in the world because you're certainly the least clever.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-12-11 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?