chlorine-clover

About Chlorine for Atom and Clover for VS Code: https://atom.io/packages/chlorine and https://marketplace.visualstudio.com/items?itemName=mauricioszabo.clover
kingmob 2019-07-21T20:59:40.002800Z

Perhaps this is a dumb question, but I can’t seem to evaluate anything directly from Chlorine’s socket REPL. I can evaluate forms from the editor just fine, but after typing something like (inc 1), I can’t seem to figure out any way to evaluate it. If I try the Chlorine evaluation commands in the REPL, I get errors about getCursorBufferPosition. Am I way off here?

seancorfield 2019-07-21T21:32:43.003500Z

@kingmob Chlorine's REPL panel is not intended for input, just for display.

kingmob 2019-07-21T21:33:06.004400Z

Ahh, so I’d have to use the shell REPL or REBL then?

seancorfield 2019-07-21T21:33:34.005100Z

My workflow is to never type things into a REPL anyway, while I'm working. I put a (comment ...) form in my source (or test) file and write exploratory code there, evaluating it as I write it, into the REPL.

kingmob 2019-07-21T21:34:12.005300Z

That’s unfortunately not my workflow 🙂

kingmob 2019-07-21T21:35:06.006100Z

Thanks for answering, though. I thought I was taking crazy pills for a hot minute.

seancorfield 2019-07-21T21:35:17.006400Z

Stu Halloway says folks should not type into the REPL directly too...

kingmob 2019-07-21T21:37:54.007700Z

Hmm. Still, there’s things I sometimes want to test without jumping to a (comment) section, nor that I’m willing to add to the file (semi-)permanently. I’ve seen (comment) sections become misleadingly out-of-date.

kingmob 2019-07-21T21:38:58.008500Z

Perhaps more REBL will reduce the need to type at the REPL, but it still seems like an unnecessary restriction to me, especially in exploratory mode.

kingmob 2019-07-21T21:39:22.008800Z

Oh well. Thx again for responding!

seancorfield 2019-07-21T21:57:17.009700Z

If you end up using the same setup as me -- with REBL and Chlorine -- then you do have the REBL window to type exploratory stuff into, and it maintains a history etc.

kingmob 2019-07-21T22:02:08.012200Z

Yeah, I’ve needed to set aside some time to incorporate REBL more thoroughly. Maybe <4% of my REPL usage isn’t from the editor, but when I think about it, a majority of that is examining data, which REBL should be great at.

2019-07-21T22:25:47.012700Z

You can also create separate files for expressions to evaluate, without "regular" project source code in the same file.

2019-07-21T22:26:22.013300Z

Sure, some of it can easily get out of date, but maybe it is psychologically easier to accept that fact if it isn't in a source file?

2019-07-21T22:27:06.013700Z

I recently created a file named "doc/scratch1.clj" in one of my projects for that purpose

seancorfield 2019-07-21T22:30:45.014800Z

Doesn't Stu do something like that? With a new scratch file for every month? And my colleague does something similar.

2019-07-21T22:49:57.015200Z

I believe I did copy the idea from something Stu Halloway mentioned in one of his recent talks.