Open in app
Home
Notifications
Lists
Stories

Write
Michel Belleville
Michel Belleville

Home

Published in Wat, the Elm-ist

·Mar 22

My Little Functor

Mapping is magic! — wat> Who’s a good little functor? That’s a good little functor… me> Er… what are you doing exactly? wat> I’m training my functor. me> Is that a euphemism for some weird ducky thing involving functional programming? wat> Yes. You can watch if you want 😉… me> Don’t mind me if…

Elm

5 min read

My Little Functor
My Little Functor

Published in Wat, the Elm-ist

·May 10, 2020

The Purple People Parser

Where we purposefully parse probably purple people. — me> Now what? wat> Yes 😃 me> Not you. I mean, now we know a Parser is a Functor, an Applicative and a Monad… what do we do with one? 😅 wat> We parse, I guess? me> But how? 😅 😅 wat> Here, have a look at this: run …

Elm

6 min read

The Purple People Parser
The Purple People Parser

Published in Wat, the Elm-ist

·May 2, 2020

Monads, what are they good for?

Where we put it all together to discover a new lib. — me> So… what’s all this good for anyways? 😩 wat> What is “all this” you speak of? 🤨 me> Functors, Monads, Applicatives… what’s the point? wat> Ooooh, someone is moody today. 😅 me> I mean, I know Functors are things you can map on, Monads things you can andThen on…

Elm

4 min read

Monads, what are they good for?
Monads, what are they good for?

Published in Wat, the Elm-ist

·Apr 25, 2020

The Art of Wrapping Functions

Where we learn that andMap is not just for Decoders — wat> So, that was… long. And boring. Veeery veeery boring. me> 😅 wat> You left me to rot in a box! Again! 😡 me> But… 👉👈 I was busy with work and getting used to my ergodox layout… and tuning the layout… and getting used to the new layout, and… …

Elm

5 min read

The Art of Wrapping Functions
The Art of Wrapping Functions

Published in Wat, the Elm-ist

·Nov 25, 2019

One field too many

Sometimes you can’t find a mapN with a high enough N — me> Aaaaargh, not again! wat> I hate the sound of frustration in the morning. What’s wrong? me> What’s wrong? I’ll tell you what’s wrong! That is what’s wrong: type alias Person = { firstName: String , lastName: String , age: Int…

Programming

5 min read

One field too many
One field too many

Published in Wat, the Elm-ist

·Aug 27, 2019

The M-word

In which we map, we concat, andThen we concatMap — me> So… we’ve seen a lot of these monads you’ve been telling me about… wat> Looks like someone is ready to generalize 😉 me> Frankly I’m not sure… 😅 but let’s go ahead and see where it leads us, my rubbery friend. wat> Let’s. And to begin with, can you…

Functional Programming

6 min read

The M-word
The M-word

Published in Wat, the Elm-ist

·Aug 3, 2019

Juicing JSON, andThen some

A Decoder is like a box of future data. You never know what you’re gonna get. — me> Back from vacations 😃 where’s my favorite flat-beaked know-it-all? wat> Just where you left it. My vacations were nice by the way. It’s calm here without the keyboard clacking. me> As if I know you use my rig when I’m not here to watch those kinky videos on Monads…

Functional Programming

6 min read

Juicing JSON, andThen some
Juicing JSON, andThen some

Published in Wat, the Elm-ist

·Jul 5, 2019

Fleecing JSON

Where we extract that juicy functionally pure data out of messy JSON strings — me> Wat, I have a problem… wat> Do you ever? 😏 What’s the matter? me> I have this JSON file with data that I want to read… wat> This sounds like a job for the Json.Decode library!🦸And more specifically Json.Decode.decodeString: decodeString : Decoder a -> String -> Result Error a …

Elm

5 min read

Fleecing JSON
Fleecing JSON

Published in Wat, the Elm-ist

·Jun 11, 2019

Generator-ception

Where we andThen a Generator inside a Generator — me> So, Random has an andThen function… 😄 wat> That it does 😉 would you like to know more? me> Sure. Last time we saw andThen it was for Maybe and Result, it allowed us to access what was kept inside a "successful" value of a Maybe or a Result…

Functional Programming

4 min read

Generator-ception
Generator-ception

Published in Wat, the Elm-ist

·Apr 23, 2019

Map to the Future

Where we make random stuff with a Generator, and work in the future — me> So… what if I wanted to get a random value… wat> Just input the time coordinates and accelerate to 88 miles per hour… me> I want to get a random *value* not a random *answer* 😠 wat> It kinda wasn’t. Thing is, Elm can’t give you a random value. …

Elm

6 min read

Map to the Future
Map to the Future
Michel Belleville

Michel Belleville

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable