Strive to keep functions as short as possible.
Most q functions are four or five lines long. Although certain programming tasks may demand larger structures, anything over ten lines should trigger mild alarms.
A function containing more than fifty lines will probably attract roaches.