最近在看Clean Code in Python,感觉有不少启发,书本英文版在这个链接: 45.32.33.124/ebook/pyth 第四章的主题是The SOLID Principles S: single responsibility principle 单一职责原则 一个类只有一个职责或功能,如果一个类承担了太多的职责,那么在需求变化时,这个类的修改可能会影响到其他不想
Clean Code: Functions and Methods in TypeScript [Part 1] Clean Code: Naming and Code Composition in TypeScript [Part 2] Clean Code: Classes and Objects in TypeScript [Part 3] Clean Code: Single Responsibility, Open/Closed, Liskov Substitution SOLID Principles in TS [Part 4] ...
Clean Code: SOLID Principles Robert "Uncle Bob" Martin Add All Videos to Cart Save 15%! 14. Solid Case Study 43m1.00GBSep 2012 Starting at $14Add to Cart 13. The Dependency Inversion Principle 58m1.20GBAug 2012 Starting at $14Add to Cart 12. The Interface Segregation Principle 1h5m1.64...
The Law of Demeter and why it matters for clean code What the SOLID principles are and why they matter when it comes to writing clean code Much more! This course is a compilation of common patterns, best practices, principles and rules related to writing clean code. In this course, you'...
在这种情况下,我们遵循一个重要的概念:SOLID原则。我们要强调的是,“S”代表单一职责。根据这个原则,我们应该确保类只有一个职责,并且它的所有方法都与它相关。出于这个原因,如果我们正在构建一个类并且遇到不符合该类目的的功能,我们会将它们提取到新的类中。这样,我们将避免在难以找到所需片段的情况下编写冗长的...
What are the five SOLID principles, and how to put them into use in real-life code What are the 25 design patterns, and how to use them What is the MVC pattern, and how MVP and MVVM differ from each other How to achieve a clean design for a microservice (Clean architecture) ...
Detailed and easy to follow discussion on5 SOLID principles: Single Responsibility principle, Open-Close principle, Liskov Substitution principle, Interface Segregation principle, and Dependency Inversion principle. 20 code smells distilled and thoroughly explained:learn many different ways we can fix our ...
Clean Code Alliance organized a meetup about SOLID principles. I had the opportunity to talk about Single Responsibility Principle at part of SOLID. It’s a presentation I gave several times in the past. It was fun talking about it. There were many interesting and challenging questions, which ...
SOLID Principles // Bad design violating Single Responsibility Principle (SRP) public class UserManager { public void AddUser(User user) { // Code to add user to the database } public void SendEmail(User user) { // Code to send email to the user } } // Good design following SRP ...
.NET 9, Angular 18, Clean Architecture, Clean Code, SOLID Principles, KISS Principle, DRY Principle, Fail Fast Principle, Common Closure Principle, Common Reuse Principle, Acyclic Dependencies Principle, Mediator Pattern, Result Pattern, Folder-by-Feature Structure, Separation of Concerns. Resources ...