News for hackers. Stuff that matters.
Re:So Singletons are bad, then what? by l0u on Thursday January 30, 2014 @03:57PM (#7153306)
Not only can you mock it for testing but it encapsulates the system better, there is no reason for straight access to C.get with this pattern you can easily drop in a brand new system for caching and not break your original code. Some might find that a bit too much like coding for the future, but in my case that is quite a likely situation to occur especially if you ever run into scaling issues.

There are no comments on this comment yet.