Re: Weening myself off of global state - what's the idiomatic way to solve this?

2011-04-16 Thread Brandon Ferguson
with user input and the like just to see how that would map, and getting multiple balls running. Hopefully I can even get away from the lazy sequence method. Thanks for the help! -Brandon On Apr 14, 11:19 pm, Brandon Ferguson wrote: > Holy crap that's a lot to digest! Thanks! A lot of ideas

Re: Weening myself off of global state - what's the idiomatic way to solve this?

2011-04-14 Thread Brandon Ferguson
Think there might be ways around that just not sure yet. Thanks again, and I'll certainly post with an update with where I get (probably won't be able to dive into it again until the weekend sadly : ( ). On Apr 14, 1:00 pm, Ken Wesson wrote: > On Wed, Apr 13, 2011 at 1:22 PM, Brando

Re: Weening myself off of global state - what's the idiomatic way to solve this?

2011-04-14 Thread Brandon Ferguson
This is definitely a good place to start. At very least getting most of the functions away from the global bits. Thanks! On Apr 14, 10:42 am, jweiss wrote: > I'd start by making functions that take arguments.  For instance (defn > draw-ball [ball] ...) > > On Apr 13, 1:22 pm,

Weening myself off of global state - what's the idiomatic way to solve this?

2011-04-14 Thread Brandon Ferguson
I'm not sure if this is the place to ask this but I've been struggling with a few things in the world of Clojure. I've been using Processing to learn Clojure (since I'm somewhat familiar with Processing) but the tough part has been dealing with things like x, y positions of objects without keeping