2 ms·
my opinion: The second is better looking. I'd rather maintain the second. But... The first is easier to read. The shape of the code is enough for me to parse
by betenoire 10y ago
my opinion:
The second is better looking. I'd rather maintain the second.
But...
The first is easier to read. The shape of the code is enough for me to parse without effort. In the second, I have to "walk myself" through the code, even for this little example. I feel the effort required as soon as I have to start looking for the embedded commas.
So I usually choose something like the first, since time spent typing matters less than time spent thinking.