Wednesday, 5 June 2013

Trailing Spaces and TIA

Whenever you parse a string in any programming language you should usually exclude trailing or leading spaces. This is because usually they have been but there accidentally, It means that comparisons will fail if you do not remove the spaces.This has happened four times to me today on web forms.

It's amazing how many basic rules seem to have been thrown out of the window with the new programming regimes . Fast and cheap , standards gone , and we have to live with it.

In other news com back from hospital with the news that they think I've had a TIA except I still cant use my little finger properly. So it looks like its just going to be a long slog to regain the use of it once more , either that or I stick to playing bass!

Anyway today's tune for June  is The Hospital Song by 10CC , I'd forgotten how good this was :