Inefficient, verbose and ugly, yet by the 1990s, 80 per cent of the world's business software was written in Cobol. Aleks Krotoski explores why.