Tuesday, 10 January 2012

Power-Weight Ratio

English: Joshua Bloch in 2008.
Image via Wikipedia
I came across this idea in a video of a the Joshua Bloch presentation "How To Design A Good API and Why It Matters". Power is what you can do with the API. Weight is conceptual weight, the number of ideas you have to learn to use an API. We want to do more for less effort.

I have several Maths-related ideas that run along these ideas. The first concerns the terms 'plus' and 'minus'. The main thrust of my idea is to replace minus with opposite (direction) and, for the moment, to replace plus with forward* (direction).

* This is because of the number line.
6 + 3 => 6 forward 3 = 9. 
6 - 3 => 6 opposite 3 = 3.

The Power achieved by this switch is by making explicit the use of the minus sign to indicate opposite. In my experience, the two most common mistakes that students make in Maths are multiplying/dividing signs and multiplying/dividing units. Look at how this would change:

forward x forward= forward
forward x opposite = opposite
opposite x forward = opposite
opposite x opposite = forward

It is probably the last one that causes the most problems. If you ask someone the opposite of opposite they will usually answer, "the same". So -(-3) is the same as 3 therefore -(-) = forward.
Enhanced by Zemanta

Arrow Key Nav