Summary – mind your own beeswax

In this chapter, we drove several points home.

When it comes to structuring your application, make life easy for yourself. Go for the principle of least surprise and don't pile all of your classes in a single namespace.

Keep your code in manageable blocks using architectural devices such as mixins. When you look in a class, you don't want to see thousands of meandering lines, but want a concise logical unit.

Use the Ext JS framework as structural inspiration. It may not be 100 percent, but it does show us something very important, which should inform every aspect of your application architecture: having a system is always better than not having one and you should be consistent at all times.

In the next chapter, we will ...

Get Ext JS Application Development Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.