Learning from experience is the most effective way to learn. But, when it comes to divorce, nobody wants to learn by going through it multiple times.
So, the best way to learn is to learn from the experience of others. This New York Times article provides some interesting insights into what others have gone through in the divorce process.
You can draw your own conclusions from the comments. But, it seems to make a pretty good case for staying out of court if possible.