The Chief Pig Makeup Artist
and this is my blog where I write about my coding ideas. I will not be very thorough about them. I probably even won't test the code examples. It's ok to reach out if you find any mistakes.
Posts
-
Truthy/falsy
Why its a bad idea to do stuff like
if (myData) doSomething()
-
Empty arrays in JavaScript
[].isEmpty() // true
-
Endpoint Data Class
(work in progress...)
const user = new Endpoint("user/:id");
-
General Reducer Action Switch
Dispatch actions like
dispatch({ $set: { count: 1 } })
-
React Multiple Action Reducer
dispatch(action1, action2, action3, ...)