This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # beginners (25)
- # boot (143)
- # braid-chat (9)
- # cider (18)
- # cljs-dev (88)
- # cljsrn (1)
- # clojure (91)
- # clojure-austin (2)
- # clojure-berlin (3)
- # clojure-japan (26)
- # clojure-russia (148)
- # clojurebridge (1)
- # clojured (29)
- # clojurescript (105)
- # cursive (7)
- # data-science (4)
- # datomic (15)
- # devcards (4)
- # emacs (8)
- # euroclojure (2)
- # events (1)
- # gsoc (27)
- # hoplon (3)
- # immutant (3)
- # ldnclj (3)
- # lein-figwheel (9)
- # leiningen (2)
- # luminus (1)
- # off-topic (5)
- # om (176)
- # onyx (136)
- # parinfer (16)
- # proton (13)
- # re-frame (33)
- # reagent (34)
- # spacemacs (1)
- # yada (127)
@shaun-mahood: The backend is just 2 simple REST endpoints in python, on Heroku (that access a MongoDB). It'll get more complex, and I'll probably port the python code to clojure before it does. If I'm just serving a simple SPA, any thoughts on what would be the fastest language/framework (node, composure, php, ...) to serve simple assets?
why on earth does http://codewars.com bring up protocols and records in the “answer this to sign up” questions… sheesh
@josh.freckleton: no reason you need to change the current back end or even have a framework, just point at your current back end and serve your spa as static assets and it should work great. Once you decide to port your back end, then you could start thinking about combining the two together. Make sense?
Has anybody used Cycle.js with ClojureScript? If so how has the experience compared to using a react based library such as Om Next?
@adamkowalski: cycle.js is pretty squarely research territory imo, whereas react (+ om etc) is battle tested. should be pretty fun, although observables can take some getting used to, and you’ll want a cljs wrapper for rxjs. the “lets hide all our state in mutable objects that are hard to reason about” is less appealing to me than clojure’s state management 😄 (reactivex can be super cool & liberating in a lang like java or objc, but I don’t think it has a ton to offer clojure(script))
fair enough, I just thought it was an interesting idea and wanted to see if anybody had tried it out haha
you could probably do most of the things rxjs does purely with core.async though right?
Thanks @mikeb, @enyert, @nkraft. I'll try accessing the regular repl via ctrl+enter later today 👍
arnt these two equivilant? (into  (comp (map #(+ 2 %)) (filter odd?)) [1 2 3 4]) ((comp (partial map #(+ 2 %)) (partial filter odd?)) [1 2 3 4])
@val_waeselynck: how i could include a different external java class to my clojure project
@shaun-mahood: ahh, so, right now my set up is just clojurescript, do I need to set it up with
compojure? And then I'd compile down the
cljs files, and push up, to a heroku clojure-only dyno, an uberjar that uses
ring or something like that to serve the static
.js files that were compiled on my computer. So heroku never deals with
cljs files, but mostly just an uberjar, and some static js/html/css? Is that right?
@josh.freckleton: I don't think you need to deal with either ring or compojure or anything else. I found instructions for getting Heroku to host a static site on https://gist.github.com/wh1tney/2ad13aa5fbdd83f6a489 but I've never used Heroku so I have no idea if they'll work or not. Otherwise, it's pretty easy to set up a really simple compojure site if you would rather host using that.
Yes, but not with advanced optimizations yet, granted I haven't spent a lot of time on it yet so I won't spam with questions... yet 😉 ... I checked out your link, and it looks like it uses PHP to host things, so I could do that, or Node, or, compojure, maybe I should keep it simple and go the PHP route for starters...