Depends on style of play. Play in long session, and then offline and get shielded. Stockpile only one resource at a time. Once you've broken shield and almost done with raiding then you can plan CC defense after raiding. Then who do you get depends on luck. Could be a TH7 snipe, or a hungry TH10 with a full army (just need to be barch). In latter case, maxxed out TH8 before going to TH9 or rushed TH9 wont make a difference.
Casual players playing a few times maybe 1-2 raids a day.. you're better off maxing as much as you can (except the very last few expensive updates. Its probably better doing that at TH9 when you can manage your resources with the wall dump so you're only stockpiling one resource at a ttime)





