http://qs321.pair.com?node_id=11114210


in reply to Re^2: Get code ready for a loop (and a little RFC)
in thread Get code ready for a loop (and a little RFC)

Better a big sub than a sea of code inside a loop. One advantage of using a sub is you get to name it so at the point where it is called the intent is clear. The point about big blobs of code is that you can't keep everything in your head while you try to understand what is going on. Breaking it up into named chunks (subs) makes the code easier to write correctly and easier to maintain.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond