Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Singletons are globals and should be treated the same as every other global (that is, used sparingly and with care).

Worse is that singletons enfurece a single instance which is almost always unnecessary. It’s trivial to only create as many instances as you need.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: