Fork me on GitHub
#other-languages
<
2017-11-03
>
borkdude17:11:09

Is Specter Clojure or a “other language”? 😉 https://twitter.com/borkdude/status/926493766441226240

ghadi17:11:20

i absolutely prefer plain Clojure

borkdude17:11:21

In this case it seems to be faster too, although I would expect Specter to have performance benefits

roberto17:11:22

I tried Specter, and found it difficult to learn and use. It wasn’t as intuitive when I tried to use vs when I saw the demo presentation

tbaldridge19:11:59

Yeah, I have to agree with @ghadi, and Alex Miller's version on the gist is the cleanest of all the approaches. That's the problem with DSLs: if you don't know the DSL, the code is really hard to read.

tbaldridge19:11:46

And as someone who routinely is asked to take a look at 5000loc clojure files and "figure out how it could be improved", I really hope this style of coding doesn't become more common.

tbaldridge19:11:13

That being said, I wish there was a way via something like tools.analyzer to mash a bunch of get-ins and update-ins together, where common sub-paths of the paths could be traversed once reducing the garbage created via multiple edits.

tbaldridge19:11:39

That way I could write "normal" clojure code, but still get the better performace/reduced garbage.

fellshard22:11:23

I get Specter, but it feels very visual, and could really use some visual aids similar to those used in understanding Rx abstractions.

fellshard22:11:03

Highlight or 'glow' each selected element, and show transitions between each sequential navigation

borkdude22:11:39

Oh cool, I just looked at the comment

borkdude22:11:55

I’ve got mixed feelings about this. Takes me quite a while to learn the DSL and to finally come up with what I would write in vanilla Clojure in a couple of minutes. Seems harder to maintain than vanilla Clojure.

fellshard23:11:10

Things that make me grieve for the 'industry standards' ™️