Clean Code’s recommendations on how to write readable functions. This advice is geared towards functions written in an OOP language, although many of the concepts carry over to other language paradigms. The majority of your functions should be less than 15 lines long, and they should hardly ever be more than 20 lines long.
Sort: