Summary

This brings us to the conclusion of the runtime environment. You should now be prepared to create your own SC.Object subclasses to organize your code and use mixins to avoid overly rigid hierarchies and code duplication. You should also know how to define properties and computed properties for your objects and how to access them correctly using key-value coding so that the observers and bindings that you create will all work together for simple, fast and error-free code.

This was a fairly in depth look at SproutCore's runtime and indeed gives us everything we need to write a complete SproutCore application. But there is still a lot more that SproutCore offers to make application development easier. As you learn more and try it out yourself, be sure to revisit some of the sections in this chapter to refresh your understanding of the fundamentals often. In particular, I've included important tips for using computed properties, observers and bindings, which I believe make for easier to maintain and more fundamentally correct code.

Hopefully before too long, this will all become second nature to you and you can begin to create even more advanced patterns on top of this powerful platform.

In the next chapter we will look at the MVC pattern in SproutCore and we will look specifically at the View component of that in great detail. This includes all aspects of working with SproutCore views as well as the role of the views in a SproutCore application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.3.175