Hacker News new | ask | show | jobs
by aliston 4525 days ago
So, have we decided on what would be a better approach for storing global state?

Static variables and methods? Pass the instance down to all children?

1 comments

It seems like there's no hard and fast rule.

I dislike singletons, but will gladly make a static method + static var from time to time.