Browsing index pages (2 articles)
↧
Programming Singletons vs Static classes
I've been developping a 3D app for some time and I remember at some point I started to need to pass data arround in unrelated areas of the program, where it wouldn't make much sense to pass them...
View ArticleAnswer by DMGregory for Programming Singletons vs Static classes
In Game Programming Patterns, Robert Nystrom lays out that there's a few common reasons we like to reach for singletons:Ease of global accessOnly takes resources if used (if no one uses the singleton...
View Article
Browsing index pages (2 articles)