I generally prefer a mix of the two, you have a chain of linear logic that pulls out clean chunks into methods when they get two complex or need repetition/recursion etc. I would rarely have a method that is just a list of function calls.
As with everything, there isn’t a one size fits all ideal solution, it depends on the exact code.
I generally prefer a mix of the two, you have a chain of linear logic that pulls out clean chunks into methods when they get two complex or need repetition/recursion etc. I would rarely have a method that is just a list of function calls.
As with everything, there isn’t a one size fits all ideal solution, it depends on the exact code.