|
|
|
|
|
by TrianguloY
670 days ago
|
|
Not only that, but when you save something to a variable the reader needs to remember it in case you use that variable later again. For me personally that's exhausting. I've seen streams-like code with a variable for almost every step, immediately used the line below. I can understand when the reason is to "explain" the meaning of the intermediate step...but even so a comment is far better on my opinion. I always try to inline every 1-use variable/method, unless there is a good reason for not doing so. |
|
[0] https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus...