Hacker Newsnew | past | comments | ask | show | jobs | submit | 02f39nrca's commentslogin

Experience shows the singleton pattern is more trouble than it's worth. Explicitly initialise shared resources in one thread either from main, or if you're writing a shared library, the explicit initialisation function you'll have to add anyway if the library is properly designed.


Because it reads like it was generated by one of those Markov Chain text generators and then run through Google translate a few times.


I write code on Wall St. I don't make millions. Am I part of the greedy 1%? The world is not as black and white as you think.


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

Search: