6aHttp://support.marsec.net/focus/patch/NT4sp6a/ch_sp6i386.exeDownload Windows NT 4.0 Service Pack 6aHttp://support.marsec.net/focus/patch/NT4sp6a/en_sp6i386.exeDownload Windows NT 4.0 Chinese Version SP6a Security Patch Set (SRP)Http://support.marsec.net/focus/patch/sp6a-srp/CHSQ299444i.exeDownload the SP6a Security Patch Set (SRP) in Windows NT 4.0Http://suppo
Core: A class, it is best to do only one thing, there is only one reason for its change.
The English name of a single responsibility principle is single responsibility principle (SRP for short), There shoshould never be more than one reason for a class to change. class changes should not be caused by more than one reason, that is, there should not be more than one reason that can lead to class changes.
If the class has more than one responsibility,
First, define
Single Responsibility Principle: one class should have only one reason for changeEnglish name: single responsibility principle (SRP)
Next we will explain this single responsibility from the three booksThese three books are respectively "in-depth Object-Oriented Analysis and Design", "Design Pattern Analysis", and "Agile development: Principles, patterns, and practices".
Object-Oriented Analysis and Design
First, his interpretatio
methods in different ways3. DRY (don ' t Repeat yourself Principle) No self-repetition principle
Extract common objects from a single place to avoid duplication of code
Personal SummaryThis principle can also be applied to demand analysis to ensure the uniqueness of the requirements. Keep every information and behavior in the system in a single, reasonable place4. SRP (single Responsibility Principle) sole Responsibility principle
...
Received a demand last week, someone feedback Taobao's search results page on some of the resource files repeated repeatedly reload, the problem is serious. After a series of investigation, finally found the problem lies:
IE6 executes a script when window.onload (or simulated domready) causes some cache problems:
Question 1. At this point JS to the DOM for rendering level changes, such as setting the width, innerHTML, and so on, will be the elements of the background map to request
C # Object-oriented principles
One, interface-oriented rather than implementation [Code to a interface rather than to a implementation.]
Second, the use of a combination of priority rather than inheritance [favor composition over inheritance.]
Third, srp:the single responsibility principle sole responsibility
Each object in the system should have only one separate responsibility, and all objects are concerned with the completion of their own duties. [Every object in your system should have a s
Top 9 Cloud Computing failuresoutages, hacks, bad weather, human error and other factors has led to some spectacular clou D failures.9. Hackers Access celebrity icloud Accountsin The fall of, Hackers targeted celebrity accounts on Apple's icloud service In a successful cyberattack. The cloud computing service stored copies of images the celebrities had on their iPhones, and the hackers were able to obt Ain-and Post Online-nude Pictures of some famous actresses and models, including actress Jenni
1ObjectiveFebruary 14, the eve of Valentine's Day, a data center set of Oracle 11.2.0.4 RAC outage!A few days later, there is a set of RAC outage!A few days later, a set of RAC outages followed.As the operation of you, hear other customers appear such an outage, is not the bottom of my heart will be a burst of inexplicable panic?So the question is, will the data
July 27, 2015 help friends solve the company MongoDB outage caseIt is important for database selection. Inside the company to establish its own knowledge base, in the absence of problems before making good judgment, early prevention of failure.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/41/wKioL1W1qc7jvP-aAAWV9jk1ouU344.jpg "style=" float: none; "title=" Enterprise MongoDB outage -1.jpg "a
Release date:Updated on:
Affected Systems:Cisco Small Business SRP500 series SRP547W 0Cisco Small Business SRP500 series SRP546W 0Cisco Small Business SRP500 series SRP541W 0Cisco Small Business SRP500 SRP527W-U series 0Cisco Small Business SRP500 series SRP527W 0Cisco Small Business SRP500 SRP526W-U series 0Cisco Small Business SRP500 series SRP526W 0Cisco Small Business SRP500 SRP521W-U series 0Cisco Small Business SRP500 series SRP521W 0Unaffected system:Cisco Small Business SRP500 series SRP
Release date:Updated on:
Affected Systems:Cisco Small Business SRP500 series SRP547W 0Cisco Small Business SRP500 series SRP546W 0Cisco Small Business SRP500 series SRP541W 0Cisco Small Business SRP500 SRP527W-U series 0Cisco Small Business SRP500 series SRP527W 0Cisco Small Business SRP500 SRP526W-U series 0Cisco Small Business SRP500 series SRP526W 0Cisco Small Business SRP500 SRP521W-U series 0Cisco Small Business SRP500 series SRP521W 0Unaffected system:Cisco Small Business SRP500 series SRP
reusability of the system and become our guiding principle for object-oriented design:1. single Duty principle SRPEach class should focus only on doing one thing.2. "open-close" principle OCPEach class should be open to extensions and closed for modification.3. The Richter substitution principle LSPTo avoid illegal or degrading methods that result in derived classes, a user of a base class should not need to know about this derived class.4. dependency Reversal Principle dipInstead of relying on
S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design (OOD) and object-oriented programming (OOP).
Principles of object-oriented design
SRP
The single Responsibility Principle
Single principle of responsibility
Ocp
The Open Closed Principle
Open Closure principle
Lsp
The Liskov Substitution Principle
The pri
Original English:Top 6 refactoring patterns to help you score 80% in code Quality
In the past, I did a lot of code reading and found some common problems in code quality. The following areTop five:
Bloated class:The reason why the class is bloated is that developers lack the most basic coding principle, namely the "single Responsibility Principle" (SRP. These classes tend to become very bloated because different methods that lack Association in func
Document directory
Single Responsibility Principle SRP)
Single Responsibility Principle SRP)
There shoshould never be more than one reason for a class to change.
What does it mean?
The single responsibility principle is that one class is responsible for only one responsibility, and there is only one cause of change.
If a class assumes too many responsibilities, it is equivalent to coupling these responsi
It has always been thought that the classes in the program used to encapsulate inheritance polymorphism is object-oriented design, it is not encapsulation, inheritance, polymorphism is only the three main characteristics of object-oriented, but in the design of the program is not to say that the structure of the class used (or reflected) these three features are object-oriented, In fact, the real object-oriented design is to meet the following five principles, object-oriented five basic principl
Duty : the SRP for short. As one of the principles of object-oriented design, SRP also applies to architectural principles. It is similar to SOP. It emphasizes that objects should have only one responsibility, and that they should only have one reason for change. In other words, the only thing the object should change is that its responsibilities need to be updated. By adhering to this principle, you can w
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 principles of object design, here I will review the core principles of object Design-the solid principle. Almost all design patterns can be seen in the shadow of these principles.Single Responsibility Principle (
S.o.l. I. dIt is the abbreviation of several important coding principles (programming priciple) in Object-Oriented Design (OOD) and Object-Oriented Programming (OOP.
Object-Oriented Design Principles
SRP
The single Responsibility Principle
Single Responsibility Principle
OCP
The open closed Principle
Open and closed Principle
LSP
The liskov substitution principle
Rys replacement principle
I
3.3 basic requirements for Class Design
The above describes the basic rules of system design and class design, which are theoretically strong and difficult to understand for a while. The following describes the basic requirements of class design, which is easier to practice, you need to do well. The above rules can be gradually understood in the practice process. software design is a practical science, and it is always hard to get into the door on paper. Practice is the best teacher, however, yo
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.