News for hackers. Stuff that matters.
Re:Learn ClojureScript in a Cloud IDE by jeremiep on Saturday January 14, 2017 @11:22AM (#13399073)
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-cljs

https://github.com/adzerk-oss/boot-reload

https://github.com/adzerk-oss/boot-cljs-repl

Re:Learn ClojureScript in a Cloud IDE by WillPostForFood on Saturday January 14, 2017 @11:34PM (#13402336)
What 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.
Re:Learn ClojureScript in a Cloud IDE by yogthos on Sunday January 15, 2017 @12:45AM (#13402556)
I highly recommend using Cursive 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

I maintain Luminus 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.

Re:Learn ClojureScript in a Cloud IDE by WillPostForFood on Sunday January 15, 2017 @03:55PM (#13406357)
But 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.

Re:Learn ClojureScript in a Cloud IDE by yogthos on Sunday January 15, 2017 @07:19PM (#13407394)
Thanks, 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.

Re:Learn ClojureScript in a Cloud IDE by WillPostForFood on Monday January 16, 2017 @12:27AM (#13408371)
I think it is a little harder to set up (compare to Ruby and Python, which are preinstalled on Macs), plus throw in the functional concepts,Lisp syntax, and Java errors. Together it makes for a bunch of small initial pain points that I am certain causes some people to drop out, which is frustrating because Clojure is awesome. DrRacket might be a good comparison for a more similar language with an easier initial ramp up.
Re:Learn ClojureScript in a Cloud IDE by smnplk on Saturday January 14, 2017 @08:13PM (#13401728)
I still need to try boot. So for clojurescript, I don't need figwheel, I can just use boot-reload and coot-cljs-repl ?
Re:Learn ClojureScript in a Cloud IDE by jeremiep on Saturday January 14, 2017 @10:07PM (#13402076)
Yeah, 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.