Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

japhy cautions that we must Code Smarter. Being smart often requires patient work of one kind, in order to spare oneself the drudgery of another kind of work.

My work often involves parsing thousands of lines in hundreds of index files on several computers on a single LAN, looking for the magic keys that I use to direct a small set of complex file operations. I have discovered that Perl grants me the free moral agency to choose any number of sinful ways to do this.

I endanger the soul of my code, when the virtue of laziness is exchanged for the sin of sluggardliness. By laziness I pursue the solution that results in the least amount of work both for myself and for the computer and network. The larger the job, the more virtuous is the virtue of laziness. Sluggardly and foolish programming, however, will be punished with latency and delayed results.

I think it may be best that a foolish program should warn() verbosely, so that others may be alerted, or even that it should die(). I confess that I have even recently written a program that seemed at first quite humble, but in the eye of the Machine the code was crufty with unnecessary processes, and on account of my sins it was necessary for the Machine itself to be cut off. Indeed, my program was so self-absorbed, so greedy and covetous, that two nearby Windows machines were smitten with blue screens, and simply rebooted themselves.

Neither a surprise nor unjustly, failure to do work of the smart kind, results in more work of the drudge kind in the end. Thus I conclude, brethren, that Lazy and Smart are the same thing


<address>mkmcconn</address>

In reply to Lazy not Sluggardly by mkmcconn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (None)
    As of 2024-04-25 01:07 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found