3 ms·
In think singleton has been labelled as anti-pattern in OO for a long time. Having a single reference is useful, but using instantiation as a way to get it has
by BiteCode_dev 7y ago
In think singleton has been labelled as anti-pattern in OO for a long time.
Having a single reference is useful, but using instantiation as a way to get it has proven a bad design decision.
- gchamonlive 7y agoThat is really my point. Isn't it better to just use a tool that limits what bad decisions you can make? Or at least make these bad decisions so hard that once you know how to implement them, you know better ways to write your code?