Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: TIMTOWTDI meets Rube Goldberg

by jdporter (Paladin)
on Aug 09, 2011 at 18:14 UTC ( [id://919516]=note: print w/replies, xml ) Need Help??


in reply to TIMTOWTDI meets Rube Goldberg

I once worked with a guy who was a tester but knew just enough sh and perl to be dangerous. He knew some, but not all, of the basic array operations. He didn't know push. To achieve the effect of push, he used the following code snippet:

open F, ">tmpfile"; print F @array; print F "$one_more\n"; close F; open F, "<tmpfile"; @array = F; close F;

(I think he lived with always having newlines on the end of his array elements.)

To make matters worse, he did not know about subroutines; he copy-and-pasted the above snippet everywhere he needed to push onto an array.

wtf!

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

Replies are listed 'Best First'.
Re^2: TIMTOWTDI meets Rube Goldberg
by chromatic (Archbishop) on Aug 09, 2011 at 22:18 UTC

    I've seen that before, but not in Perl. It's horrifying.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found