The worst case of shin splints periostitis I ever had was when I was running in track in high school.
I think the best way to avoid getting shin splints is to gradually work your way up to a certain level. Like most people who suffer from this, I tried to do too much too fast.
What surprised me is how long it took for these shin splints to completely heal. It sure didn't take very long for this inflammation to happen, but I had to sit out for several weeks until they were completely healed.
I did learn my lesson though, and now when I tackle a new exercise program that involves the bones in my legs, I approach it much more cautiously.