A statement that could be written as:
foo=(bar*5)+baz;
is usually written in sample code (documentation, tutorials etc) as:
foo = ( bar * 5 ) + baz;
This appears to require extra work and seems counter-productive to me. Is there a rational reason for this? Is this a good coding practice, or just for sample code?
(The reason I ask this is to make sure my coding style is right, and understand why most code I see online is written like this).