Optics By Example (@opticsbyexample) header
Optics By Example (@opticsbyexample) profile picture

The lenses book for Haskell and other functional programming languages by @chrislpenner https://teapaw.org/t.co/HOXV9Vvkt5

Joined September 2019
Photo by Optics By Example (@opticsbyexample)Photo by Optics By Example (@opticsbyexample)Photo by Optics By Example (@opticsbyexample)Photo by Optics By Example (@opticsbyexample)
Optics By Example retweeted
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.
6
16
Optics By Example retweeted
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.
3
6
Optics By Example retweeted
Barry is working through examples from my book @opticsbyexample live on stream! It's fun to play along and see the thought process, come check it out!
2
9
Optics By Example retweeted
SALE! Optics By Example is 25% off for the next two weeks! The book is more polished than ever, so if you find yourself stuck at home for long periods of time, now's a great time to dive in. Includes a link to buy a hardcover copy effectively at-cost 🙂 leanpub.com/optics-by-exampl…
5
2
20
Mine has arrived @opticsbyexample . Beautiful 😎
Awesome. Ordered. Thank-you for your hard work and the generous discount!
1
2
Optics By Example retweeted
I believe that limited finances shouldn't ever be a barrier to anyone's education, so if for any reason you're unable to afford @opticsbyexample but still want to check it out, please DM me 😄 For those who can afford it, I really appreciate your support! leanpub.com/optics-by-exampl…
3
1
12
Optics By Example retweeted
Attention @opticsbyexample readers! Physical copies are available for those who own the digital copy! You can find the discount link in the book's release notes or the "Extras" of the book on your leanpub account. I'll have a purchase link available for the general public soon!
4
5
1
26
Optics By Example retweeted
Just ordered a physical proof copy of @opticsbyexample , so hopefully you'll be able to order a meatspace version to hold in your hands sometime within the next month or so! Reminder that anyone who owns the digital copy gets a discount on the physical copy, so no reason to wait!
1
2
16
Optics By Example retweeted
> Does “Record Update Syntax” spark joy? If not, thank it for its service and throw it away. - Marie Kondo via @opticsbyexample #Haskell
5
8
Optics By Example retweeted
Just launched 'lens-csv'; an optics library for manipulating and querying CSVs! It's a pretty natural operation and basically gives you a simple query and mutation language; effectively SQL for CSVs but as optics! github.com/ChrisPenner/lens-…
6
42
First #Haskell meetup for the year on Lenses. Thanks a lot to @nilenso for the venue. We looked at a bit at lens construction using lets-lens repo from data61 and usage examples of lenses from @opticsbyexample book.
4
17
Optics By Example retweeted
I have been reading @opticsbyexample and it has been a great joy! It taught me a lot. Now what.. papers? 🤔
2
3
Replying to @opticsbyexample
i must say, i'm enjoying reading it... kudos!
1
1
1
Optics By Example retweeted
To promote the release of @opticsbyexample, all day today I'll answer questions about the process of writing a technical book! Ask me about my process, the content, the tools I use, about @leanpub, etc! leanpub.com/optics-by-exampl…
2
6
14
Optics By Example retweeted
Whipped up a lensy CSV parser tonight! Turned out pretty nice I think; but error handling and inference could still use a smidge more work. github.com/ChrisPenner/lens-…
4
4
Optics By Example retweeted
Revisiting the design of my lensy regex package; Which of the following suits your fancy? Trying to go for the right mix of readability & ease of use, without too much magic. hackage.haskell.org/package/…
17%txt ^? regex [rx|t\w+|]
61%txt ^? [regex|t\w+|]
22%txt ^? [rx|t\w+|]
23 votes • Final results
1
1
1
Optics By Example retweeted
I am now a proud patron of @chrislpenner on @Patreon for his book "Optics By Example". If you (like me) had trouble in the past to make sense of functional optics then you should be his/her patron too: patreon.com/ChrisPenner?utm_…
1
6
11
Optics By Example retweeted
that feeling when you look in the lens documentation and discover there’s a function that does *exactly* what you want, but it’s also an infix operator with the name <<%= and you know that if you actually use it your coworkers are going to kill you
6
14
143