design-patterns
C# Prism Composite Application module loading
Is there a natural way to register modules within a module for the composite application pattern in prism?[详细]
2023-04-12 00:46 分类:问答JSON/XML output in GUI, BLL or DTO?
I\'m using content-negotiation, so depending on the header of the request I provide JSON/XML output. Now I was wondering what the best location is for providing this functionality.[详细]
2023-04-12 00:31 分类:问答Storing state in service layer
I have a base service class, and I have a 开发者_StackOverflow中文版bunch of services, is it good/bad practice to store data on a service class?[详细]
2023-04-12 00:18 分类:问答Use Enum or String for a static factory method?
Is it better to use enum or String to dispatch to the right object to create in a static factory method ?[详细]
2023-04-11 23:12 分类:问答AbstractFactory Versus Bridge Pattern
I have just learned the Bridge Pattern and its intent : Decouple an abstraction from its implementation so that the two can vary independently.[详细]
2023-04-11 22:05 分类:问答Building the right model in MVC design
I\'m posting a ghost here, that daunts me for some years. It\'s a question about how to build the right model, the right objects.[详细]
2023-04-11 21:48 分类:问答Abstracting objects between description and implementation
I feel like I know design patterns, but this is escaping me. I have two separate projects, one as a library for the other. The library reads XML files and parses them into data structures. It is only[详细]
2023-04-11 21:31 分类:问答Template site for MVC3; is this the proper way to display the model?
I\'m confused about the way Microsoft is displaying the login page in their template site. The specific phrasing for \"User name\", \"Password\", and \"Remember me?\" is set in the model itself. This[详细]
2023-04-11 17:29 分类:问答Is it okay to break LSP for the sake of binding?
Something tells me I might get lynched for asking this. And sorry for the long winded description in advance.[详细]
2023-04-11 15:37 分类:问答Speeding up date pattern matching
I am writing some simple code that tries to deduce whether or not a specific String is actually开发者_开发知识库 a Java date and, if yes, identify its format (pattern).[详细]
2023-04-11 13:02 分类:问答