I am always amazed how little goes wrong with bikes...often there are niggles and inconveniences but I can honestly say that in 26 years of proper distance road riding, I have never had a mechanical that has prevented me from getting to my destination.
I think that is credit to the simplicity and quality of bicycles!
I don't know how typical my experience is...I do know that in about half as many years driving, I have not been able to get to my destination without roadside assistance or at all, at least half a dozen times because of mechanicals!
The rear mech snapping I am guessing is a bit of a ride ender!