A joy of working with JSON using PureScript

Ғылым және технология

Hate watching videos? Check out the complementary article, which covers the same content: dev.to/zelenya/a-joy-of-worki...
I’ve been working as a Fullstack engineer for a while, and it feels like we're shuffling JSON most of the coding time.
I want to cover how annoying it is to deal with JSON using JavaScript (and other languages) and share how joyful it is to work with JSON using PureScript.
💡 Links, recaps, and cheat sheets:
* Simple JSON transformation with PureScript: impurepics.com/posts/2019-07-...
* yoga-json: github.com/rowtype-yoga/pures...
#fp #purescript #typescript #javascript
Subscribe to Impure Pics: bit.ly/impure-youtube
More Impure Pics
🐣 / impurepics
📦 impurepics.com
👕 merch.impurepics.com
Functional Alphabet book
📗 Softcover: bit.ly/fp-abc-soft-cover
📘 Hardcover: bit.ly/fp-abc-hard-cover
Watch more Impure Pics
• Debunking Haskell Myth...
About Impure Pics
FP Advocat. Distilling functional programming for the good of all
Get in touch: zelenya.com
0:00 Introduction
0:22 Problems when working with JSON using JavaScript
01:47 Problems when working with JSON using PureScript
02:30 Working with JSON using PureScript
05:31 JSON libraries
07:46 Working with JSON
10:06 Conclusion

Пікірлер: 7

  • @coder_one
    @coder_one6 ай бұрын

    Where to learn PureScript from if you have zero understanding of functional programming (knowledge of TyesScript and React)?

  • @impurepics

    @impurepics

    6 ай бұрын

    I'd recommend the free PureScript By Example book book.purescript.org/ Alternatively, check out Functional Programming Made Easier (uses PureScript) leanpub.com/fp-made-easier If you're not into books, see PureScript docs github.com/purescript/documentation I also have a video about this (High-level overview of PureScript) with links to a few other resources kzread.info/dash/bejne/eYiNydWRhMuXYLQ.html.

  • @mistn
    @mistn8 ай бұрын

    Thanks! It really helps to see some one working with the code. If you have the time the little examples of implementation are very helpful. in any case, Thank You!!

  • @snatvb
    @snatvb5 ай бұрын

    wow, looks great

  • @alurma
    @alurma Жыл бұрын

    Thanks!

  • @SteinGauslaaStrindhaug
    @SteinGauslaaStrindhaug3 ай бұрын

    2:50 But how do you deal with null's in a real life json from the server? (which in my experience invariably sometimes include nulls even though it's not supposed to because it comes from some other backend system, which fetches from some other backend system that is run by a different company entirely so there's no hope getting them to change anything, lol)

  • @impurepics

    @impurepics

    3 ай бұрын

    The simplest thing is to wrap everything in Maybe (which is good enough 80-90% of the time). when that is not enough, there is another more ergonomic and interesting way, I cover it in this video: kzread.info/dash/bejne/oYZ227Wsn8mqhKQ.html

Келесі