If you see commands in the source and don't understand what it's doing check the API Docs for more info
At the same time that you search in the demos, see if there's a tutorial for what you're about to do that might provide additional commentary.
Check the FAQs if you encounter any problems along the way for the part you're working on.
If you're branching into something more complex, then check the tutorial section for Application Design stuff (how to structure your app, working with scope, extending, xtypes, etc).