Quiz Questions

How do you organize your code?

Do you use module pattern, classical inheritance, something else?

Quiz Topics

In the past, developers used Backbone for my models which encourages a more OOP approach, creating Backbone models and attaching methods to them.

The module pattern is still great, but these days, developers prefer using React/Redux which utilize a single-directional data flow based on Flux architecture. It is common now to represent an app's data model using plain objects and write utility pure functions to manipulate these objects. State is manipulated using actions and reducers like in any other Redux application.

Avoid using classical inheritance where possible. When and if you do, stick to these rules.