It really depends on the particular developer. This is a pretty subjective thing.
Personally, I prefer the first version, because then, if I need to, I can more easily execute the code in the debugger.
A more fanatical end to TDD (Test Driven Development) proponents will say that it doesnโt matter because you will never use your debugger if you make TDD โrightโ.
I also prefer smaller lines, so if you have a method call that goes through the results of other method calls, and the parameter lists start to excessively exceed, it becomes very difficult to read
SendResults(GetResults(arg0, arg1, arg2), SomeOtherMethod(arg3, arg4), arg5);
It becomes very difficult to read and track everything.
Ultimately, your system and your system are supported, so any style you find is easier.
source share