Excellent program design guidelines

-------------------------------------------------- Chit-Chat words outside --------------------------- ------------------- -------------------------------------------------- -

There are two major design guidelines:

 

(God point of view)

The first one kind of guiding principle in life is, every creature (people) are created equal, high levels of biological (human) if possible, it should develop low levels of biological (human) to high levels of biological (human); thinking guide the design result : on the whole,

With low levels of bioconversion - Probability> High-level biology, more and more high-level biological, bio-collision entire civilized thought sparks will be increasing, the entire biosphere civilization forward the further development of the greater High the development level of civilization is more robust; it is the individual, high levels of biological

The more practical approach to new situations and new problems, and can adapt to future development.

 

The first two kinds of guidelines are in life, every creature (man) refuses and other low-level and high-level biological organisms unworthy of exchanges, they are poor, ignorant, greedy, and will train them into high-level creatures, not effort please, give yourself these high levels of biological poses a potential competitive threat

High levels of biological (human) if possible, they should filibuster and block the development of low-level creatures, leave them, or reverse or even destruction. Thought to guide the design results : Everything basically remain in its current state does not change. Low levels of biological retains its state of ignorance, not to break the existing high levels of biological life, and high levels of biological not so much trouble, comfortable life, ideal for small pressure.

 

 

(Human perspective)

The first one kind of thought: everyone is equal, everyone can be changed for the better, you can train, you can improve, if the ability to help the people around you progress, let him to the good side of the development. Instructions Result: through interaction between individuals, bringing each individual's progress, thus promoting the progress of human civilization, the whole of human society better to light, prosperous, inclusive and orderly world;

 

The first two kinds of thinking: we are born unequal, is not easy to survive with limited resources, we can not reveal all the details under the laws of nature, do not help others, lost their jobs, always hold back. Instructions Result : changes in individual face less, live in peace and security, but individual case particular case, it is easy to be phased out; and the slow development of human civilization, even likely go dark, depressed, hegemony and disorderly world.

 

 

-------------------------------------------------- ------------------------ programming - guidelines -------------------- --------------------------------

 The ultimate goal of the program is designed to give people to use, and how the design of these programs, think about two kinds of the above guidelines, because the existing number of good design is based on human considerations.

And I'm talking about below are for the first one kind of thinking is concerned, after all, I am also a person, I hope the world gets better.

 

First, what is it human characteristics:

   1. Lazy 2. 3. trouble like simple

 

Then, use the program to face the crowd, what does:

   1. application developers

   2. The implementation of the operation and maintenance personnel

   3. User

 

So, what is good programming?

    1. application developers: Code hierarchical architecture, a clear division of layers, each layer functions clear, easy-multiplexing method; high cohesion and low coupling.

    2. The implementation of the operation and maintenance personnel: simple to deploy, simple to configure, easy to maintain

    3. User: solve my own needs, simple to use, convenient and user-friendly

 

Programmers in the design process, it must take into account the above three groups, to make the program as much as possible to meet the above written three major characteristics of human nature, and that the program is good excellent program

 

 

-------------------------------------------------- ----------------------- programming - object-oriented design -------------------- -------------------------------------------------- -

 

1. The system uses a simple process-oriented programming, object-oriented system programming complex;

2, object-oriented is established in process-oriented basis, the object of which method look example, it is a process-oriented;

3. Object-oriented design idea is: all things are can be seen as objects, they Jie own unique characteristics and unique purposes, everything that people find and identify. And a complex system that is those people abstract things to go inside the code, written in different things to different classes, wherein the unique properties of the class written, written exclusive use inside the class methods, everything the link between the use of 23 kinds of design patterns to generalize

 

Guess you like

Origin www.cnblogs.com/for-easy-fast/p/12116714.html