Sometimes it is acceptable to destroy objects explicitly using destroy method.
Data binding
Objects and DOM-elements should never be recreated without a strong reason. Instead, they must be updated using
data binding.
Data binding of single values is performed with Property class and its bindings.
Data binding in collections
Data and components are structured based on three collection types: BindableArray, BindableMap and BindableSet.
Read the common theory of algorithms and data structures to learn pros and cons of each collection type.
Each collection dispatches messages about its modification.
You don't have to listen all collection messages manually. Instead, you should use standard collection bindings.
The bindings provide a simple way to connect collections to each other.
Collections are enclosed inside binding methods. In other words, any modification of a collection triggers
at most one modification of another collection, which is connected to the first one using a standard binding.
Almost any user action can be handled with a single manual collection modification in the model. All other
collections (including component collections in the view) must be synchronized automatically via bindings.
For proper and fast application running, it is enough to configure all bindings only once, similarly to how you
used to configure indexes and foreign keys in SQL data bases.