What is the difference between application state and component local state in Clojurescript Om?

As I understand it: Application state is the “global” state that all components in the component tree can access, through cursors. This is the state that your application is in and basically what is being rendered by Om. So, for example, if you are writing a chat program, the application state would contain a list … Read more

deftype vs. defrecord

deftype creates a bare-bones object which implements a protocol. defrecord creates an immutable persistent map which implements a protocol. Which to use depends on what you want. Do you want a full ClojureScript data structure? Then use a record. Do you just want a bare-bones thing that does nothing but satisfy a protocol? Then use … Read more

Any clojurescript tutorials? [closed]

Fogus is writing a series on ClojureScript which you may find interesting. Compiling Clojure to Javascript Jul 21, 2011 Compiling Clojure to JavaScript, pt. 2 – Why No Eval? Jul 29, 2011 Compiling Clojure to JavaScript, pt. 3 – The Himera Model Mar 27, 2012 The ClojureScript Compilation Pipeline Apr 25, 2012

How does Elm compare to ClojureScript?

Both force you to use a more declarative/functional programming style than pure JS. ClojureScript is more like a JS replacement, whereas Elm is more like a replacement for the entire web development stack (HTML/CSS/JS). Other differences: Elm syntax is much more Haskell-like ClojureScript is much closer to traditional Lisp syntax Elm is highly optimized for … Read more