3 ms·
What's wrong with the tooling? My current CLJS setup is boot with boot-cljs, boot-reload and boot-cljs-repl. They're configured using normal Clojure code in a
by jeremiep 10y ago
What's wrong with the tooling?
My current CLJS setup is boot with boot-cljs, boot-reload and boot-cljs-repl. They're configured using normal Clojure code in a build.boot file and the entry points are configured in live-reloadable *.edn files.
That setup is simpler and far more powerful than anything else I've seen in other languages.
I was using leiningen previously but boot proved to be more powerful for less work in my case.
https://github.com/boot-clj/boot https://github.com/boot-clj/boot
https://github.com/boot-clj/boot-cljs https://github.com/boot-clj/boot-cljs
https://github.com/adzerk-oss/boot-reload https://github.com/adzerk-oss/boot-reload
https://github.com/adzerk-oss/boot-cljs-repl https://github.com/adzerk-oss/boot-cljs-repl
- smnplk 10y agoI still need to try boot. So for clojurescript, I don't need figwheel, I can just use boot-reload and coot-cljs-repl ?
- jeremiep 10y agoYeah, and their configuration is mostly automatic; running the tasks starts their respective server and injects the client-side code to connect to them in the build. boot-reload will hot reload new code on file changes, and optionally run a client-side hook. I use it to remount my react views. boot-cljs-repl provides a REPL into the browser you can use from the cmd line or directly in your editor. I'm using it with emacs-cider, but there are clients for most major editors.
- WillPostForFood 10y agoWhat are you using to edit? I don't think the any one piece of the tooling for Clojure or ClojureScript is a problem, but getting it all going together for people who aren't familiar with the ecosystem and terminology (possibly including Java, Lisp, Emacs, functional programming, and Clojure itself) can be an obstacle. Even by your choice of boot over lein, means a majority of beginner tutorials are going to have a gap because they tend to focus on Leiningen.
- yogthos 10y agoI highly recommend using Cursive https://cursive-ide.com/ https://cursive-ide.com/ for editing. It's an excellent IDE with lots of great features. For as simple editor Atom is a good choice as well http://yogthos.net/posts/2016-10-15-AtomWithLuminus.html http://yogthos.net/posts/2016-10-15-AtomWithLuminus.html I maintain Luminus http://www.luminusweb.net/docs http://www.luminusweb.net/docs specifically to make it easier for people to get started. For example, if you wanted to make a new web app with Clojure you could do: lein new luminus myapp cd myapp lein run That's all there is to it. I would recommend using Leiningen, just because it is more popular. If you're starting out, then you don't really need to change that much stuff in the project file aside from adding dependencies.
- WillPostForFood 10y agoBut to my point about friction in Clojure tooling, you can't just download Cursive, run it, and try Clojure. You have to download and install Java, Leiningen, IntelliJ, get a Cursive license, then install the Cursive plug in, create a project configure a REPL (local or remote?). None of that is a big problem, but cumulatively, all these little points of friction deter beginners. And thank you for your work in the community. Luminus is great, and I Macchiato looks really nice as well.
- yogthos 10y agoThanks, always good to hear these things are useful. As I pointed out in the original comment, you don't really have to use Cursive if you're starting out. Cursive is great for working on serious projects, but it's certainly not a requirement for trying Clojure. Aside from Atom, you also have Light Table, VS Code, Vim, Emacs, and Eclipse. Chances are a lot of people would be using at least one of these tools. As far as having to download the JVM and Leiningen, it's not really different than what you'd have to do for Python, Ruby, or Node.js. So, I don't think the situation for Clojure is really any worse than most languages. That said, I think that Nightcoders could remove any friction in starting with the language.