How long should a JavaScript function be?

Writing code the right way is hard to do. To begin with, what’s the right way anyway? And, what’s a good length for a JavaScript function? I’d say 5 to 10 lines at maximum. Preferably even shorter than that. JavaScript just wants you to do functional programming. Write lots of functions. Short functions have lots … Continue reading How long should a JavaScript function be?