Summary

Our application looks outwardly much the same as it did at the beginning of this chapter. Our code, on the other hand, does not. Classes helped us massively refactor and reorganize our codebase. We've achieved a much better separation of concerns, got rid of some repetitive code, and put all our methods in the logical places. We:

  • Used model classes to represent the data and business logic of our application
  • Used view classes to handle the display logic and user input
  • Used inheritance and composition to share logic between classes

Now that our application is lean and mean, we're ready to add some more improvements. In the next chapter, we'll be learning about some advanced features of CoffeeScript. We'll learn new ways to manipulate different ...

Get CoffeeScript Application Development 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.