3 ms·
I find to hack on clojurescript on node easier. Also it is easier and starts faster. But many parts of code are platform agnostic. I think it would be cool to
by kloud 9y ago
I find to hack on clojurescript on node easier. Also it is easier and starts faster.
But many parts of code are platform agnostic. I think it would be cool to eventually port the system specific parts to java apis and have both.
- lvh 9y agoWhat does your development environment look like? Every time I bail on a Cljs project it's because tooling is worse than for Clj.
- emidln 9y agoI use Spacemacs and have the following in inside my .spacemacs in the dotspacemacs/user-config functions: (require 'cider) (setq cider-cljs-lein-repl "(do (require 'figwheel-sidecar.repl-api) (figwheel-sidecar.repl-api/start-figwheel!) (figwheel-sidecar.repl-api/cljs-repl))") Then I just use figwheel to manage my cljs projects (I think this is the default now for reagent and luminus projects, it's also the default for re-natal for react native development in cljs). Life is pretty good and I have a nice debugger via Chrome. I prefer the debugger in CIDER (which doesn't work for cljs) to the debugger in Chrome, but the Chrome debugger is decent (and it's what I'd have in Javascript anyway). There is a nice chrome extension to help with clojurescript eval in the browser/debugger called dirac: https://github.com/binaryage/dirac https://github.com/binaryage/dirac
- lvh 9y agoWhoa, awesome. That was super helpful. I'm also a spacemacs user, but my pain was mostly for non-browser Cljs. I should have specified, you're right: developing browser Cljs is pleasant because of figwheel :)
- emidln 9y agoI also use figwheel for Android development via React Native. It seems to work pretty well.
- achikin 9y agoThis configuration is tremendously slow for me for some reason. Looks like Chrome put a tab "to sleep" when it loses focus. That leads to long freezes while you type anything in cljs file. Am I missing anything?