This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (94)
- # aws (6)
- # beginners (8)
- # boot (303)
- # cider (5)
- # cljsrn (25)
- # clojure (82)
- # clojure-art (28)
- # clojure-chicago (2)
- # clojure-dev (2)
- # clojure-france (1)
- # clojure-japan (1)
- # clojure-my (1)
- # clojure-russia (78)
- # clojurescript (21)
- # clojurex (3)
- # dirac (1)
- # events (3)
- # funcool (5)
- # hoplon (12)
- # jobs (1)
- # ldnclj (2)
- # off-topic (49)
- # om (207)
- # proton (3)
- # re-frame (24)
- # reagent (45)
- # spacemacs (1)
- # yada (48)
Clojure newbie here, what is the preferred flow for development? Where I'm from its write, compile, verify, debug. :P
For example with Cursive (or Emacs, or somesuch) you can run a REPL in the background, write the code in the editor and then sync the code with REPL
Most people say they don't really debug Clojure, but I for one am really grateful for Cursive's debugger support - I tend to use a debugger in Clojure quite often and it's a Godsend.
I'm not sure, that something that came to mind. That is, say I'm experimenting firsthand in the REPL and I get things right. Is it possible to write the inputs to source? Copy-pasting from terminal would be an obvious way.
Oh you mean something in reverse to the above? So you can sync a function you wrote in the REPL back to the file?
But in general you can either copy&paste what you wrote into the REPL, or try to learn to write the code in the file (since with editor support it's cheap to sync that into REPL) and only do the testing in the REPL.
Ah, I don't really use any plugins with REPL TBH. What Cursive provides me is entirely satisfactory
Debugger (that can also step into Java if need be). That is basically a killer feature right there.
Well, there's not much in way of "type errors" you can statically verify in Clojure, but yeah - obvious things like arity, missing symbols and such have their tooltips.
I tried to get into emacs and was so overwhelmed with the stuff you have to do to setup, I stayed with VIm
have you tried spacemacs? I’ve been using it for a while. As a vim->emacs convert it is not only the best vim-alike experience you can have in emacs, but also the best editor/ide setup I’ve ever experienced.
I'd also advise cursive. No need to install anything but the cursive plugin and you are ready to go (of course you need leiningen and a JDK, but I take that as given).
@debug :wrt to flow, have a look at this https://www.youtube.com/watch?v=Tb823aqgX_0&list=PLZdCLR02grLrl5ie970A24kvti21hGiOf&index=13, its a very good description/presentation/discussion of what I think is a very important thing to grasp
@debug: wrt copy/paste repl/file stuff. Yes, copy and pasting from repl to file is done, but I tend not to use the repl directly so much as experiment in a file - which with any decent editor support, allows you to evaluate any expression, including individual expressions within a nested expression
As long as we are dumping out possible ide/editors for beginners, there is nightcode. One stop shop. A single jar that has build, dependency mgt, editing, interactive repl, multiple file buffers, full set of templates for graphics to web dev (including cljs), dbs to desktop apps, etc altogether. Just need JDK