Power of Transformers (not these robots ↑)

About a year ago, I was tasked to write an API for a mobile application for the Dean of Students office. While the main functionalities were finalized, the app’s development was still in its infancy. This means that the API’s output and how it would be best-suited for the app’s consumption was still very much undefined. We had to use transformers to separate the API’s logic layer from its presentation....

January 5, 2016 · 2 min · 309 words · Hao Luo

Thoughts on Card Validate

I was looking at a small package that I wrote a few years ago, and I think it’s a good mental exercise to reevaluate my own code once in a while. Background The purpose of the package is to quickly check for the type of credit card given a small sample (say as a user is typing). Also validate the credit card again the Luhn algorithm which is the algorithm used by most CC companies....

January 5, 2016 · 2 min · 310 words · Hao Luo