Perspectives
Latest writing
-
Java: Variables are Always Passed by Copy
I am learning Java. One important concept to understand is whether function arguments are passed by copy or by reference.
Read more -
3 Reasons to Love React
Recorded at the Hong Kong JavaScript and Node.js meetup on March 3, 2015:
Read more -
Common npm Permission Issues
If you are using a Mac and have installed Node.js via a pkg file downloaded from the official website, you are likely to encounter the following error message when you try to…
Read more -
Sublime Text 3: Using the OS X Command Line
Sublime Text 3 includes a command line tool, subl. Unfortunately, this tool doesn't work right out of the box after you've installed the editor on OS X Yosemite.
Read more -
12 Things You Need To Know About ECMAScript 6
ECMAScript 6 is the next version of the JavaScript standard.\
Read more -
My Review of Hack Reactor Remote Beta
I enrolled in the Hack Reactor Remote Beta as part of the second cohort in Hong Kong to improve my technical skills in JavaScript.
Read more -
Beer Recommendation Engine Using PredictionIO
We all love beer. Yet, today we are faced with an unprecedented variety of options, leaving us overwhelmed and indecisive: What should we drink next?
Read more -
AngularUI Handling Mouseover Events for Google Maps Markers
It took me a while to figure this out, so I thought the issue deserved its own blog post. I found myself confused when trying to hook up mouseover events with Google Map markers…
Read more -
Hacking New Year's Resolutions for 2015
As the year draws to a close and a new one begins on January 1st, many people set New Year's resolutions. However, 92% of New Year's resolutions ultimately fail. Why is that?
Read more -
Angular.js Factory Handling $http Asynchronously
When I was using the $http service to get data from a remote API, the code snippet below was unable to return data back to the controller.
Read more -
Setting Up a Proxy Server with Express
I am working on a project that uses BreweryDB. While trying to load some data from the API, I encountered a problem: the API doesn't support JSONP. This leads to a CORS issue…
Read more -
Angular UI Bootstrap Opening the First Accordion with ng-repeat
I was using the accordion directive in Angular UI Bootstrap version 0.1.2. On the demo page, there's an example showing how to open the first accordion group by default:
Read more