How the last 25 years led to the rise of mega-telescopes