Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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
Node Status?
node history
Node Type: note [id://59397]
[stevieb]: In msg, how do I message someone with a space in their name. For example, I want to privately message "Your Mother", but am unsure of how to do so. Link/tips?
[pryrt]: In the link brackets...
[stevieb]: guys, not *your* mother, "Your Mother" here on PM. Sheesh. Like I haven't spoken to your mom
[stevieb]: pryrt the brackets work in such a thing? I have nobody to test against. I will try :)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2018-03-23 00:38 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (287 votes). Check out past polls.