in reply to Coding style

For me, The second code is more readable

But it's just a matter of choice, choose whatever you're more comfortable with.