Reactive Extension (Rx), which is introduced by Microsoft, is a library for composing asynchronous and event-based programs, by using observable, observer with LINQ-style query operators. If LINQ is the first generation on how people deal with data, Rx should be next generation. [Read More] ......
We should NOT write a lot of code inside one file, or in one class, not only in JavaScript in theory. But in practice we might need to write a huge class. I know in C# we can split one class in multiple files, which they called partial class. How...[Read More] ......
Recently I was working on a project to make our production, Worktile Pro, to be able to on-premise deploy. Besides some code changes one of the problem we were facing is how to protect our source code. This can be resolved by compiling to binary. There are some tools can...
[Read More]
Our production Worktile Pro was built based on Node.js 0.12 when we firstly developed and at that moment we tried our best to prevent our code from the callback hell.
With Node.js v6 we can use iterator and tj’s co to flatten our code. While with Babel.js we can use Async/Await introduced in ES7.
When I’m developing Worktile Pro with ES6 and ES7, arrow function is one of features I like most. This makes me to use arrow function as anywhere as I could. But I also encountered some problem by using it. For example, in one my previous post, I found arguments are not defined in arrow function. Several days ago I found another problem about this in arrow function.