How to typescript: Representing hierarchical state with tuples

2020-09-20For our latest feature in ahead, messages , the UI is in one of three major states: A couple of iterations and additions later, the mode in…

How to typescript in react: I can haz better component states!

2020-06-14After a crazy long hiatus in getting something written I would like to give you an update on how Typescript and react is being used while…

Migrating data while being 'always on'

2019-07-14TL; DR; - Software systems evolve. Some software system should be 'always-on'. These two constraints sometimes clash considerably. The…

Extracting useful types from a mapped action creator

2019-06-21The context: typescript, redux, react. You may or may not know that if you dispatch a thunk (those action creators that return a function…

Using typed action creators with react's useReducer hook

2019-03-12With the advent of react hooks we now have very fast access to CQRS in our UI - dispatch actions ( Command ) and create a new read state…

Use react's context to display an error message somewhere else

2019-03-11Honestly, the end result seems so trivial that I almost couldn't be bothered to write it up. Then again, it shouldn't take too much time to…

Innovation vs Improvement

2019-03-03A few years ago, being an "enterprise developer" , I attended a meeting about the IT strategy up to ⌚2020. Here we heard about "innovating…

Writing azure functions with typescript

2019-02-24Even though there is some prior art to this , I wanted to document my own findings when wanting to code an azure function in TypeScript…

Typescript type shenanigans 2: specify at least one property

2019-02-03Here is a situation I came across recently - Some part of the system specified a qualified "link" to a page with the following type…

XState - a Typescript state machine with a lot of features

2019-01-30This post was sparked by a tweet from Ryan Florence... It has been quite some time ago since I last looked at defining a state machine…