Ooh git common aliases improve efficiency by halfUsing short Git aliases helps to improve the efficiency of your daily use of Git. The ultimate linux environment for mac has a very rich alias naming built in, so here are some common aliases I've used in the course of using Git. To set these Git al...Jul 22, 2022 · 3 min readbiubiubiu.hashnode.dev
As you can see, mastering js object inheritance is so easyPrototype chain inheritance Inheritance is achieved by pointing the prototype of a child class to an instance of the parent class. If a parent class has a private property of reference type, then this property is shared by all subclasses when it is i...Jul 21, 2022 · 4 min readbiubiubiu.hashnode.dev
Hey, sure you don't want to learn about the js proxy pattern?Definition The proxy pattern is to provide a surrogate or placeholder for an object in order to control access to it. The key to the proxy pattern is to provide a surrogate object to control access to an object when it is not convenient for the deman...Jul 20, 2022 · 3 min readbiubiubiu.hashnode.dev
Easy to handle JS strategy mode!Definition The Strategy pattern is a common and effective design pattern. It refers to defining a set of algorithms, encapsulating them one by one, and making them interchangeable. The essence of the Strategy pattern is to separate the use of algorit...Jul 15, 2022 · 3 min readbiubiubiu.hashnode.dev
The love affair between Map and Object in JSIt is well known that the two data structures Object and Map in JavaScript are very similar. However, if we look deeper into the underlying principles, there are still a lot of differences between them, and comparing them can help us better understan...Jul 13, 2022 · 3 min readbiubiubiu.hashnode.dev