Jallen Liao·Jul 8, 2020Object.create vs. New in javascriptObject.create() creates a new object, using an existing object as the prototype of the newly created object. This method is mainly used…A response icon2A response icon2
Jallen Liao·Jul 7, 2020Array vs. ArrayList vs. List<> in C#An Array (System.Array) is fixed in size once it is allocated. You can't add items to it or remove items from it. Also, all the elements…
Jallen Liao·Jul 7, 2020Generator in ES6Regular functions return only one single value (or nothing), but generators can return (“yield”) multiple values, one after another…
Jallen Liao·Jul 6, 2020Proxy in javascriptThe Proxy object enables you to create a proxy for another object, which can intercept and redefine fundamental operations for the object.
Jallen Liao·Jul 5, 2020Iterator in ES6Iterator is an interface that offers uniform access mechanism for all collection data stuctures such as Array , Map and Set . Any data…
Jallen Liao·Jun 20, 2020Singleton pattern in C#The purpose of Singleton Pattern is to create only one common access to an object, which means the class can only have on instantiation.
Jallen Liao·Jun 11, 2020Event delegation based on BubblingIf we have many similiar elements, we can assign a handler to the their common ancestor instead of assigning a handle to each of them…
Jallen Liao·Jun 10, 2020“this” keyword deep dive in JavascriptFirstly, let’s look at the definition for “this” keyword.