Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: poll ideas quest 2014

by chacham (Prior)
on Jul 07, 2014 at 15:50 UTC ( #1092602=note: print w/replies, xml ) Need Help??

in reply to poll ideas quest 2014

The main impetus to break off some code into a separate routine is when:

  • it takes more than a screenfull to show all the code
  • it is a separate logical function
  • it is called multiple times
  • it makes testing/debugging easier
  • i think i might reuse it elsewhere
  • it makes an if statement fit on one line or just read better
  • i get paid per line of code
  • i think of a really cool name for it
  • pfft... separate routines...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-10-22 10:24 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.