Live data from Hacker News

Cloact: Minimalistic React for ClojureScript

holmsand.github.io

21–30 of 45 posts

Re: Cloact: Minimalistic React for ClojureScript

#24
post #11

I can't see that word without thinking of Cloaca. Cloaca. If you don't know what it is, you should. Cloaca.

Same here. Perhaps it's my exceptionally wry (and inappropriate sense of humor), but I rather wish it were cloaca. Just imagine the logo opportunities!

A startled pigeon, looking over its wing, tail up in the air, clearly exposing its backside...

...this is why I'd never get hired as a marketer or designer, never mind the fact I'm no artist.

Re: Cloact: Minimalistic React for ClojureScript

#27
post #23

Sorry for the noob question, but: does this take the place of Hiccup? Or, would one use both at the same time?

Hiccup is for going html->string

This library goes from html->React data structure

The React.js system then is responsible for pushing it into the DOM, which it can often do in a way that's more performant than using a string intermediary (by computing deltas)

That's the short of it- The other part is that React is mainly a client-side technology whereas Hiccup is mainly used on the server (though these lines are blurry)

Re: Cloact: Minimalistic React for ClojureScript

#29
post #23

Sorry for the noob question, but: does this take the place of Hiccup? Or, would one use both at the same time?

Firstly, Hiccup is Clojure (so basically server only). Cloact is ClojureScript, that compiles to javascript (so browser, node.js, etc).

Secondly, Hiccup produces strings. Cloact typically creates DOM elements, through React, that change every time a component rendered. But it can also produce an HTML string using the same data, to pre-render a page on the server using node.js.

Re: Cloact: Minimalistic React for ClojureScript

#30
post #16

Cloact: unfortunate name.

“Reajure” might be better. Halfway between “reassure” and “erasure”.

Leiningen will actually complain with this message if you try to make a project name that is too 'punny':

  Sorry, names such as clojure or *jure are not allowed.
  If you intend to use this name ironically, please set the
  LEIN_IRONIC_JURE environment variable and try again.
edit: this did not stop me from starting such a project https://github.com/tomjakubowski/dujure
Post reply on HN