Software people talk a lot about legacy systems, usually with a sigh. Hagia Sophia is the ultimate one, and it is glorious. It was completed in 537 AD, and nearly 1,500 years later it is still standing and still in daily use, having been refactored from Byzantine cathedral to Ottoman…