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.
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.
Given that Mixinsgenerally introduce new behaviour into a class, this generally implies that a class would have more than one behaviour.
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
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
In a legacy codebase I have a very large class with far too many fields/responsibilities. Imagine this is a Pizza object.
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
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
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
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.