Tail call optimization Original author: Ruan Yifeng Date: April 10, 2015 Last call (Tail Call) is an important concept in functional programming, this article describes its meaning and usage. 1. What is a tail call? The concept of tail call is very simple. It can be said clearly in one sentence, which means that the… Continue reading Tail call optimization
Month: November 2020
React introductory example tutorial
React introductory example tutorial Original author: Ruan Yifeng Date: March 31, 2015 The most popular front-end framework right now is undoubtedly React . Last week, the React Native based on React was released. As a result, within a day, it received 5000 stars, which shows the degree of attention. React originated from Facebook’s internal project.… Continue reading React introductory example tutorial
How flexible is JavaScript?
How flexible is JavaScript? Original author: Ruan Yifeng Date: February 10, 2015 JavaScript is a flexible language with a strong expressive power. Let me give you an example that will surprise many people. This article was inspired by Kyle Simpson’s article “Iterating ES6 Numbers” . First, deploy an add method on the Number.prototype object. Number.prototype.add… Continue reading How flexible is JavaScript?
Solutions for strongly typed JavaScript
Solutions for strongly typed JavaScript Original author: Ruan Yifeng Date: February 8, 2015 JavaScript is a weakly typed (or dynamically typed ) language, that is, the type of variable is uncertain. x = 5; // 5 x = x + ‘A’; // ‘5A’ In the above code, the variable x is a numeric value at… Continue reading Solutions for strongly typed JavaScript