Which of these programming styles is better?

var result = methodOne(methodTwo(a, methodThree(b)), c, d);


or

var result3 = methodThree(b);
var result2 = methodTwo(a, result3);
var result = methodOne(result2, c, d);


In layman's words:

The important thing is not the numbers of lines but the readability of the code.


  Any fool can write code that a computer can understand. Good
  programmers write code that humans can understand. (M. Fowler)


In the examples you gave, the second one is definitively easier to read.

Source code is for people to read.

Besides, intermediate values make the code easier to debug.

Code one-liners, on the other hand, are useful to show other people that you are "smart" and that you don't care.
