weavejester/ns-tracker — pull request #2 by CmdrDats (2012-08-16 16:33:10+00:00)
Title: Quick background thread reloader and scaffolding

I wrote a quick function to fire off a background thread when your app starts so that it would automatically reload your namespaces without any extra fuss - a call to (start-nstracker ["src" "test" "checkouts"]) and you're done.

The other part is a bit more interesting - I've built a (scaffold!) macro that you can wrap around most any piece of code - then when that code executes, it will remember it and keep running it with its local state on every reload. I'm finding it immensely useful for GUI development - I can wrap it around panel generation and code almost live after getting to a certain state in the app with it automatically reconstructing the tweaked UI with it's local state.

It's not perfect, but I figured maybe it's useful to others, so I decided to contribute it to this project since it makes sense in here :)