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...3 min read·biubiubiu.hashnode.devJul 22, 2022
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...4 min read·biubiubiu.hashnode.devJul 21, 2022
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...3 min read·biubiubiu.hashnode.devJul 20, 2022
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...3 min read·biubiubiu.hashnode.devJul 15, 2022
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...3 min read·biubiubiu.hashnode.devJul 13, 2022