Monday, 15 December 2014

Logistics of Toast

I can’t help applying logistics to my everyday life. When I travel to London I walk along the platform at Epsom until I get to the different coloured platform stone which is where one of the train doors will stop allowing me to get on near the end of the train so that when I arrive at Vauxhall, I get off next to the stairs.
I then walk into the underground and turn left into the tunnel and walk along the platform until I get to the white painted square. This is the ideal location for getting out beside the stairs at Warren Street.
A colleague of mine once said ‘What’s the point? You have to do the same amount of walking wherever you get on the train and tube.’ But he was missing the point (and should have known better as our role at work was designing journey planning algorithms).
My approach doesn’t optimise distance, it optimises time. It’s not that I’m in a rush to get to the office, it just feels like the right thing to do.
I’m the same in the kitchen, although it is distance that I optimise in there. When I’m working at home the daily routine starts by filling the bread machine and making a cup of coffee.
The kettle, bread machine, measuring jug and spoon, coffee and sugar are at one end of the kitchen (point A) and the weighing scales, flour, yeast, salt and margarine are at the other (point B). The sink is in the middle (point C). So without consciously thinking about it over the past few years I’ve optimised my routine as follows:
1.       Start at A. Pick up kettle.
2.       Walk to C. Fill kettle.
3.       Walt to A. Return kettle and turn it on. Take the bowl out of the bread machine and pick up measuring jug and spoon.
4.       Walk to B. Take weighing scales out of cupboard. Add yeast, flour and salt.
5.       Walk to A. Take sugar out of cupboard.
6.       Walk to B. Add sugar and margarine.
7.       Walk to A. Return sugar and while cupboard door is open, retrieve cup and add coffee.
8.       Walk to C. Fill measuring jug with water.
9.       Walk to B. Add water. Pick up bowl, measuring jug and spoon.
10.    Walk to A. Put bowl in bread machine and turn it on. Return measuring jug and spoon to their home. Pour boiling water on coffee. Pick up coffee.
11.    Walk to B. Put weighing scales back in cupboard.
As well as optimising my distance travelled I’ve also optimised some of my time because I don’t have to wait for the kettle to boil because I’m busy filling the bread machine.
Note: In the summer the distance travelled is slightly further because the margarine is kept in the fridge.
If I draw the above as a diagram you can see that it isn’t the most optimal distance:


If the distance from A to B and then B to C is 1 then the total distance is 16. Steps 4 to 7 involve two trips between points A and B which could be reduced to one, decreasing the distance to 14. However, I can’t carry the bread machine bowl, measuring jug, measuring spoon and the sugar all at once.
If this exercise was like an old text adventure game on a computer where you could carry as much as you liked in your inventory then I could reduce the distance to 6 by collecting things from A, carrying them to B and collecting everything else, walking to C to get water, walking to A to make the coffee, fill the bread machine and put half the things away before walking to B to put everything else away. However, I might end up waiting for the kettle to boil if it takes longer than it does to fill the bread machine and put half the things away.
   

Despite what you might think after reading the above, I don’t optimise every activity in the kitchen. If I was toasting three slices of toast under the two slice capacity grill I think I’d do it in four goes instead of the optimum three.


I’m sure I’m not the only person to add logistics to my life without realising it. When my train arrives at Vauxhall the majority of the people in my carriage get off and when I’ve ridden in the front carriage (the ideal place for getting off at Waterloo) I’ve observed very few people get off at Vauxhall, so I’m clearly not alone.

Sunday, 7 December 2014

Over Engineered

We have a piano in the dining room at home which means we don’t really have room for a dining table. We searched for months to find a gate fold table which could be left folded against the wall most of the time, but all we could find were ones that looked like they’d just been lifted from a Victorian home.
Eventually we found one at the Ideal Homes exhibition in London, ironically made by a company a few miles from home in Leatherhead. It was very expensive but we had to have it because the leaves were fitted with pistons which slowly lift each leaf once it they have been given a manual start. The piston isn’t strong enough to keep the leaf in an upright position for use, so you still have to scramble under the table to fold out the gate, therefore rendering the piston pretty pointless – over engineered if you like.
I’m thinking about this now because we’ve just bought a new suite for the front room and the two poufs have magazine storage compartments inside, and you’ve guessed it the lids have pistons on them. These are a little more useful because they keep the lid up while you rifle through months of magazines trying to find the article you are after, and prevent the lid from falling on your head.
It turns out they are not the only pistons in the house, we have a soft closing toilet seat which is essentially a piston too. I think this clearly falls into the over engineered category, I’ve certainly never worried about the toilet lid falling on my head.
All of this got me wondering about what else we have that is over engineered and whether I’m guilty of doing it too.
How do you open a document on your computer? Double click on it, right click on it and select Open from the menu, open the application first and then select the Open command and search for the file, or maybe you drag it onto the open application. That’s four different ways to do the same thing, and I can’t help thinking that there’s probably a fifth way that I’ve forgotten.
Surely we don’t need all those ways to open a document. You can make a very good argument that the piston examples add to the desirability of the product and make them sexier in some way – it was the main reason for us buying the gate fold table after all. But does the number of ways I can open a document in Windows affect whether I buy it or prefer iOS instead.
If some people use the options and find them useful or easier then what’s wrong with adding them? It makes the software more complicated that’s what. Somebody has to spend the time writing the alternate functionality, somebody else has to test it, if you have comprehensive documentation somebody needs to add it to the user manual or online tutorials, and if it fails it will take time and resources to fix it.
Having said that the latest web site data entry tool I’ve been working on has almost as many ways of editing a record as Windows has for opening a document. You can double click on it, right click and select Edit from the context menu, single click to view the record and then press the Edit button in the view window.

After reading what I’ve said above you are probably wondering why I did that. Well, I guess it’s because we think our users expect it.
It’s a lame excuse and it would be better to know whether our users do use these functions, although now that we’ve added them it seems pointless taking them out, it’s not like a piston which adds to the ongoing production costs.
At a recent conference I sat in a talk about the IOT or Internet Of Things for the uninitiated. I find it hard to understand the value of a lot of IOT applications – do I really want to change the temperature of my home heating while I’m on the train going home? But one example did sound pretty useful for a manufacturer of white good.
I bet your washing machine has about a dozen wash programmes and I also wager that you have never used most of them. So why do they exist? Because somebody thinks somebody uses them and it looks impressive on the marketing material. The IOT example in the conference suggested that every time somebody starts a wash the machine should send a message to the cloud indicating which programme was being used, so that half of the buttons can be removed when version 2 of the machine is designed.
So should I add instrumentation like this to my software, so that I can remove some of the Edit options?
As it happens my software already has instrumentation – every call to the server is logged in the database so that we can see which functions are used more than others and more importantly we can see which ones perform badly i.e. slowly. However, it doesn’t matter how you select Edit on the UI it always logs that the same edit function has been executed on the server.

It’s given me something to think about but like most people I think I’ll continue to over engineer my software in the hope that each extra option I add will attract or please at least one of my users.