Any advanced topics about test framework design

Any tutorials about how to make appium do something smart, the example is only single page app.