Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by olenhad on Monday April 29, 2013 @03:07PM
(#5628011)
This is super impressive. I'm going to use this for my frontend work now.
On a side note, what's the idiomatic structure, or "design pattern" for cljs front end code? I would assume something based on MVC, with models comprising of atoms with watches, Views consisting of hiccup templates and controllers gluing dom events to models and views. Am I close?
[ Parent
| on HN ]
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by lukev on Monday April 29, 2013 @04:14PM
(#5628396)
At Relevance we've released a "framework" for this; it's not MVC, but it addresses the same concerns. It's still in an alpha/beta state, but you should check it out if this stuff interests you: http://pedestal.io/
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by notimetorelax on Tuesday April 30, 2013 @05:56AM
(#5631236)
I'm planning to use it in my next pet project. What I like the most in your framework is the URL generation feature. IMHO it was missing in all other Clojure web libraries. So thank you for your contribution!
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by connerp on Monday April 29, 2013 @03:47PM
(#5628245)
I'm not sure there's an agreed upon design pattern. At Prismatic we've adopted a component-based system where a component is essentially the MVC for a single logically-grouped part of the application. Its defined as a record that binds its own events and renders markup from it's template. We try to push mutability and asynchronous functions (xhr, file io, etc.) as far up as possible to avoid unnecessary state manipulation and callbacks everywhere. The idea of reactive programming in ClojureScript is also very interesting as it would make event-handling much more manageable, simplifying event-dom glue code and removing unwieldy callback chains.
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by muraiki on Monday April 29, 2013 @04:27PM
(#5628472)
I'm extremely interested in this component based system -- I'm currently working on a project in the Seaside framework for Smalltalk and have fallen in love with the composability offered by this approach. However, I'm also a fan of Clojure, and it also seems like Clojure has a stronger community at this time. I'd be very happy if you release this at some point!
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by aria on Monday April 29, 2013 @03:45PM
(#5628228)
We internally have a nice component/widget abstraction we use which is not quite MVC, but we think cleans up a lot of web development. We will release in the near future once we perfect it.
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by Jonovono on Monday April 29, 2013 @04:07PM
(#5628368)
Cool! I am wondering if you have worked with other frameworks like Pedestal.io, C2, or WebFUI, Ganelon. Or any others. What do you think of them?
I am just getting started with Clojure/CS and am evaluating the different options.
http://pedestal.io/ http://keminglabs.com/c2/ https://github.com/drcode/webfui http://ganelon.tomeklipski.com/
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by codewright on Monday April 29, 2013 @06:00PM
(#5629126)
Take a look at Luminus.
Re:Faster, Better DOM manipulation with Dommy and ClojureScript
by codewright on Monday April 29, 2013 @04:29PM
(#5628485)
Are you going to re-release the stuff you yanked off your github?