{"comment":{"created_at":"2011-12-13T01:47:39Z","position":null,"commit_id":"2d09dd44f42ff7b741358bfb76c1fc9bfc0b4dca","updated_at":"2011-12-13T01:47:39Z","user":{"gravatar_id":"75f3ccb669c2304d8c84ade1cd903eaa","id":794812,"url":"https://api.github.com/users/tustin2121","avatar_url":"https://secure.gravatar.com/avatar/75f3ccb669c2304d8c84ade1cd903eaa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"tustin2121"},"body":"If you become a better programmer because of me, I will sleep easier at night knowing there is one more good programmer out there. :)\r\n\r\nAnyhow, don't be afraid of a lot of classes. In Java, you HAVE to make a lot of classes - that's how callbacks are done in Java. If this were C or C++, the callbacks would be function pointers and you'd be using a ton of those. So many classes are kinda necessary in Java. Fortunately, Java has packages to help organize them (and my next commit, assuming all goes well, will show you how packages can be used).\r\n\r\nAnyhow, using separate classes for each command makes it easier to see what command is using what code, and keeps things nice and orderly. Plus, it won't require a huge set of if statements or, as seen here, a large switch statement. Calling a single function will just work (with the classes set up properly). You'll see. :)\r\n\r\n(Also, note, I'm not really adding any functionality at the moment, so if need be, this should be reversible and it should all work still)","id":789109,"path":null,"line":null,"html_url":"https://github.com/maveronyx/OnyxAdmin/commit/2d09dd44f4#commitcomment-789109","url":"https://api.github.com/repos/maveronyx/OnyxAdmin/comments/789109"}}