Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: poll ideas quest 2014

by chacham (Prior)
on Jul 07, 2014 at 15:50 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-19 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found