Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 341 Bytes

function-length.md

File metadata and controls

9 lines (5 loc) · 341 Bytes

How long is a function?

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.