Understanding Specter: Clojure's missing piece
Channel:Misophistful · Length:40:30 · Published:2017-10-06 · Views:11540
Summary
A screencast tutorial on Specter, a Clojure library for navigating and transforming nested data structures declaratively, demonstrated in a REPL.
Why HN recommends it
Pointed to as a short, clear demonstration of how Specter simplifies manipulating complex nested data.
I highly recommend watching this short video to see how it works. — HN, 2017
Subtitles (excerpt)
hi everyone and welcome to a screencast about understanding Spectre Spectre is a data manipulation library for closure written by Nathan Mars now I want to take a little bit of your time to explain why it's one of my favorite closure libraries why I use it all the time and even why I think it's one of the best pieces of software engineering ever produced B claims huh so let's dig in and see if I'm right so let's start by explaining what I'm going to be talking about during this screencast I'm gonna try and cover three main areas first I'm gonna try and explain why Spectre why should you be interested in this library then I'm gonna try and explain how it works based on the understandings that I have and then I'm gonna go through a few examples of what you can do with it and why it's so powerful I choose start by saying that this this screencast is aimed mainly at people who already understand closure and presumably haven't been delving too deeply into Spectre yet if your respect to expert there's a chance that you won't learn too much new however if you haven't really used back to before or you've just looked briefly into it there's a big chance that you might find something new here for you and if you're brand new to
On Hacker News
Explicit recursion is rarely used in FP, and it's often a code smell. It's almost always better to use higher order functions instead. The advantage is that you can implement a particular transformation once, check for edge cases, and reuse it from there on. You also end up with declarative code that talks about what it's doing without distracting your with implementation details. Clojure has a r… — yogthos, 2017-10
> You might just be using a completely different underlying data structure than expected, depending on which operations you've performed. I haven't had the pleasure of using Clojure in production, but I'm somewhat obsessed with the language and follow it fairly closely. Someone on r/Clojure[1] mentioned Specter[2] with a link to this video[3]. One of the first things the video covers is how the l… — kgwxd, 2021-03
(assoc-in foo ["bar" "alice" "bob"] 12) Of course, in clojure you mostly use :keywords instead "strings" as keys which has a ton of benefits. There's also specter if want something more powerful at the cost of an additional lib. [LINK] [VIDEO] — Scarbutt, 2019-06
Related videos
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Lecture 1A: Overview and Introduction to Lisp · MIT OpenCourseWare · 1:12:55
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51
- Erlang Factory 2014 - That's 'Billion' with a 'B': Scaling to the Next Level at WhatsApp · Erlang Solutions · 49:15
- Hammock Driven Development - Rich Hickey · ClojureTV · 39:49
- Tim Ewald - Clojure: Programming with Hand Tools · ClojureTV · 58:39