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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
One of the first "official" uses I had for Perl was inpsired by US government bureaucracy. A few years ago, someone at the hindquarters of a government agency to which I had contracted had decided that they would measure productivity by how many lines of code we wrote. Brilliant! (Include clinking of Guinness glasses here.) After lobbying, my boss pointed out that often reducing lines of code was more efficient, so we could get credit for that, too. So I wrote a Perl script that, as part of a check-in/check-out set of shell scripts, expanded C/C++ code to multiple lines, or collapsed it to one line (barring HERE documents), or added GNDN code (sleeps, useless for loops, "if (1 == 0)" blocks, etc).

Naturally, I wasn't the only one to have thought of this; my boss had as well and we got together to combine all our tricks of the trade. We were suddenly producing more code than the other 200 people in the lab combined because we were expanding and compressing code like a g(un)?zip command gone rogue. When the folks at hindquarters discovered this, and why, they abandoned the idea.

In some ways, it was my proudest moment: I actually got US government bureaucrats to admit, albeit implicitly, that they had made a mistake because they didn't understand something. It was tantamount to getting a marketing executive to admit he doesn't know how to do anything but BS and play golf.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee


In reply to Re: Perl and Pipes. Share your story. by tbone1
in thread Perl and Pipes. Share your story. by DigitalKitty

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 pondering the Monastery: (4)
As of 2024-04-19 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found