On errors

I am working on a project with text encoding. Being built by white anglophones most of the letters I use are fine. There is nothing fancy about them. They all have normal encoding in ASCII or UTF-8. ASCII and UTF are ways in which text is encoded into values and sent around computers.

Imagine the olden days when you pressed A on your typewriter and got an A. Well if I press the shift and 2 key on my keyboard (set as English). i’ll get speechmarks. If i switch my keyboard to USA, i’ll get the @ symbol. If i set my language to French then i go to AZERTY and not QWERTY and life is complicated.

So things are encoded. It’s usually ok, till someone changes computer or you have to play with a language with different letters or glyphs. Then it gets fun.

So I am working on one such project, and then fun is that it works on one PC and not on the server. The server clearly does some extra steps (we are talking WordPress) that the PC doesn’t and so I can’t easily work out what is going wrong, or not right.

So I added in some extra error handling, then thought that’s not enough and went back in and added in some extra zealous error handling. This did not help. Whatever the error is, is happening still – i forgot to say, that I don’t do the stuff on the server, that’s someone else – and so I went back to the drawing board, or perhaps in this case, the operating theatre.

So now I’ve added in various status panels, and an inactivity tool which checks things are actually happening. It’s at a level or those museum exhibits which shouw how a machine works. Things have been cut away and now you can’t see the workings, but you can see the not workings and the signs of life. I suppose we could see it as a heart monitor. The errors are flat lines and we’ve got a flat line checker as well as a beep beep heart beat noise.

All too often i see code where the error message isn’t any use, and that, like letters, needs translation, or googling. We build user interfaces for success, but how do we build them for errors?