Take the 2-minute tour ×  I have a large method which does 3
tasks, each of them can be extracted into a separate function.
If I'll make an additional functions for each of that tasks,
will it make my code better or worse and why?  Edit: Obviously,
it'll make less lines of code in the main function, but there'll
be additional function declarations, so my class will have
additional methods, which I believe isn't good, because it'll
make the class more complex.  Edit2: Should I do that before I
wrote all the code or should I leave it until everything is done
and then extract functions?  share|improve this question "I
leave it until everything is done" is usually synonymous with
"It will never be done". –  Euphoric Oct 1 '12 at 8:15 That is
generally true, but also remember the opposite principle of
YAGNI (which doesn't apply in this case, since you already need
it). –  jhocking Oct 1 '12 at 11:46 add comment  5 Answers  up
vote 14 down vote accepted  This is a book I often link to, but
here I go again: Robert C