Tag:object

  • Several problems and principles of springbean

    Time:2020-11-25

    1、 Several questions How to generate beans in spring? What extension points does spring provide to integrate third-party frameworks How spring integrates mybatis 2、 What is spring Spring manages beans (objects in Java), initializes operations, 3、 Spring IOC container Resource components: Resource refers to the description of resource files. Different resource files, such as XML […]

  • ES6 series promise

    Time:2020-11-25

    Video Explanation What is the promise of ES6? It’s a promise. In order to solve JS callback hell. Promise gives me the experience is: at first, it is in a fog, and then the more you use it, the better you can use it. What does commitment mean today? For example, I promise to buy […]

  • Interview summary of IOS senior engineer

    Time:2020-11-25

    Interview form: telephone interview As a developer, it is very important to have a learning atmosphere and a communication circle. This is my ownIOS communication groupNo matter you are Xiaobai or Daniel, welcome to join us. Share bat, Ali’s interview questions, interview experience, discuss technology, let’s communicate, learn and grow together! 1. How do you […]

  • PHP design pattern code examples of null object (25)

    Time:2020-11-25

    objective The empty object pattern is not a GOF design pattern, but it is enough to be considered a design pattern as a frequent pattern. It has the following advantages: The client code is simple It can reduce the probability of null pointer exception Test cases don’t need to consider too many conditions Return an […]

  • Go: learning wire dependency injection and cron timing tasks is actually so simple!

    Time:2020-11-25

    preface Hi, my little asong is back. I didn’t update it for two weeks. I’m busy recently, plus I’m lazy. So, uh huh, you know. However, the sharing that I brought today is absolutely dry goods, which is also needed in the development of actual projects, so in order to be able to explain clearly, […]

  • MVC and Vue

    Time:2020-11-24

    MVC and Vue This article was written on July 27, 2020 The first question is: is Vue an MVC or an MVVM framework? Wikipedia tells us: MVVM is a variant of PM, and PM is a variant of MVC. So to a certain extent, whether Vue is MVC or MVVM or not, its ideological direction […]

  • Why can’t your interceptor inject Java beans?

    Time:2020-11-24

    1、 How to implement interceptor In the spring boot project,InterceptorIt is often used for login verification, logging and other operations. Interceptors are provided by spring, so they can be injected as beans and managed by the IOC container. The implementation of interceptor is very simple, which mainly consists of the following two steps: Implementation of […]

  • DRF — source code analysis of DRF authentication function

    Time:2020-11-24

    1、 DRF authentication function source code analysis 1 APIView—》dispatch—》 self.initial (request, *args, **kwargs)–》 self.perform_ authentication(request)—》 Request.user —>self._ Authenticate (self): method of request class — > self.authenticators When is the request class property passed in when the request object is instantiated? When dispatching self.get_ authenticators()–》return [auth() for auth in self.authentication_ If authentication is written in the […]

  • JS object-oriented and prototype__ proto__ ,constructor

    Time:2020-11-24

    1、 Object oriented and inheritance in Java In the following code, we define a dog class. In the class, we define a property and two methods. A constructor is used to initialize the dog’s age, and a public method say is used to print. public class Puppy{ int puppyAge; public Puppy(age){ puppyAge = age; } […]

  • Promise usage in JavaScript

    Time:2020-11-24

    Promise initial Promise is a solution of asynchronous programming. Promise can be regarded as an object from which messages of asynchronous operation can be obtained. Promise provides a unified API, and all kinds of asynchronous operations can be handled in the same way. It has two characteristics The state of the object is not affected […]

  • JavaScript overview

    Time:2020-11-24

    1. Basic grammar Comparison operator = ==// equal to (if the type is different and the value is the same, it will be judged as true) ===// absolutely equal to (the result is true only if the type is the same and the value is the same) This is a JS bug, insist not to […]

  • Application of Ajax in actual combat

    Time:2020-11-24

    1. What is Ajax? AJAX is a kind of web technology, which uses the asynchronous interaction between client-side script (JavaScript) and server-side to achieve local page refresh. Synchronous interaction: client and server realize the pairing of request and response through HTTP protocol. Asynchronous interaction: there is an Ajax engine between the client and the server. […]