Routing versus STP (CCDA)

in CCDA & CCDP
I'm reading that it's better to implement multi-layer switches and use routing to take advantage of load-balancing instead of using L2 switches and STP. While I can accept that it's better and more efficient, I'm not familiar with how the routing effectively replaces the STP function in L2?
Can anybody help explain this to me?
Can anybody help explain this to me?
Comments
Just another way to think about it really.
liquid
Yeah, that's what the book is saying. Thanks for the help, liquid.
Good idea for those offices where people like to plug up extra switches all over the place.
Been there.....
Spanning tree was disabled without our knowledge when we created a voice VLAN on our head office access switches. bug in the switch software that disabled STP when a certain command was executed! User plugged the data cable from a hot desk IP phone into a live wall point which caused the L2 loop.
It brought a floor of 150 users to a halt until we resolved!
It wasn't a Cisco switch but still took a while to narrow down the cause as STP was enabled as far as we were aware!