Ronald Chen·Mar 8, 2018The day iOS replaces macOS is closer than you thinkIf you’ve been following the development of iOS, you’ll notice Apple keeps adding more features to make iOS more like a full operating…A response icon2A response icon2
Ronald Chen·Feb 22, 2018The hard error handling case made easy with async/awaitLet me show a surprisingly trivial looking async/await code which is actually hard to implement correctly with Promises.A response icon4A response icon4
Ronald Chen·Jan 29, 2018Keep component hierarchies flatA deep component hierarchy is difficult to understand and makes people reach for tools like Redux too soon. A flat component structure…
Ronald Chen·Jul 29, 2017Simple Case Pattern Matching In Pure ES2015While JavaScript does not have full pattern matching faculties, we can leverage ES2105 to implement the most basic and useful form.
Ronald Chen·May 5, 2017Destructuring Nested ObjectsI love destructuring. However, as I use it more, I am running into some odd gotchas.A response icon14A response icon14
Ronald Chen·Apr 21, 2017Simple proposal to add pattern matching to JavascriptThere are other pattern matching proposals out there, but IMO they are all terrible. They all have the same flaw of trying to add too much…
Ronald Chen·Jan 14, 2016Factory Function Pattern In-DepthThere are plenty great introductions to Factory Functions, but few describe the details of the pattern. If you don’t know what a Factory…A response icon19A response icon19
Ronald Chen·Jan 2, 2016How to escape Promise HellUnlike Callback Hell, Promise Hell is accidentally self inflicted. Promise Hell is just a lack a familiarity with Promises.A response icon25A response icon25
Ronald Chen·Nov 3, 2015Experiments segregating RFID cardsFaregates are coming to the Vancouver transit system. It comes in the form of a RFID card where one need to tap in/out.