- HistoryLike brianleroux said in his post ES6 Modules: The End of Civilization As We Know It?: “For many years JS had a single widely accepted module format, which is to say, there was none. Everything was a global variable petulantly hanging off the window object.”
Before we have CommonJS, AMD and the newest ES6 module...
TaoAlphatechjsmodule Fr, June 17, 20169 minutes to read - Write AheadAbout 30 minutes ago, I tried to rewrite the colors module, at least part of it :). Then I found a nice and rarely used method defineProperty which made the past 30 minutes totally worth it.
Rewrite the colorsBefore we put our hands on defineProperty, I want to tell you how I found this method :) colors is a...
TaoAlphatechjs Fr, April 29, 20167 minutes to read - Write AheadES6 introduces a new primitive type into JavaScript which is Symbol. All symbols are unique so you can treat them as tokens server as unique id.
You can create a symbol using its factory function Symbol(), you can pass a parameter to it as the name of the symbol, but most of time, the name is only used to de...
TaoAlphatechjses6symbol Th, April 28, 20169 minutes to read - Write aheadAfter we knew some basic ideas and commands of Docker (No? see Docker 101 self-learning tutorial). We can build our own docker images and customized our dev kit.
Today I will show you how to use Dockerfile build your own images, here I build a minimalist web dev image as example:
Let’s codeDockerfileDockerfi...
TaoAlphatechdocker We, April 27, 201615 minutes to read - Write AheadI start learning React recently, and since I haven’t written Angular code for several weeks, I guess I need to review some basic concepts during the self-learning :)
The first book which I am reading is Mastering React, it is pretty good, and I think if you want to learn React, you can start from this one.
D...
TaoAlphatechdata binding Fr, April 22, 20168 minutes to read - StoryYesterday, I got a question from a friend who asked me to review his code and explain why the object he printed out got changed before he actually modifies it. This is a classic ‘asynchronous’ or lazy evaluation(more accuarately) problem of console.log().
We all know that console.log is the most popular and common...
TaoAlphatechjs Th, April 21, 20167 minutes to read - Function.call and Function.apply are two very important methods and you should be very familiar with them if you are good at functional javascript. The most important and the only purpose of these two methods is to convert one input to another.
These two methods are easy to use but also easy to confuse, people always f...
TaoAlphatechjsapplycall Su, April 17, 20169 minutes to read - What Docker does ?Docker is a software that help you implement the concept of Linux container which is pretty similar with virtual machine but more light-weight.
Docker has a really great system or workflow that make build, ship and deploy your product really easy to do. You can find a lot of posts about docker on the ...
TaoAlphatechdocker Th, March 10, 20168 minutes to read - Comparison based sorting algorithmsWe have discussed all popular comparison based sorting algorithms: insertion sort and selection sort, bubble sort and merge sort, Quicksort and Heap Sort.
All these algorithms are great under most of conditions, but their lower bound is O(nlogn), they can not do better.
If for some re...
TaoAlphatechsortalgorithm Tu, January 19, 201620 minutes to read - Last time we have finished the four different sorting algorithms including : insertion sort and selection sort, bubble sort and merge sort, check on Series section for these posts.
Now let’s continue playing with another one or two.
Median Sort and QuicksortMedian SortSimiliar with merge sort, we still use divide and c...
TaoAlphatechsortalgorithm Tu, January 19, 201618 minutes to read