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

It's not just excessive abstraction, separating Singleton and SingletonFactory can even reduce encapsulation since you can't make the Singleton constructor private.


You can if it's in the same file.




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

Search: