Sunday, September 9, 2018

How can you work with a JSON value if you know nothing about it?

How can you work with a JSON value if you know nothing about it?

I have talked about the difficulty of typing certain JSON values coming from some APIs. The JSON is just very complicated. When I do that, I often get this question “how can you work with a JSON value if you know nothing about it?” The question is rhetorical.

Compositional zooming for StateT and ReaderT using lens

Compositional zooming for StateT and ReaderT using lens

Tuesday, 04 September 2018, by . Filed under coding. Consider writing updates in a state monad where the state contains deeply nested structures.

Wednesday, August 1, 2018

Our Use of the Haskell and Elm Programming Languages

Our Use of the Haskell and Elm Programming Languages

Over the last year, our team has built a beautiful and advanced Smart Cities system using functional languages. I wrote this document to explain our technology choices to stakeholders and partners.

Compose Tetris

Compose Tetris

So let’s talk composition. As programmers we see composition constantly. It’s there even if you’re not aware. If we have two functions f and g and we apply them one after the other, we’re doing function composition. It’s fun to note that composition is associative.

A Practical Introduction to Finger Trees

A Practical Introduction to Finger Trees

Finger Trees are definitely the coolest data structure I was never taught in school. The gist of Finger Trees is that they represent sequences of elements where the elements also have a measurable 'descriptor' of some kind.

Sunday, June 10, 2018

Appboy/appboy-fb-messenger-bot

Appboy/appboy-fb-messenger-bot

Building a Messenger bot for Appboy About Messenger bots Introduction On April 12, 2016, Facebook launched its Messenger Platform, intended to provide support for bots, or automated messaging interfaces capable of delivering ordering updates, customer service and executing business functions automat

Monday, June 4, 2018

Video Game Physics Tutorial - Part III: Constrained Rigid Body Simulation

Video Game Physics Tutorial - Part III: Constrained Rigid Body Simulation

This is Part III of our three-part series on video game physics. For the rest of this series, see: In Part I of this series, we saw how the free motion of rigid bodies can be simulated. In Part II, we saw how to make bodies aware of each other through collision and proximity tests.

How can you work with a JSON value if you know nothing about it?

I have talked about the difficulty of typing certain JSON values coming from some APIs. The JSON is just very complicated. When I do that,...