Dealing with a major finger injury (thenar flap)

On July 24th 2017, I injured myself on a household appliance. The injury was quite severe – it was a fingertip crush injury and ripped off the top segment of my right hand index finger. I went to the hospital immediately and got a surgery for fingertip repair called a Thenar flap. At this time of writing, I am still recovering but the outcome is good, and better than what I could have ever hoped for.

Continue reading Dealing with a major finger injury (thenar flap)

Vue.js Internals: How computed properties work

In this post, we will more learn about how Vue.js Computed Properties work by writing a very (very very very) simple implementation which achieves similar functionality.

  1. This is just to illustrate how it works. It doesn’t support objects, arrays, watching/unwatching and a dozen performance optimizations that exist in vue.js core.
  2. I wrote this after reading the Vue.js source code, based on my very limited understanding. A lot of it might be wrong. Please email me if you find any corrections or if I’m flat out wrong.
Continue reading Vue.js Internals: How computed properties work

Vuex basics: Tutorial and explanation

Update Nov 2016: This is written for a very old version of the vuex api and the code from Dec 2015.

However, this article still gives a very in-depth look about why vuex is important, how it works and how it can make your apps better and easier to maintain.

Vuex is an in-development and prototype library by the creator of Vue.js to help you build larger applications in a more maintainable way by following principles similar to those made popular by Facebook’s Flux library (and subsequent iterations by community like redux).

Instead of directly jumping into vuex and how to use it, in this post, I’ll explain the rationale behind why it is favorable to alternative approaches and how it is helpful to you.

Continue reading Vuex basics: Tutorial and explanation

Vue.js build set-up from scratch with webpack, vue-loader and hot reload

Vue.JS is my favorite JavaScript library. In this article, I will explain to you how to build a project using Vue.JS, hot module replacement, webpack and the entire vue ecosystem completely from scratch so you can understand exactly how your app works.

Continue reading Vue.js build set-up from scratch with webpack, vue-loader and hot reload