Tag:object

  • Redux source code interpretation — bindactioncreators source code analysis

    Time:2021-5-6

    Source code analysis of bindactioncreators bindActionCreatorsyesreduxProvides an auxiliary method that allows us to call in the form of a methodaction. At the same time, automaticallydispatchCorrespondingaction. This module code is very simple, as long as you understandFunction.prototype.applyYou can clearly understand every line of code in this module by using. Because, this module is designed to a […]

  • Analysis of Objective-C design pattern adapter

    Time:2021-5-6

    The pattern of picture recognition A simple overview of the adapter model is: what you need is in front of you, but you can’t transform it in a short time, so we try to adapt it. For example, now a mobile phone without electricity and a 110v50hz socket are in front of you, you obviously […]

  • Universal webassembly runtime — wasmer 1.0 GA

    Time:2021-5-6

    Wasmer was the first to run on the server sideNginxWeb assembly (wasm) runtime of. Using wasm for software containerization, we create a general binary file, which can run anywhere without modification, including Linux, MacOS, windows, web browser and other operating systems. By default, wasm automatically sandboxes applications for safe execution, thus protecting the host environment […]

  • Mybatis [2.1] – what happened from reading stream to creating sqlsession?

    Time:2021-5-6

    [TOC] We usesqlSessionBefore, you need to get the configuration file, get theInputStreamInput stream, viaSqlSessionFactoryBuilderobtainsqlSessionFactoryObject to get thesqlSession。 InputStream is = Resources.getResourceAsStream(“mybatis.xml”); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(is); SqlSession sqlSession = sqlSessionFactory.openSession(); 1. What does resources. Getresourceasstream (“mybatis. XML”) do? First of all, let’s seeInputStream is = Resources.getResourceAsStream(“mybatis.xml”);What does this sentence do for us? We can see […]

  • JavaScript — common built-in objects

    Time:2021-5-6

    Everything in JavaScript is an object: string, number, array, function In addition, JavaScript also provides multiple built-in objects, such as array, date, math, etc Objects are just special data types with properties and methods         1、 Array object array Array objectThe function of is: use a separate variable name to store a […]

  • Kubernetes k8s basic overview, design architecture and design philosophy

    Time:2021-5-6

      Kubernetes k8s overview, features and architecture description, as well as core technical concepts and API object details   Kubernetes overview Kubernetes is an open source, which is used to manage containerized applications on multiple hosts in the cloud platform. The goal of kubernetes is to make the deployment of containerized applications simple and efficient. […]

  • Analysis of webpack source code (3) – Analysis of webpack construction process

    Time:2021-5-6

    The article first appeared on my bloghttps://github.com/mcuking/bl… Before analyzing the source code, the author pastes the flow chart of webpack construction collected before. The following analysis process can be understood by the reader according to this figure. Construction preparation phase To review the previous article, when webpack cli calls the webpack package again, the first […]

  • Application of spring MVC technology in springboot project

    Time:2021-5-6

    Updated at 14:42, November 4, 2020Practice and study encountered some bugs, record into a book for their own review. Project source code link:gitee-SpringBoot-Spring MVC Introduction to spring MVC Background analysis In the design of large-scale software system, the business is generally relatively complex. If all the business implementation codes are entangled, the logic is not […]

  • [Python] – 8-objects and classes (Part one)

    Time:2021-5-6

    introduction This article describes how Python integrates functions and data into classes and accesses them through an object name. Contents of articles 0 × 1. What is the object in Python0 × 2. How to create classes in Python0 × 3. Class private property access restrictions0 × 4. Inheritance and polymorphism 0 × 1. What […]

  • Three proxy patterns in Java

    Time:2021-5-5

    First: static proxy code implementation 1. Design interface public interface IUserDao { void save(); } 2. Implement the interface public class UserDao implements IUserDao { 3. Agency The interface must be implemented public class UserDaoProxy implements IUserDao { 4. Testing public class App { The second one is JDK dynamic proxy code implementation 1. Design […]

  • Java calculates two time differences (localdatetime)

    Time:2021-5-5

    Object introduction Object desc format LocalDateTime Date time yyyy-MM-dd’T’HH:mm:ss LocalDate date yyyy-MM-dd LocalTime time HH:mm:ss Get object instance Function Desc now Get the current time of Gets the specified time judgePrefix is Suffix desc after Whether after passing in the object before Before passing in the object equal equal supported Check for support(Field support, Unit […]

  • Remove the automatic generation of mongodb batch modification_ Class attribute

    Time:2021-5-5

    0. Problem phenomenon Each attribute under props attribute in Mongo data will have_ Class attribute, which will cause data redundancy and waste storage space. There may be 5KB of 11KB data for storage_ Class 1. Causes: Batch modification in data verification code is aimed at the modification of propvalue object In mongodb database, the_ So […]