Why were the Texas floods so devastating?

How can we integrate warning systems, technology, and local knowledge to avoid tragedy in the future?