Fork me on GitHub
#off-topic
<
2020-01-30
>
sogaiu01:01:13

does anyone have notes / slides or other materials from @chrisoakman's conj 2018 unsession on tree-sitter (https://github.com/clojureconj/clojureconj2018/wiki/Unsessions#better-syntax-highlighting-with-tree-sitter) ? also, if there's already a channel where tree-sitter-ish stuff might be on-topic, please suggest 🙂

Alex Miller (Clojure team)03:01:12

there was a strange loop talk about it

sogaiu04:01:05

thanks, i've seen that one and iiuc oakmac's unsession may have specifically discussed his efforts on tree-sitter-clojure, which max's talk predates :)

sogaiu04:01:00

max's talk was much appreciated though :thumbsup:

jjttjj16:01:58

I've been starting to think about a data "query language" for time series to allow clients to request subsets of timeseries and calculations to be run on them. No idea if this is good or not. Any thoughts (while I keep thinking about this/experimenting) would be appreciated: https://gist.github.com/jjttjj/e63ba5a366961c314b40118edc548aed

p-himik16:01:29

Can't really say anything about the need for such a language or the language presented in the example itself, but I'd warn against using any metadata that's not truly necessary. It's very easy to lose it and have a hard time debugging the issue.

jjttjj16:01:02

gotcha, yeah i was debating replacing the meta with a slightly different structure

Ramon Rios17:01:33

Hello. I woud like to know wich clojure books would be good to have.

Ramon Rios17:01:59

Could some folks gives me some indications?

borkdude17:01:28

I liked The Joy of Clojure and Clojure Programming

adz5a17:01:03

I loved "clojure for the brave and true". "Joy of clojure" is really good also but more advanced

Michael J Dorian17:01:27

I liked the brave one as well!

adz5a17:01:55

Not really about clojure (but Scheme) but more about programming in general: Structure and Interpretation of computer programs.

seancorfield18:01:20

@ramon.rios "all of them" -- I know that's not helpful but...

seancorfield18:01:07

Clojure Programming is good but quite dated. I'd recommend Programming Clojure these days instead. Also Clojure Applied. And Getting Clojure and/or Living Clojure depending on where you are in your journey.

hindol20:01:52

Did you get a chance to look at the Brave and True book? Or do you not recommend it? I found it to be very good for beginners and maybe a little more experienced as well.

seancorfield20:01:56

Lots of people love the Brave and True book. I don't like the style of it, but that's subjective. And by the time it appeared, I'd been doing Clojure in production for almost four years so it wasn't really aimed at me. Also, I had switched from Emacs to Atom by that point I think so none of the Emacs stuff in B&T -- which is a whole section early on, I believe? -- wasn't relevant either.

seancorfield20:01:16

(and I don't actually think people should try to learn both Emacs and Clojure at the same time!)

hindol20:01:58

I agree, learning both can be overwhelming. Fortunately, I was familiar with Emacs already and CIDER's debugger is amazing.

seancorfield20:01:15

Meh, I don't like debuggers (and I never seem to need them). I don't think I've used a debugger much since I last used C++...

seancorfield20:01:40

(and I kind of grew up on Emacs decades ago, back when it was version 17/18 🙂 )

hindol20:01:17

Nowadays I use Calva which lacks a debugger. But when I started, CIDER really helped me understand what's happening. I used to trip a lot on sequences, like accidentally creating sequence of sequences instead of a flat, reducible sequence.

seancorfield20:01:46

I tend to build code up in small pieces via the REPL -- usually in a Rich Comment Form and evaling each form as I edit -- so errors like that would be caught early on, before I had an entire function that was being called.

👍 4
seancorfield18:01:21

I would avoid almost everything on Packt Publishing.

😂 8
👍 12
hindol20:01:58

@ramon.rios I am probably barely past the beginner stage and I mostly keep ClojureDocs open in one tab and use the source links liberally. The best documentation is always the source! What's wonderful about Clojure is, the code is VERY readable. It can be cryptic, but hey, it's 10 times less code. I would rather read 10 lines of complex code than 100 lines of easy code. Don't believe me? Open markdown-clj in one tab and flexmark-java in another. Which one do you get first?

seancorfield20:01:53

Re: docs and source -- the REPL can show you the docstring and source of any function and most editors have integrations for "view docs" and "view source" so I use those liberally while I'm coding (`ctrl-; d` and ctrl-; S respectively with Atom/Chlorine and my keymap from my atom-chlorine-setup repo).

sogaiu20:01:01

yes, also enjoying reborg's "clojure, the essential reference" meap -- very informative :thumbsup: