The power of lenses - Juhana Laurinharju

Поділитися
Вставка
  • Опубліковано 11 чер 2024
  • Ever had to access or modify deeply nested JSON documents in a typed language? Did it feel unnecessarily painful? There is a better way!
    Lenses allow you to conveniently navigate and modify nested data structures in a functional way. Clojure is also known for convenience when dealing with nested data. How do these compare? Let’s take a look at how the same things can be achieved using lenses. And while we’re at it, let’s also take a look at some other tricks that lenses can provide.
  • Наука та технологія

КОМЕНТАРІ • 6

  • @user-dn7qr7vs1h
    @user-dn7qr7vs1h 3 роки тому +4

    Damn, those visualitations are very good to get what optics do and even how to use it :o

  • @kostasgkoutis8534
    @kostasgkoutis8534 2 роки тому

    That was pure gold!

  • @leswine1582
    @leswine1582 8 місяців тому

    cool

  • @a0um
    @a0um Рік тому

    11:17 i suspect the Clojure function presented is not using the full power of the language, it’s analogous to Haskell without lenses.
    You can have the functional composition and data traversal capabilities of lenses also in Clojure, right?