You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are plenty of arguments out there against singletons (check the Wikipedia article, second paragraph), but my main beef is that they're impossible to subclass and they make it possible to access global state (which I'd try to avoid when possible). Instead, we can instantiate them from mvc/Application.
The text was updated successfully, but these errors were encountered:
zship
changed the title
Convert singletons to plain classes (mvc/Router and mvc/ViewManager)
Convert singletons to plain classes (mvc/Router, mvc/ViewManager, util/Config)
Jun 25, 2014
There are plenty of arguments out there against singletons (check the Wikipedia article, second paragraph), but my main beef is that they're impossible to subclass and they make it possible to access global state (which I'd try to avoid when possible). Instead, we can instantiate them from mvc/Application.
The text was updated successfully, but these errors were encountered: