It ended up with investors losing their shirts time and time again - https://en.wikipedia.org/wiki/Railway_Mania and https://en.wikipedia.org/wiki/Panic_of_1893 for example - but we did get some very useful infrastructure out of it.
But the steam engine was an amazing invention, and ended up propelling humanity forward.
But the steam engine was an amazing invention, and ended up propelling humanity forward.