Archive for the ‘code’ Category

Searching for better

Monday, December 19th, 2011

When I’m writing code to add a new feature or change an existing one, I try to listen to the little nagging voices I hear about the details. What I want to do is cover all the necessary parts, consider all the cases I can, and make sure that there are good reasons for the […]

Operator Precedence and Parantheses

Tuesday, August 31st, 2010

It occurred to me last night that I never really remember the order of operator precedence in any language. For example: 2+3*4 will work out as 14 rather than 20 because most languages will evaluate the multiplication before the addition. If we wanted it to work the other way round we’d add some parentheses like […]