Fork me on GitHub
#clojurescript
<
2019-01-02
>
Remi05:01:46

Backend dev here. I’ve been meaning to look into Clojure for a while but haven’t found the right opportunity yet. I am working on a side project; the backend is in Erlang, and I’ve never had any experience with front-end dev. So I was wondering: can I kill two birds with one stone here, learn Clojure and dev the front end? Is ClojureScript a good choice for someone like me starting a project from scratch, or are there better alternatives?

johanatan06:01:46

@remilouf CLJS is a great choice. I'd recommend figwheel, devcards & reagent as a starting point.

johanatan06:01:30

[there may be templates/sample projects with this combination of things which you can clone as a starting point. it's been a while since I started a new one].

jsa-aerial06:01:05

@remilouf I would add re-com to those. Having put all of those together, I can definitely vouch that the results are amazingly good.

👍 10
b412:01:39

hello ~ somebody know how to inject(or contain?) into my webpage? i think repl is very useful to manipulate data.

Remi14:01:19

@johanatan @jsa-aerial Thanks for the pointers! I’ll give CLJS a try :)

johanatan20:01:47

@jsa-aerial @remilouf ah, yep. re-com is good too.

cjsauer20:01:10

I'm currently trying to dynamically generate clojure.spec definitions, but am running into cljs.core/*eval* not bound...my strategy in a nutshell has been:

(eval `(s/def ::my-spec ~some-form))
which I realize is a bit of a hack, but I haven't found a better way to use spec in a more programmatic fashion.

cjsauer20:01:35

I'm sure there is some fundamental reason that this won't work in cljs...

cjsauer20:01:19

This is painfully obvious in hindsight 😅

cjsauer21:01:48

I've resorted to writing clojure.spec-generating macros to solve this. Eliminates the need for eval.

alex-eberts23:01:01

Happy new year to everyone! Apologies if this has been asked and answered:

alex-eberts23:01:03

Does anyone know how to configure the built-in MacOS firewall to permanently accept incoming connections? I've added the version of java to the firewall but I'm stick stuck clicking "allow" each time I restart the server.