Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: The first cargo cults

by archen (Pilgrim)
on Jan 11, 2002 at 23:53 UTC ( #138116=note: print w/ replies, xml ) Need Help??


in reply to The first cargo cults

Well I'd venture to say that it's not ALWAYS a bad thing to cut and paste code (certainly not if you understand it and wrote it yourself).

Okay, a confession: I cut and pasted a lot of code when I first started Perl (that includes typing what I found in a book). My first project (and the reason I learned Perl) was to make a guestbook MY way. My reference was the Black Book of Perl - informative, but horribly organized. The only code I used for reference was the Ultimate Bulletin Board (UBB), yes THAT one.

About half of the code was my own, and about half was some sort of copy job which I vaguely understood. The guestbook worked, which was good enough for me.

Months pass, and I tend to hack Perl on a daily basis. I decided to go back to the guestbook to add a feature. I was somewhat horrified what I found in there, but needless to say it was a mess. I endeavored to fix it, and in the end it's far better then the cut and paste patch job. It's also a good feeling when you surpass the things that taught you.

So in a nutshell, sometimes 'cut and paste' makes a good crutch. Just keep in mind that in the long run, it will eventually hold you back - and it's certainly no substitute for learning the language.


Comment on Re: The first cargo cults

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-11-27 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (180 votes), past polls