Re:Detailed Breakdown of a Clojure Web App
by weavejester on Sunday November 11, 2012 @05:50AM
(#4769213)
Could you give me an example of a route that was particularly messy if you didn't pass the full request map? Maybe I can suggest a better option (or at least admit defeat :)
Re:Detailed Breakdown of a Clojure Web App
by nonrecursive on Sunday November 11, 2012 @12:24PM
(#4769990)
You know, I actually can't think of any. I just ended up writing things the way I did because I anticipated I would want the full request map, but that assumption hasn't born out. Passing params might be a good way to go. I need to go back and change this!
For #1, I definitely started by not passing the full request map but I ended up finding it cumbersome. On the other hand, my code doesn't really need the full request map. I'll have another go at it and see how I can improve things - thanks for the guidance. It feels like a process of over-contraction, then over-expansion. Hopefully I'll find a happy medium.
For #2 - thank you! I was trying to work toward something like but couldn't quite get there, so this is great.