Hacker News new | ask | show | jobs
by malkia 5534 days ago
We used a lot of singletons (also video game deveoper) in the past, to the point where the code is unreadable:

some_system::get_instance()->MemberFunc(), instead of sys->MemberFunc()

Problem came apparent when somebody had made the Camera singleton, and it was singleton...

Nowadays we have one keyboard, one mouse, one printer... We used to have one DISPLAY, even one WINDOW (fullscreen), and one JOYSTICK. Just to get the point...