Tag:Observer

  • How to understand Z-index? How to understand the property of z-index in css?

    Time:2021-10-8

    How to understand Z-index? The Z-index attribute in CSS controls the vertical stacking order of overlapping elements. The default Z-index of elements is 0. We can modify Z-index to control the layer position of elements, and Z-index can only affect elements with position value set. We can think of the elements on the view as […]

  • IOS development interview only needs to know these, and the technology basically passes the customs! (runloop)

    Time:2021-10-1

    1. WhyNSTimer  Sometimes it doesn’t work? Because it was createdNSTimerThe default is added todefaultMode, so when RunloopofMode change CurrentNSTimer  It won’t work. 2. How to use afnetworking   Runloop? RunLoopThere must be at least one internal before startingTimer/Observer/Source, soAFNetworking stay[runLoop run] A new one was created beforeNSMachPortAdded it. Typically, the caller needs to hold thisNSMachPort (mach_port)   […]

  • ThinkPHP 5 model usage history – global definition

    Time:2021-9-10

    Series articles: ThinkPHP 5 model usage history – inherit first and then extend ThinkPHP 5 model usage history – replication ThinkPHP 5 model usage history – global definition ThinkPHP 5 model usage history – ide friendly ThinkPHP 5 model usage history – Single Responsibility ThinkPHP 5 model usage history – sorting code ThinkPHP 5 model […]

  • Nsnotification thread management and automatic logoff open source solution

    Time:2021-9-8

    background IOS notification in the case of multithreading, the thread management is very difficult to control. How do you understand this? According to the official document, no matter which thread you register observer and which thread you post notification, it will be received in which thread. This meaning is expressed in code, and the effect […]

  • 18. Design mode – observer mode

    Time:2021-9-2

    Observer mode can be said to be a design mode very close to our life. Why do you say so? There is a philosophical saying that “everything is connected”. The original meaning is that there is no isolated thing in the world, but in fact, it can also be understood that the occurrence of any […]

  • 19. Design mode – observer mode

    Time:2021-9-1

    The previous article talked about the more traditional usage of the observer model. This article is going to share some popular ones. However, before starting new content, we might as well think about two scenarios. One is the newspaper subscribing to the newspaper, and the other is making an announcement on the blackboard. Both are […]

  • IOS development interview only needs to know these, and the technology basically passes the customs( Runloop chapter)

    Time:2021-8-22

    1. WhyNSTimer  Sometimes it doesn’t work? Because it was createdNSTimerThe default is added todefaultMode, so when RunloopYesMode change CurrentNSTimer  It won’t work. 2. How to use afnetworking   Runloop? RunLoopThere must be at least one internal before startingTimer/Observer/Source, soAFNetworking stay[runLoop run] A new one was created beforeNSMachPortAdded it. Typically, the caller needs to hold thisNSMachPort (mach_port)   […]

  • 5 minutes per day – behavioral model (II)

    Time:2021-8-7

    Iterator mode This name is familiar to Java programmers. Traversing a collection is still a common operation. You can access data without caring about types, using the iterator pattern. Aggregate (Abstract container):Abstract classes that should be implemented by all classes and traversed by iterators. Similar to collection interface Iterator (Abstract iterator):Defines the operation of traversing […]

  • 23 design patterns java version Part 5

    Time:2021-8-6

    PS: This article is a reprint of the article. You can get the source code by reading the original text. There is a link to the original text at the end of the article PS: This article is about writing strategy mode, method template mode and observer mode 1. Strategy mode A series of algorithms […]

  • Best practice of micro front end based on Qiankun (Illustrated) – inter application communication

    Time:2021-7-28

    Write at the beginning Micro front end series: Best practices of micro front end based on Qiankun (10000 words long) – from 0 to 1 Best practice of micro front end based on Qiankun (Illustrated) – inter application communication Qiankun based micro front end best practices (Illustrated) – Application Deployment Ten thousand words long text […]

  • The usage and difference of delegation and notification

    Time:2021-7-16

    Low coupling is a characteristic of good programs. The low coupling program has better readability and maintainability. The delegation and notification functions in cocoa can make low coupling easier to implement. The following describes how to use delegation and notification to transfer values, and the difference between delegation and notification. 1. Delegate value transfer Delegate […]

  • Analysis of vue3: response principle — effect

    Time:2021-7-14

    Response principle Source code directory:https://github.com/vuejs/vue-next/tree/master/packages/reactivity modular ref: reactive: computed: effect:Operations: two enumeration types, trackoptypes and triggeroptypes, are provided for use by other modules analyse Vue2 response principle What is responsive data? That is, a depends on B data, and notifies a when b value changes. Obviously, the observer mode should be used hereThe principle of […]