Timeline for What is the real responsibility of a class?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 30, 2016 at 18:12 | comment | added | Jörg W Mittag | @user949300: The fact that the set of verbs is fixed, precisely avoids the problem I mentioned, namely that you can formulate sentences in multiple different ways, thus making what is a noun and what is a verb dependent on writing style and not domain analysis. | |
Dec 7, 2013 at 4:48 | comment | added | user949300 | I wouldn't say the Verb/Noun methodology is "ridiculous". I'd say that simplistic designs will fail and that it is very hard to get right. Because, counterexample, isn't a RESTful API a Verb/Noun methodology? Where, for an extra degree of difficulty, the verbs are extremely limited? | |
Dec 5, 2013 at 11:35 | history | edited | gnat | CC BY-SA 3.0 |
type class += http://en.wikipedia.org/wiki/Type_class "what's this"
|
Dec 4, 2013 at 11:24 | comment | added | Marjan Venema | "...because it depends so much on how you formulate a sentence." Yay! Oh and I do love your banking example. Never knew that all the way back in the eighties I was already taught functional programming :) (data centric design and time-independent storage where balances etc. are computable and should not be stored, and someone's address should not be changed, but stored as a new fact)... | |
Dec 4, 2013 at 10:29 | comment | added | Pierre Arlaud |
I like your haskell comparisons, it makes the answer a bit more… fresh. What would you then say about designs that allow an ActionRecord to both be a model and a Database requester? No matter the context it seems to be breaking the single-responsibility principle.
|
|
Dec 4, 2013 at 10:23 | history | answered | Jörg W Mittag | CC BY-SA 3.0 |