fried-water/Tetris — comment on commit fbb821af437269ee96c186bf19b9774851b4da16
File: src/tetris/util/GameAccessor.java line 16
By mlossos:

Dependency injection:
http://martinfowler.com/articles/injection.html
Also:
http://code.google.com/p/google-singleton-detector/wiki/WhySingletonsAreControversial
http://www.sitepoint.com/whats-so-bad-about-the-singleton/

And then get rid of your static. Make it a param just to see how that looks!

There are better ways to do this, and you'll note that there's entire languages setup to prevent you from having the equivalent of static variables! (Clojure, Erlang) and others where it's deeply frowned upon (Python, Ruby).

Justification SUCCESS.

Learn stuff.