`filteredBy` is definitely a new favourite! `filtered` on its own is not to be forgotten.
I still get 'wow' moments from my lens-regex-pcre library sometimes; chrispenner.ca/posts/lens-re…
(also the lens interface is *faster* than the library it's wrapping...🙌)
biplate and partsOf usually get a "holy shit", indexed optics usually get a 'wow' moment once people understand what they're able to do.
The 'non' combinator makes certain annoying tasks absolutely trivial, other things like "transposeOf" are just fun 😄
Before I teach anyone lenses (and in the first chapter of @opticsbyexample) I always show off a few examples with biplate and other cool combinators just to get people excited about what's possible :)
I learnt it from your book and used it in my project to create a lens based virtual record field as an interface for computing an account balance that supports multiple currencies
The comprehensive guide to Lenses, Prisms and traversals @opticsbyexample just hit 750 happy readers! 3/4 of the way to the big 1k!
Anything stopping you from buying it? There's a great free sample and you can return it if you're not satisfied 😄
leanpub.com/optics-by-exampl…
Anyone want a free digital copy of @opticsbyexample to kickstart their understanding of lenses, traversals and prisms?
1. Retweet this
2. Follow me 😄
3. ...?
4. Profit!
I'll pick 3 winners later this week!
leanpub.com/optics-by-exampl…#Haskell
With books like @opticsbyexample coming up, lots of people want to rework old code to use lenses.
Watching a headset designer writing a project proposal last night as she accidentally coined the term for this: refractoring.
I’ve been able to get by with lenses and prisms but @chiroptical showed some traversals in his stream and they look really powerful. I’m excited to get to that chapter in the @opticsbyexample book.
Hey there digital authors! It's been MONTHS and @Luludotcom still hasn't resolved their issues, I *literally* can't sell my book on their system; so I'll be taking it elsewhere.
Any authors have recommendations for a new vendor to print physical copies of @opticsbyexample?
Optics actually influenced my design for my regex library to a point where I was able to be FASTER that the library I was wrapping; it really does lead to elegant and composable code 👍
chrispenner.ca/posts/lens-re…
I’ve been pretty slow in reading it, but there was a use-case the book pointed out that I thought was really useful. It was using lenses as computed properties!
Hey folks!
Have you read @opticsbyexample?
If so, how'd it go?
Maybe you have plans to read it, if that's the case; what would you hope to get from it?
#haskell#optics
It's not enough to "not be racist", we must be *anti*-racist.
In support of #BlackLivesMatter, for the rest of June, show me proof of donation to a #BLM cause (incl. bail & legal funds) and I'll send you a voucher to @opticsbyexample.
$30-$50 rec. donation (but give what you can)
They say they're still working on fixing things, so I'll continue to use them if they can get it all worked out 😄, but it will definitely affect my recommendation of them in the future.
For those who were wanting to purchase a physical copy of @opticsbyexample, @luludotcom recently did a site "redesign" which effectively deleted my project, wiped out all my discount links, and has caused many users to be unable to log in, so it may take a while to re-setup 😓