functions have to be small

from Clean Code:

The first rule of functions is that they should be small. The second rule of functions is that they should be smaller than that.

FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.

Schermata 2013-03-08 alle 00.21.32