React and Finite State Machines

Finite state machines, generally speaking, are a computation model used to describe a system in terms of the transitions between it’s states. They make it possible to is really easy to visualize your computational model as a graph and make sure that your application isn’t left with unhandled cases or illegal states. Warning: Read the wikipedia page on Finite […]

Read More React and Finite State Machines

Everything you wanted to know about Sum Types (but were almost afraid to ask)

A lot of messy JavaScript has to do with loose typing, invalid values and the horrible chain of ternary expressions or — heaven forbid — if statements to handle them. With JavaScript, all functions run on the concept of “pretend what you are getting is what you asked for”. If the value is not valid for the kind of […]

Read More Everything you wanted to know about Sum Types (but were almost afraid to ask)