On Fri, Jan 2, 2009 at 5:40 PM, lpetit <laurent.pe...@gmail.com> wrote: > > Hello, > > here are some feedbacks : > > I suggest you should create a namespace for the code of the game > ('cause you want to show clojure good coding practices, as well as > good coding conventions, won't you ;-)
Right! Thanks for the suggestion. I've added that. > Could it make sense to use even fewer def's than currently ? > I guess it could be made not mandatory to have apple, snake, as global > vars ? > And the JFrame too ? I'm not sure how to get rid of any of those defs. I need access to the JFrame in the new-game function. > It could be great to have just defn's (and defstruct's and > defmacro's), and a single defn entry point for starting the game ? Are you suggesting that I create a single struct that holds what are currently global variables in my code? Maybe I should create a global map named game-config to hold those. Suggestions welcomed! -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---