Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Random thoughts on programming

by mothra (Hermit)
on Feb 19, 2001 at 20:33 UTC ( #59397=note: print w/ replies, xml ) Need Help??


in reply to Random thoughts on programming

My $0.02:

  • Learn the idioms of the language you're using. Respect them. USE them! This seems to do wonders for improving the readability of your code, and makes it easier to put your ideas into the "words" of the language you're using.
  • Know when to/don't be afraid to put your code into functions. For me at least, 3-4 40-50 line functions are almost always easier to understand than 1 big honkin 200 liner that often seems to look ugly and repetitive.
  • Focus on producing *good quality* code, with less of an emphasis on how quickly you can churn it out. I learned that from this node. :) It's amazing how lots of careful thought about a problem, without doing any (or very little) coding during that thought process can suddenly turn into an elegant solution.


Comment on Re: Random thoughts on programming

Log In?
Username:
Password:

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

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

    When choosing user names for websites, I prefer to use:








    Results (256 votes), past polls