design-patterns
In simplest terms, what is a factory?
What is a factory and why would I want to use one?开发者_如何学GoAre you familiar with JDBC? It\'s one and all (abstract) factory. It\'s a good real world example.[详细]
2023-04-08 04:37 分类:问答How to ensure that only one XMPPConnection will be created? Use singletons?
I\'m dealing with creating a web service which will receive requests to send messages via XMPP. However, all messages will be sent from one account (the server logs in and sends notifications to users[详细]
2023-04-08 04:04 分类:问答asp.net mvc action result and count question
I am working on a plugin based architecture. Its kind of social networking site. For a user, I can have pictures, blogs, videos. but they all come from modules.[详细]
2023-04-08 02:02 分类:问答Controlling Windows in WPF when using MVVM pattern
A little while ago, I wrote this SO post looking for a good way to handle UI and business layer interaction, and I liked the answer which was to use the MVVM pattern.[详细]
2023-04-08 00:34 分类:问答Java: Am I missing a restricting pattern? I need to restrict implementation with only selected methods
Say I have some class that is too fat of methods for one concrete case, but fits to about a half of them, so it is no way but to extend it. Simultaneously, I want to hide the fact that I\'ve extended[详细]
2023-04-07 20:27 分类:问答Are empty interfaces code smell? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Closed 7 years ago. Locked. This question and its answers are locked because the question is off-topic but h[详细]
2023-04-07 20:21 分类:问答Reasons for and against objects handling their own persistence [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th[详细]
2023-04-07 18:35 分类:问答observer design pattern question
i am creating a oop system in php and would like to implement more observer patterns into it as i have heavy coupling between my classes that i wish to reduce.[详细]
2023-04-07 17:29 分类:问答How do I avoid passing context object all over the place? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Dependecy Hell - how does one pass dependencies to deeply nested objects[详细]
2023-04-07 16:56 分类:问答Design approach for controller
What is the design approach if3 war files sharing same se开发者_JAVA百科rvice and busniess logic layer.How i should use Controller here. if i am not using application server,I mean not packing into ea[详细]
2023-04-07 13:30 分类:问答