`

Laws, Principles

 
阅读更多

Acyclic Dependencies Principle (ADP).  无环依赖原则

 

Command-Query Separation (CQS).  命令-查询分离原则

 

Common Reuse Principle (CRP).  共同重用原则

 

Convention over Configuration(CoC).  惯例优于配置原则

 

Dependency Inversion Principle (DIP). 依赖倒置原则

 

Design by Contract (DbC).  契约式设计

 

Don’t Repeat Yourself (DRY).

 

Hollywood Principle. 好莱坞原则

 

High Cohesion & Low/Loose coupling &.  高内聚, 低耦合

 

Law of Demeter.  迪米特法则

 

LeBlanc’s law: Later equals never.   勒布朗法则:稍后等于永不。

 

Liskov substitution principle (LSP).   里氏代换原则

 

Interface Segregation Principle (ISP). 接口隔离原则

 

Open/Closed Principle (OCP).  开闭原则

 

Program to an interface, not an implementation.

 

Separation of Concerns (SoC).  关注点分离

 

Single Responsibility Principle (SRP) .  单一职责原则

 

Tell, Don’t Ask  命令,不要去询问原则

 

Ward’s principle: You know you are working on clean code when each routine turns out to be pretty much what you expected.

沃德原则:如果每个例程都让你感到深合己意,那就是整洁代码。

 

You Ain’t Gonna Need It (YAGNI).

 

 

 

分享到:
评论

相关推荐

    Autoruns-v9.1.3H

    If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles....

    c# sample15个例子

    If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles....

    Recover4all Professional

    恢复删除的文件 LICENSE AGREEMENT FOR RECOVER4ALL PROFESSIONAL SOFTWARE PROGRAM IMPORTANT NOTICE TO USER - PLEASE READ CAREFULLY Please read the following terms and conditions carefully because they ...

    polycom宝利通视频会议软件3.9 2018

    perceivable form in whole or in part, except and only to the extent that such activity is expressly permitted by a third party license or applicable laws (in any instance where the law permits any ...

    Albert-László Barabási的2018年新书《The Formula:the universal laws of success》

    Now, based on years of academic research, The Formula finally unveils the groundbreaking discoveries of their pioneering study, not only highlighting the scientific and mathematic principles that ...

    NASA-ROCKETS A Teacher's Guide with Activities In Science,

    The sections on scientific principles and practical rocketry focus on Sir Isaac Newton’s Three Laws of Motion. These laws explain why rockets work and how to make them more efficient.the guide ...

    Code Simplicity(O'Reilly,2012)

    This concise guide helps you understand the fundamentals of good software development through universal laws–principles you can apply to any programming language or project from here to eternity. ...

    Particle Physics

    Conservation Laws and Invariance Principles....Pages 209-269 Strong Interactions....Pages 271-346 Electromagnetic Interactions....Pages 347-379 Weak Interactions....Pages 381-438 Electroweak ...

    NIST SP800-122.pdf

    which are the principles underlying most privacy laws and privacy best practices. PII should be protected from inappropriate access, use, and disclosure. This document provides practical, context-...

    No.Starch.Press.Foundations.of.Information.Security.1718500041.epub

    The principles behind modern cryptography, including symmetric and asymmetric algorithms, hashes, and certificates The laws and regulations that protect systems and data Anti-malware tools, firewalls,...

    Head.First.Physics part1

    Covers scientific notation, SI units, vectors, motion, momentum conservation, Newton's Laws, energy conservation, weight and mass, gravitation and orbits, circular motion and simple harmonic motion, ...

    Head.First.Physics.part4

    Covers scientific notation, SI units, vectors, motion, momentum conservation, Newton's Laws, energy conservation, weight and mass, gravitation and orbits, circular motion and simple harmonic motion, ...

    Head.First.Physics.part2

    Covers scientific notation, SI units, vectors, motion, momentum conservation, Newton's Laws, energy conservation, weight and mass, gravitation and orbits, circular motion and simple harmonic motion, ...

    Head.First.Physics.part3

    Covers scientific notation, SI units, vectors, motion, momentum conservation, Newton's Laws, energy conservation, weight and mass, gravitation and orbits, circular motion and simple harmonic motion, ...

    ACHI驱动程序

    Claims arising under this Agreement shall be governed by the laws of California, excluding its principles of conflict of laws and the United Nations Convention on Contracts for the Sale of Goods....

    hacker-laws-zh:​​开发人员有用的定律,理论,原则和模式。(开发人员会发现有用的法律,理论,原理和模式。)

    的中文翻译。 对开发人员有用的定律,理论,原则和模式。(开发人员会发现有用的法律,理论,原理和模式。) 为了方便阅读,维基百科增加了中文链接。英文链接表示项目尚未完成的主题。 喜欢点star ,关注点watch ,...

    Essential Physics 1

    5 INVARIANCE PRINCIPLES AND CONSERVATION LAWS 5.1 Invariance of the potential under translations and the conservation of linear momentum 94 5.2 Invariance of the potential under rotations and the ...

    Physics for JavaScript Games, Animation, and Simulations.pdf

    The authors present everything from basic principles to advanced concepts in an approachable way, so you’ll be able to follow the logic and easily adapt the principles to your own applications. ...

    atlas compressor manual

    1.3.1 Main principles 14 1.3.2 Gas laws 14 1.3.3 Heat transfer 15 1.3.4 Changes in state 16 1.3.4.1 Isochoric process 16 1.3.4.2 Isobaric process 17 1.3.4.3 Isothermic process 17 1.3.4.4 Isentropic ...

Global site tag (gtag.js) - Google Analytics