Alibabacloud.com offers a wide variety of articles about best books on design principles, easily find your best books on design principles information here online.
Since the core of object design is the class, the following principles are basically the discussion of the design of the class, the other types of elements are relatively simple, basically also conforms to most of the principles listed here. Before we have analyzed the basic princi
Four design principles:* Contrast (contrast)The basic idea of comparison is to avoid the elements on the page being too similar. If the elements (font, color, size, line width, shape, space, and so on) are different, simply make them distinct. To make a page look interesting, contrast is usually an important element, and formally it allows the reader to see the page first. * Repeat (repetition)let the visua
) {//TODO auto-generated Method Stub intN=0; intN=0; intM=0; Scanner S=NewScanner (system.in); System.out.print ("Please enter the number of the book you want to buy:"); N=S.nextint (); if(n%5==3) {n=n/5; M=n%5; if(n==0) {System.out.println ("The lowest price the reader buys for a batch of books is:" + (3*8*0.9)); } Else{System.out.println ("The lowest price for readers to buy a batch of
Defined:
A software entity such as classes, modules, and functions should be open to extensions and closed for modification.
The definition of the opening and closing principle has clearly told us that software entities should be open to extensions and closed to modifications, meaning that a software entity should implement changes through extensions rather than modifying existing code to achieve change. So what is a software entity? Software entities include the following sections:
A module in
Books explaining database table design solutions have found that the biggest bottleneck for websites is the rationality of database table design. Please recommend books on this topic. Preferably related to mysql ., High-Performance MySQL Performance Tuning and architecture design
In the previous Java 23, you learned about the singleton mode and Factory mode of design mode. Here, the design pattern is introducedPrinciple of object-oriented thought designIn the actual development, we want to understand the object-oriented thinking more deeply, we must be familiar with the design principles of the
The basis of reusable object-oriented software-design mode, with its reusable design intention, ingenious logical thinking by the vast number of object-oriented program design is sought after. But many programmers often turn the question of thinking into what patterns they encounter. This kind of confucianism、the thinking has seriously influenced the artistry of
1. Opening and closing principle (Open Close Principle)2. The principle of substitution on the Richter scale (Liskov Substitution Principle)3. Dependency reversal principle (dependence inversion Principle)4. Interface Isolation principle (Interface segregation Principle)5. Dimitri rule (Law of Demeter) and least known principle6. Single Duty principle (Responsibility Principle)7. Combination/Aggregation multiplexing principleGeneral principles of soft
, software experience easy to learn, more suitable for children of low age 2). Sticky good, let students learn quickly, and impressiveThese are basic things, but it is very difficult to actually achieve them.Current work done: 1). Introduce the left and right sliding effect, the interaction of finger swipe is more suitable for mobile phone application 2). Identify each speech block area and display a small horn to indicate that this is the appropriate voice areaNot enough, feel the user exper
Original Author: Robert C. Martin
Original article: http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf
Reference page: http://www.objectmentor.com/resources/publishedArticles.html
Ii. Object-oriented Design Principles
1 The Open-Close principle (open and closed principle)
A module shoshould be open for extension but closed for modification.
A module should be open to e
Article Description: Mobile interface design drip.
The design of mobile platforms differs from traditional Web pages in many ways, such as unique interactive experiences, visual effects under different lighting, and limited resources for mobile terminals. These are testing the technology of the developer.
By recording the design of mobile interface, t
Today, we have collected 10 excellent free ebook sharing designers. E-books represent the digital publications that people have read and distinguish them from traditional publications that use paper as the carrier. e-books use computer technology to extract certain text, images, sounds, images, and other information. Electronic Books are easier to carry and read
Atitit. log system principles and design and best practices.
1. log system is an indispensable unit test, tracking debugging tool 1
2. The log system framework should generally include the following basic features 1
1. The output log has its own category. 2
2. logs are divided into different levels according to certain standards. 2
3. multithreading is supported. 2
4. Stability. 2
3. An Ideal log Mode 2
4.
First, the topic requirementsBookstore for the "Harry Potter" series of books for promotional activities, a total of 5 volumes, with numbers 0, 1, 2, 3, 4, a single volume of 8 yuan, the specific discount is as follows:discount on this number2 5%3 10%4 20%5 25%depending on the number of volumes purchased and this number, different discount rules will be applicable. The singular book only corresponds to one discount rule, for example, two volume 1, one
/20071205214949530.html of interface segregation principle (ISP)-OO design, we introduce a class-oriented design principle:
Clients shocould not be forced to depend upon interfaces that they do not use. users cannot be forced to rely on interfaces they do not use.
Applying this concept to a wider range of packages is the basic concept of CRP: do not combine classes that are not used by users into the pack
For a single responsibility principle, there should be only one reason for its change in a category.
If a class has too many responsibilities, it is equivalent to coupling these responsibilities. A change in responsibilities may weaken or suppress the class's ability to fulfill other responsibilities. When a change occurs, the design may suffer unexpected damages. In fact, we can find it for classification and separation.
What software
1. gof's design pattern is the source of all design patterns. However, all the examples in this book are based on C ++.
2. o'reilly's head first design patterns, an entry-level book
3. This book is also good.
4. Introduction to agile development and extreme programming in UML and Model Application
Most books requir
The open-close principle (OCP) is called the cornerstone of OOD and is one of the most important principles of Ood.
This principle was proposed by Master Bertrand Meyer in 1988 (Khan, at that time I am afraid few people in China know Oo, or even what the computer is): software entities shocould be open for extension, but closed for modification. How simple ?! This principle means that the software should be developed for expansion, and the modificatio
, is the IOC container and AOP to provide specific, these two modules, to a large extent, Represents the core value of spring as an application development platform. Their realization is rod.johnson in his other book "Expert One-on-one development without EJB," the embodiment of without EJB design thought At the same time, the design concept behind spring is also deeply embodied.
From a deeper point of vi
The single responsibility principle (Srp:single responsibility principle), also known as the single function principle, stipulates that a class should have only one reason for change.If a class takes on too much responsibility, it is tantamount to coupling those responsibilities together. A change in one's responsibilities may weaken or inhibit the ability of this class to perform other duties. This coupling leads to a fragile design that, when change
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.