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

Re: Value of "RE"-coding for the newbie

by vladb (Vicar)
on Sep 02, 2002 at 02:27 UTC ( #194503=note: print w/ replies, xml ) Need Help??


in reply to Value of "RE"-coding for the newbie

IMHO, it is time to "RE"-code the original. In doing so, you will assimilate the new technique so that you don't make the mistake again. Most likely, you will reduce the size of the original and make it run faster. Almost definately, you will learn more new techniques in the process.

This is so true. In my experience it almost always hurts to revisit my old code. Quite frankly, I've never learned to like my coding, especially that done in the past, and whenever I revisit I just have to change things around (as time allows). Hopefully this may be an indicator of my evolving into a better Perl hacker ;-). For if upon encountering an older code I didn't consider anything for a change, this would only indicate the three things: 1) My past code was near perfect (*laughs*); 2) I haven't gained any coding wisdom and know-how (so painful it couldn't be true! or could it?); 3) I have degraded in my knowledge of Perl to a point where my old code seems perfect... It's best if out of the three, none is true ;).

As far as learning new languages, I think you are also on target. Provided you have had earlier extensive (or near so) practical exposure to other languages, the matter of learning the guts of a new language pretty much concludes in learning the new syntax and 'culture'. My first encounter with Perl happened after nearly 3 years of non-stop C programming. The transfer wasn't too painful, in fact, I'd enjoyed it much especially realizing how much simpler it was compared to my older favourite.

_____________________

# Under Construction


Comment on Re: Value of "RE"-coding for the newbie
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-07-31 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls