Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 4127

A design pattern is a general reusable solution to a commonly occurring problem in software design.

1
vote
There are lots of kinds of "wrapper" patterns, and I wouldn't object to calling what you are doing an "adapter". However... I think of an adapter more as a wrapper that allows use of an interface tha …
answered Jan 17 by Eric King
10
votes
As little as possible. Preferably none. The controller should be concerned with accepting the request, asking the correct domain service to process the request, and handing off the response to the co …
answered Dec 14 '10 by Eric King
3
votes
I think your option number 5 is best, but with some slight tweaking: Your ViewModel should have a property that indicates whether the data can be updated, or not. Perhaps a "CanOverrideLateFine" bool …
answered Feb 18 '12 by Eric King
8
votes
Simply calling Ioc.Resolve(ISomeInterface) doesn't mean that the IoC container is being used as a Service Locator. After all, Resolve() has to be called somewhere, right? The clue is where and how ma …
answered Dec 12 '12 by Eric King
2
votes
You say you're doing this is a DDD manner, right? Then the FareRepository should be concerned with persisting your data (exposing the Fare data as if it were an in memory collection). If all you have …
answered Nov 8 '12 by Eric King
55
votes
Generally, you want your Controllers to do only a few things: Handle the incoming request Delegate the processing to some business object Pass the result of the business processing to the appropriat …
answered Feb 18 '12 by Eric King
2
votes
At the program level, there will always be a point at which a decision needs to be made which concrete implementations of IGraphics and IPlayer will be given to Game. This is what you're seeing here. …
answered Dec 31 '13 by Eric King
36
votes
Fluent Interface I've always heard of this method being called a 'fluent interface', as coined by Eric Evans (of Domain Driven Design fame) and Martin Fowler (of Agile Manifesto fame). The main draw …
answered Mar 2 '12 by Eric King
14
votes
I think the word 'service' gets bandied around so much that it's meaning nowadays is very overloaded and confusing. There is a big difference between a 'service layer' and a 'web service [layer]'. …
answered Sep 24 '12 by Eric King
25
votes
You've got a lot of moving parts in your question, touching on a lot of concepts, but here's my basic advice when it comes to how to think about a mid-to-large scale MVC application: Presentation <-- …
answered Oct 4 '13 by Eric King