Ok, consider something like this:
Result = (x * y + p * q - 1) % t and
Result = (((x * y) + (p * q)) - 1) % t
Personally, I prefer the former (but it's just me), because the latter makes me think that the brackets are there to change the actual order of operations, when in fact they do not. Your tutorial may also mention when you can split your calculations into several variables. For example, you will probably have something like this when solving the quadratic ax^2+bx+c=0 :
x1 = (-b + sqrt(b*b - 4*a*c)) / (2*a)
Which looks kind of ugly. It looks better in my opinion:
SqrtDelta = sqrt(b*b - 4*a*c); x1 = (-b + SqrtDelta) / (2*a);
And this is just one simple example: when you work with algorithms that involve a lot of calculations, everything can become really ugly, so splitting the calculations into several parts will help readability more than brackets.
Ivlad source share