{"comment":{"position":16,"user":{"avatar_url":"https://secure.gravatar.com/avatar/dd6fa65391ed95ad93b7d7c9b8d1a969?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"dd6fa65391ed95ad93b7d7c9b8d1a969","url":"https://api.github.com/users/mlossos","login":"mlossos","id":718550},"updated_at":"2011-10-29T17:42:03Z","commit_id":"fbb821af437269ee96c186bf19b9774851b4da16","line":16,"url":"https://api.github.com/repos/fried-water/Tetris/comments/683066","body":"Dependency injection:\nhttp://martinfowler.com/articles/injection.html\nAlso:\nhttp://code.google.com/p/google-singleton-detector/wiki/WhySingletonsAreControversial\nhttp://www.sitepoint.com/whats-so-bad-about-the-singleton/\n\nAnd then get rid of your static.  Make it a param just to see how that looks!\n\nThere 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).\n\nJustification SUCCESS.\n\nLearn stuff.\n","html_url":"https://github.com/fried-water/Tetris/commit/fbb821af43#commitcomment-683066","id":683066,"created_at":"2011-10-29T17:42:03Z","path":"src/tetris/util/GameAccessor.java"}}