Internet | microsoft | Strategy NET: Interpreting the new Microsoft Internet Strategy (on) (Seal Dragon Pavilion Collection, strongly recommended!) )
http://www.chinabyte.com/column/column_page.shtm?column_type=comp_searchcoluid=2215
"Author" Mao Xianhui Chen Zhihong
Article outline:
First, the big strategic shift
1,. NET is what?
2,. NET is the transformation of computing mode
3,. NET's transformation
Whatever you do, set a goal, have a core strategy for a goal, and resolutely implement the core strategy is the Magic weapon for success.
Give me a chestnut:
The Three Kingdoms are divided into the world. Wei have their own phased core strategy. Wei Cao's strategy is to take the emperor to make princes. Dong Wu Sun Qua
ArticleDirectory
Strategy Pattern
Strategy patternfrom Wikipedia, the free encyclopedia
Jump to: navigation, search
In computer programming,Strategy PatternIs a particle software design pattern, whereby algorithms can be selected at runtime.
In some programming languages, such as those without polymorphism, the issues addressed by this pattern a
I. Introduction of the Strategy modelPolicy mode: It defines the algorithm family, individually encapsulated, so that they can be replaced with each other, this mode allows the algorithm changes will not affect the use of the algorithm customers. For example:The cashier software in the mall, how to make different discounts for different products? Or, how to make different discount according to different membership level?In fact, the internal definitio
? design pattern--Strategy mode1, Definition: Policy mode, also known as the algorithm cluster mode, is defined by different algorithm families, and can be replaced between each other, this mode allows the algorithm to change independently of the customer using the algorithm.2, "strategy" Understanding: A strategy is a plan, through the implementation of the plan
Preface
Rule mode: it definesAlgorithmFamily, respectively encapsulated, so that they can be replaced with each other. This pattern changes the algorithm and does not affect the customers who use the algorithm.
Rule mode structure
Strategy: strategy class, which defines public interfaces of all supported algorithms
Concretestrategy1, concretestrategy2, and concretestrategy3 are specific policy cl
team's big strategy and small ideas.
First, the big strategy: to build a lasting network promotion war
When Chairman Mao was fighting, he used the strategy of "surrounding cities in the countryside" to win the country. And the history of the people know that farmers Army male red revolution to now still encourage generations. The ability of the team is far mo
List some of the common performance optimization strategies.
n Use space to change time. This strategy is optimized at the system architecture level. We know that a variety of caching mechanisms, from CPU l1/l2/ram to hard drives, can be used to change the time-to-space strategy. This kind of strategy basically is to avoid the repetition of the computation by usi
. This algorithm class encapsulates a large number of search algorithms,
This type of code is complex and difficult to maintain. If we include these policies on the client, this approach is not desirable, it will lead to a large client program and difficult to maintain, if there are a large number of available algorithms, the problem will become more serious.
What we need to do is encapsulate each method in different classes and call corresponding methods as needed!
Here we also use two example
Directory
Definition
UML
Participants
Example
Definition:
PairAlgorithmIs the separation of algorithms and responsibilities. UML:
Participants:
Abstract Policy (Strategy) Role: defines a method to implement the algorithm by an interface or abstract class.
Contretestrategy role: class used to implement the abstract role algorithm.
Environment (context) Role: Call a policy role. Example:
Code Using System; Namespace Dofacto
is, a system needs to dynamically select one of several algorithms. used when an application needs to implement a specific service or feature, and the program has multiple implementations. A class defines a variety of behaviors, and these behaviors appear as multiple conditional statements in the operation of this class. The related conditional branches are moved into their respective strategy classes in place of these conditional statements. Adva
Definition: Define a set of algorithms that encapsulate each algorithm and allow them to be interchanged. Type: Behavior class modeThe policy pattern is the encapsulation of the algorithm, which encapsulates a series of algorithms into corresponding classes, and these classes implement the same interface, which can be replaced by each other. In the previously mentioned behavior class pattern, there is a pattern is also concerned about the encapsulation of the algorithm-template method mode, the
Design Pattern _ strategy PatternStrategy Pattern
Define a family of algorithms, encapsulate each one, and make them interchangeable. (Define a set of algorithms, encapsulate each algorithm, and enable exchange between them)
Context: Context Role Strategy: Policy, algorithm family abstraction, usually interface ConcreteStrategy: specific policy role
Public interface
Strategy | network
In marketing strategies, prices tend to be overlooked, such as in many phenomena repeated in the publicity or advertising mode. However, in order to be clearer, we have to determine the way in which customers pay for products or services that can be done in a pricing strategy. In cases where products are not sold directly to the most users, pricing is often described as "wholesale" and "r
Since joining Ali began to contact these words, the first to listen to the boss what the strategy will be, our mission and vision is what. And so on, but always to the specific meaning of these words no concept, Ms these things away from me, with the passage of time, oneself also began to open strategy meeting, but some doubts always can not straighten out, until a soft was business-to-business acquisition,
Strategy Carding methodZhangStrategy is always in the "think" and "say" stage, people can not do strategy, can only implement strategy. The whole business process is the process of executing the strategy. The enterprise strategy can be made clear only if you think clearly. T
1, whether it is the choice of pessimistic locking strategy, or optimistic locking strategy. If an object is locked, the object will be controlled and affected by the lock. If the lock is an exclusive lock, then no other session can modify it.2, the choice of pessimistic locking strategy, or optimistic locking strategy
Overview
Define a series of algorithms, encapsulate them one by one, and make them replaceable. This mode allows algorithms to change independently of customers who use it.
Applicability
1. Many related classes only have different behaviors. "Policy" provides a method to configure a class with one of multiple actions. 2. Different variants of an algorithm are required. 3. algorithms use data that customers should not know. Policy modes can be used to avoid exposing complex algorithm-related data
This article describes the container and layout strategy for the UI interface. Mainly from the theoretical point of view of the principle and implementation of ideas, and contains a number of container sample map.
This article is written in February 2016, is published in the blog and share with you. The original text is the work need to do research, blog based on the original draft, and do a certain simplification.
The basic unit of the UI interface i
definition: defines a set of algorithms that encapsulate each algorithm and allow them to be interchangeable.Type: behavior class patternclass Diagram:
The strategy pattern is the encapsulation of the algorithm, which encapsulates a series of algorithms into the corresponding classes, and these classes implement the same interface and can be replaced by each other. In the behavior class pattern mentioned earlier, there is a pattern is also concerne
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.