People: small dish, big bird
Event: the small dish and the big bird went to have a snack. The small dish ate a bowl of delicious fried noodles, and then the big bird wanted to eat and ordered a bowl, but found that this bowl did not put salt. Why did the same cook cook cook fried noodles twice, the first bowl was delicious, but the second bowl ...
Posted by scm24 on Wed, 25 May 2022 18:14:28 +0300
1, Lead to the question of building a home theater:
There are DVD player, projector, automatic screen, surround sound and popcorn machine in the home theater. It is required to complete the function of using the home theater. The process is as follows:
• direct remote control: coordinate the switch of each equipment
• popcorn opener
Posted by intenseone345 on Wed, 25 May 2022 09:09:47 +0300
1, Definition and characteristics of patterns
Command mode: encapsulate a request into an object, separating the responsibility of issuing the request from the responsibility of executing the request.
In this way, the two communicate through the command object, which is convenient to store, transfer, call, add and manage the command object.
Posted by huppsi on Tue, 24 May 2022 18:44:00 +0300
The analysis and design of object-oriented system actually pursues two points: high cohesion and low coupling.
Creative mode (new decoupling): hide the way of creating logic while creating objects, instead of directly instantiating objects with the new operator. (5 modes)
Posted by Divine Winds on Tue, 24 May 2022 04:38:34 +0300
Use one OkHttp to obtain muke.com movie data (20 pieces), use Glide to load pictures and display them in each movie Item, and search and display them by movie name and type.
1, Contents displayed on the home page:
Movie sea ...
Posted by plutoplanet on Tue, 24 May 2022 04:06:34 +0300
Display weather information [supplement]
in the light of Android development practice - project learning notes (2) , the last part is to improve the code
Add new data
1. Design layout
2. Prepare layout documents
3. Import to parent file
4. Change Java code
① Find control
② Update control content
<?xml version=" ...
Posted by blackthunder on Mon, 23 May 2022 21:28:03 +0300
Design pattern and Python implementation
What is the design pattern?
Christopher Alexander: "each pattern describes a recurring problem around us and the core of the solution to the problem * so that you can use the solution again and again without having to do repetitive work."
Design patterns are summarized and optimized to provide ...
Background: Recently, I was working on an APP video upload project. Due to the use of my own server, there are certain memory restrictions. At present, most mobile phones have a large resolution, and the video captured is several megabytes in a few seconds. How to compress the recorded video is the same as wechat. Therefore, I consulted some ma ...
Posted by Loldongs on Mon, 23 May 2022 01:13:51 +0300
In Strategy Pattern, the behavior of a class or its algorithm can be changed at run time.
In policy mode, we create an object representing various policies and a context object whose behavior changes as the policy object changes. The policy object changes the execution algorithm of the context object.
Posted by unknownsheep on Sun, 22 May 2022 23:14:27 +0300
In the previous article on JUC, we mentioned the creation of thread pool exectors. In the article:< JUC series of java - external Tools >There are detailed descriptions in the first part of the, please refer to;
In fact, the article explains the external use mode, but does not say how the internal implementation is implemented. I ...
Posted by herschen on Sun, 22 May 2022 22:45:09 +0300