3 ms·
> or Clojure's "let's use maps for everything". Small world. I'm writing a roguelike in Clojure and indeed use maps for everything. Datascript seemed promising
by aaron-santos 7y ago
> or Clojure's "let's use maps for everything".
Small world. I'm writing a roguelike in Clojure and indeed use maps for everything. Datascript seemed promising, but it is hard to beat Clojure's builtin data selection functions.
- TeMPOraL 7y agoSmall world indeed. I work a bit in Clojure from time to time, so I have a passing familiarity with the coding style. FWIW, for the same game I described above, I also ended up cloning half of Stuart Sierra's famous Component library to use it as my half-baked Dependency Injection framework. This was motivated by the fact that - due to various life reasons - I do a good chunk of my development from a sidearm machine via SSH to my desktop, so I need an architecture where I can develop and test the game in headless mode (no graphics, mock inputs) as much as possible. I write a lot of unit tests now.