Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: What did you have to Unlearn

by danger (Priest)
on Jun 08, 2001 at 22:17 UTC ( #87001=note: print w/replies, xml ) Need Help??


in reply to What did you have to Unlearn

Not "unlearning" per se, but just learning, and running into problems with previous habits. Lots of things --- and in both directions. Like you, it took me a little while before putting symbols in front of variables was a habit. Of couse, now I can usually count on throwing in a few @'s and $'s when I'm coding in C.

It also took me a while to really utilize the foreach loop rather than the C-style for(;;) loop --- however, I also learned early *not* to use foreach (1 .. 1000000), because it built the whole list in memory. That was optimized to a counting loop (in 5.005). It was rather easy to learn not to do it because there was a penalty involved. Coming back to the foreach version took longer because there is no real penalty for sticking with the C version. Well, actually there is a minor penalty --- a suprising number of people will prejudge you to somehow be a less competant Perl programmer if you use the C-style loop rather than the more "idiomatic" foreach version (even though it wasn't all that long ago (prior to mid 1998 or so) when it wasn't always a good idea).

On the whole, picking up Perl with all it's idiosyncracies, funky symbols, context sensitivity, statement modifiers and such wasn't noticeably a problem. It's only when you need to go back to another language that you *really* notice what's missing and have to remember/relearn how to accomplish even relatively simple tasks :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-12-06 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (154 votes). Check out past polls.

    Notices?