3 ms·
A side benefit to having separate, clearly named functions: they often play better with tools. You can jump to them by name from a completely different part of
by vfaronov 10y ago
A side benefit to having separate, clearly named functions: they often play better with tools.
You can jump to them by name from a completely different part of the code (with some editor support). You see them in the headers of your Git hunks so you don't lose context.
In languages that are heavy on type inference, like Haskell or Python+MyPy, they make for a convenient boundary at which you can assert your types, to help with type errors.