shinzui
Joined 18 years ago
Karma
83
Submissions
30
Member since
Jan 21
[ my public key: https://keybase.io/shinzui; my proof: https://keybase.io/shinzui/sigs/F-TdWfNm9Eg4blHlO0fomSW4HIly88NoktXZkymijX0 ]
View on Hacker NewsJoined 18 years ago
Optics don't just save you a few keystrokes. Instead, they make tedious code that you would never write trivial. And more importantly, they're composable. So it's impossible to appreciate their effectiveness without using them on a real-world app. For example, I've worked in an app with three layers, each with its record types, and without the lens library, the pain of converting between records would have been insufferable. Instead, most developers would couple the three layers together to avoid the problem, which makes the codebase brittle.
https://github.com/shinzui/dotfiles.nix/blob/master/modules/...