Shang Silicon Valley design pattern learning (23) - [strategy pattern]

Gateway = = > Java design pattern of station B ❤❤❤ Thanks to Shang Silicon Valley ❤❤❤ Recently, I began to plan to learn design patterns. Come on!!! Scenario introduction Questions about ducks There are various kinds of ducks = = > such as wild duck, Peking duck, water duck, toy duck and Chong duck Ducks have var ...

Added by avianrand on Fri, 08 Oct 2021 07:44:10 +0300

The problem of downloading files from H5 micro application in IOS

Nail H5 micro application downloads files in IOS The latest project is nailed H5 micro application. This project is an HR system project born on PC. there are processes such as resignation, leave and employment confirmation. When the resignation process is initiated, attachments need to be uploaded. Attachments can be uploaded to excel, word, ...

Added by hjunw on Fri, 08 Oct 2021 07:16:33 +0300

Singleton mode of design mode

1, Brief overview Singleton mode is to take certain methods to ensure that there can only be one object instance for a class in the whole software system, and the class only provides a static method to obtain the instance.The singleton pattern ensures that a class has only one instance, and will instantiate itself and provide this instance ...

Added by Z33M@N on Thu, 07 Oct 2021 18:30:00 +0300

Notes on JAVA design patterns

  1. Singleton mode          one point one   brief introduction          The so-called class singleton design pattern is to take certain methods to ensure that there can only be one object instance for a class in the whole software system, and the class ...

Added by csteff24 on Tue, 05 Oct 2021 23:29:38 +0300

The Android background runs the white list to keep it alive gracefully

Living status We know that the Android system will kill the background process, and with the update of the system version, the intensity of killing the process is still increasing. The starting point of the system itself is good, because it can save memory, reduce power consumption and avoid some rogue behavior. However, for some applications ...

Added by eojlin on Thu, 30 Sep 2021 23:31:20 +0300

If there is no network (on flight mode), will it prompt that the download is successful? Flutter cached_network_image image loading process analysis

preface Why did you play Toast to prompt that the download was successful without the network (on flight mode)? Subconsciously, the Toast prompt must be playing early. Just click the button and play Toast before downloading. Hurry to get your mobile phone to operate and verify it. There's really no network. After playing the download complet ...

Added by ronnimallouk on Wed, 29 Sep 2021 20:40:49 +0300

Shang Silicon Valley design pattern learning (13) -- [proxy -- Static proxy, dynamic proxy, Cglib proxy]

Gateway = = > Java design pattern of station B ❤❤❤ Thanks to Shang Silicon Valley ❤❤❤ Recently, I began to plan to learn design patterns. Come on!!! proxy pattern Proxy mode: provide a copy to an object, and control the access of the real object through the copy object. Even if you want to expand new content or function ...

Added by axnoran on Tue, 28 Sep 2021 20:58:21 +0300

[learning notes] design mode - command mode (Command/Action/Transaction)

0 design mode If you don't know about design patterns, you can learn what design patterns are through this article https://blog.csdn.net/qq_42874315/article/details/120006447 1 command mode Command pattern is a data-driven design pattern, which belongs to behavior pattern. The request is wrapped in the object in the form of a command an ...

Added by prion on Sat, 25 Sep 2021 21:52:41 +0300

The way of software design pattern -- command pattern

  In normal development, one method calls another method directly. In this way, there is a close coupling between the method caller and the method executor. This is not conducive to expansion, so we can separate method invocation from method execution, which is the role of command mode Definition of command pattern: encapsulate a request as ...

Added by sambkk on Fri, 24 Sep 2021 11:31:51 +0300

Design mode - template mode

Let's learn another behavioral design pattern, template pattern. We have repeatedly stressed that the principle and implementation of most design patterns are very simple. The difficulty is to master the application scenarios and find out what problems can be solved. Template mode is no exception. Template pattern is mainly used to solve the tw ...

Added by control on Sun, 19 Sep 2021 01:42:55 +0300