3 line function if appropriate. Not longer than a screen if possible. But the bottom line is - it should only do One thing, and be well named.
Not that I mind the _write a function as long as is necessary and put comments in; it's okay you can hold it in your head_ philosophy. at least 300k of work over the last 20 years was fixing the abysmal mess that results from that. Knock yourselves out and keep piling those functions up!
🙂For anyone looking for a sophisticated approach: https://medium.com/coding-skills/clean-code-101-meaningful-names-and-functions-bf450456d90c
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook
Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework