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

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2021-10-19 15:20 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (77 votes). Check out past polls.