Ronald ChenThe 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…Mar 8, 20182Mar 8, 20182
Ronald ChenThe 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.Feb 22, 20184Feb 22, 20184
Ronald ChenKeep component hierarchies flatA deep component hierarchy is difficult to understand and makes people reach for tools like Redux too soon. A flat component structure…Jan 29, 2018Jan 29, 2018
Ronald ChenSimple 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.Jul 29, 2017Jul 29, 2017
Ronald ChenDestructuring Nested ObjectsI love destructuring. However, as I use it more, I am running into some odd gotchas.May 5, 201714May 5, 201714
Ronald ChenSimple 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…Apr 21, 2017Apr 21, 2017
Ronald ChenFactory 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…Jan 14, 201619Jan 14, 201619
Ronald ChenHow to escape Promise HellUnlike Callback Hell, Promise Hell is accidentally self inflicted. Promise Hell is just a lack a familiarity with Promises.Jan 2, 201625Jan 2, 201625
Ronald ChenExperiments 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.Nov 3, 2015Nov 3, 2015