single-responsibility-principle
Does the DAO pattern spoils cohesion /SRP?
Let\'s use as example: class AccountDAO { create(){..} read(){..} 开发者_运维问答update(){..} delete() {..}[详细]
2023-03-15 23:00 分类:问答Which part of model should handle database inserts?
Title probably doesn\'t describe my problem too well, I\'ll be glad if somebody could edit it to something more appropriate. Anyways:[详细]
2023-03-06 12:29 分类:问答Error while compiling srp-2.1.2 in Ubuntu 10.04
I downloaded srp-2.1.2 source from http://srp.stanford.edu/source/srp-2.1.2.tar.gz. Type: ./configure ---> everything ok[详细]
2023-02-22 17:10 分类:问答Write programs that do one thing and do it well
I can grasp the part \"do one thing\" via encapsulation, Dependency Injection, Principle of Least Knowledge, and You Ain\'t Gonna Need It; but how do I understand the second part \"do it well?\"[详细]
2023-02-20 11:25 分类:问答ASP.NET WebForms - Control design (w.r.t. data)
I\'m designing/building a medium-scale ASP.NET web application using WebForms. The main work in the project is building each web form, and I don\'t know how to design (in a code/data/data flow sense)[详细]
2023-02-19 23:07 分类:问答SRP: Why use instance field values instead of parameters?
I\'ve just read SRP, as easy as 123…, and all of it resonates with me except one paragraph, in a section named \"Cohesion\" (I\'ve claimed before to \"get\" Cohesion, but this talk of parameters vs i[详细]
2023-01-31 06:07 分类:问答Where should my security logic go? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2023-01-29 13:54 分类:问答Maintaining Single Responsibility Principle (SRP) with UIViewControllers
Sticking to Apple\'s guidelines, I create one subclass of UIViewController per screen of my iPhone applicatio开发者_如何转开发n.However I consistently find that these classes become very large, both i[详细]
2023-01-23 23:29 分类:问答Techniques/patterns to achive Single Responsibility Principle in an extendable class hierarchy
The Single Responsibility Principle says, for example, that an Invoice class should not contain the code to print itself. Printing should be separated out into a different class.[详细]
2023-01-22 20:25 分类:问答ASP.NET MVC Show to end user that action was successful
Most of the ASP.NET MVC examples I have seen depi开发者_如何学运维ct scenarios where a user is viewing an object (or collection of objects) and then moves from that page to one that displays a form th[详细]
2023-01-18 15:57 分类:问答