Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: To sub or not to sub, that is the question?

by lemming (Priest)
on Jun 25, 2001 at 05:20 UTC ( #91162=note: print w/replies, xml ) Need Help??


in reply to To sub or not to sub, that is the question?

I've always liked the "If it's a routine that takes up more than a page, break it into subroutines"

Though I really follow

  • Redundent areas get put into subroutines
  • Use descriptive names for your subroutines so that it should be intuitive what they are doing. Comments can help as well
  • Update: Coding style links, not just sub issues:

  • Regarding style
  • Suggestions for working with poor code
  • Silly code reviews and shift
  • A few style suggestions The thread's good, but I like tilly's points
  • is this correct? Some subroutine pitfalls illustrated
  • Call Subroutines by Approximate Name No help, but amusing
  • Monk ethics: Beauty vs. Power
  • A question of style
  • Another commenting question, More on commenting
  • p.s. Nothing like archaeological digs through the monastery. Tends to be a good learning experience.

    • Comment on Re: To sub or not to sub, that is the question?

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://91162]
    help
    Chatterbox?
    [Corion]: Krug is generic pottery ware for pouring beverages, but a Bembel is painted with that blue paint and contains only (!) Apfelwein
    [shmem]: Corion: alas, air too.
    [Corion]: shmem: Yes, very sad!
    [choroba]: doesn't sound much useful, which means I'll probably remember it
    [karlgoethebier]: "that blue pain" == Salzglasur as far as i remember
    [karlgoethebier]: Paint!
    [shmem]: karlgoethebier the blue pain comes after all bembels are empty
    [karlgoethebier]: Confusing "Bembel" with "Membel" might result in a slap in the face in Hesse...
    [karlgoethebier]: shmem: Yes. Greetings from Dr. Freud
    [Discipulus]: blue pain is a synōnymía

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (11)
    As of 2017-05-24 08:57 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?