5 ms·
I've been slowly migrating my JavaScript code to clojurescript and I haven't wanted to touch JS since. Apart from requiring a build step to generate JS, clijure
by jrobn 13y ago
I've been slowly migrating my JavaScript code to clojurescript and I haven't wanted to touch JS since. Apart from requiring a build step to generate JS, clijurescript is the browser language I always wanted. JS seems like such a hack.
- jahewson 13y ago> JS seems like such a hack. That's not a good reason for advocating ClojureScript. Why not Dart? TypeScript? CoffeeScript? Tell me something good about core.async... Edit: Really, downvotes?
- danneu 13y agoYou're responding to: > Clojurescript is the browser language I always > wanted. JS seems like such a hack. You're getting downvoted for reading into someone's enthusiastic personal endorsement and then ending it with the tiring "Tell me something good about <thing I refuse to read or understand on my own time but I'll partake in discussion anyways>...". Start with Rob Pike's "Go Concurrency Patterns" (https://www.youtube.com/watch?v=f6kdp27TYZs https://www.youtube.com/watch?v=f6kdp27TYZs)
- mrbrowning 13y agoHave you settled on a good workflow for ClojureScript projects? cljsbuild at least lets you amortize JVM startup time with the auto mode, but the Write-Compile-Test loop (as Joel Spolsky calls it) still feels a little more sluggish than what I'm used to in other contexts.
- swannodette 13y agoThey need more work but I use browser REPL or Bodil Stokke's Node REPL http://github.com/bodil/cljs-noderepl http://github.com/bodil/cljs-noderepl if I need to do an intensive session of interactive coding without refreshing or waiting for recompiles. I contribute a bit to core.async now and it's definitely a goal to make sure that core.async works transparently whether you're coding against the browser or Node.
- ibdknox 13y agoYou get CLJS eval in Light Table :) Open a cljs file, open a browser, point it to a page that has the initial output of a leincljsbuild run, and press cmd+enter (or ctrl+enter) in your file.
- jrobn 13y agoI've been doing all my coding in LightTable and it has a decent CLJS repl.