Presenters, Decorators, and View Models
Learn about what problems we can encounter with presenters, decorators, and view models.
Helpers conceptually solve the problem of executing code in a view pretty well. But, they cannot be scoped in any meaningful way (in other words, they are global to all views) and they become hard to manage when an app gets large.
When there are lots of helpers, it becomes hard to reuse them because we must navigate a potentially large list to see what’s available. This means it’s hard to avoid duplication and can even lead to name clashes. This is why most programming languages and frameworks have modules. ...
Get hands-on with 1400+ tech skills courses.