single-responsibility-principle
Single Responsibility Principle - A hard to see example?
I\'ve just read about the Single Responsibility Principle and at one point Robert C. Martin states that it is sometimes hard to see that a class has more than one responsibility.[详细]
2023-01-18 09:12 分类:问答Keeping code at the same level when dealing with static methods
This might be a little subjective, but I\'d like to get your input on my current situation. I have a class that will be used to serialize/deserialize an object.[详细]
2023-01-12 06:36 分类:问答Single Responsibility and Mixins
Given that Mixinsgenerally introduce new behaviour into a class, this generally implies that a class would have more than one behaviour.[详细]
2023-01-08 03:13 分类:问答Should my validator have access to my entire model?
As the title states I\'m wondering if it\'s a good idea for my validation class to have access to all properties from my model. Ideally, I would like to do that because some fields require 10+ other f[详细]
2023-01-01 15:56 分类:问答SRP & "axis of change"?
I\'m reading Bob Martin\'s principles of OOD, specifically the SRP text, and I understand the spirit of what it\'s saying pretty well, but I don\'t quite understand a particul开发者_高级运维ar phrasin[详细]
2023-01-01 15:24 分类:问答Pseudo-Backwards Builder Pattern?
In a legacy codebase I have a very large class with far too many fields/responsibilities. Imagine this is a Pizza object.[详细]
2022-12-28 08:21 分类:问答Does the traditional use of the controller in MVC lead to a violation of the Single Responsibility Principle?
Wikipedia describes the Single Responsibility Principle this way: The Single Responsibility Principle states that every object should have a single responsibility, and that responsibility should be[详细]
2022-12-27 17:04 分类:问答shared library under ubuntu
i have compiled srp-2.1.2 under ubuntu using make ,it creat a file libsrp.a. can any one tell me how can i use libsrp.a as shared library?.i want to use libsrp in a c# file under ubuntu by using dllim[详细]
2022-12-27 08:22 分类:问答How to apply Single Responsibility Principle to a service class
Suppose we are designing a UserServiceImpl class which does CRUD (Create, Read, Update, and Delete) operations. In my view Create, Read, Update, and Delete are four reasons for a class to change. Does[详细]
2022-12-26 18:05 分类:问答compiling srp-2.1.2 under ubuntu
i have download srp-2.1.2 package and just try to compile it under ubuntu. but it is not going to be compiled completely.[详细]
2022-12-26 05:58 分类:问答