design-patterns
Using self-executing anonymous functions inside the revealing module pattern
Just wanted to know if it was a good JavaScript practice. Let\'s say I have many Web pages that all call an initialization function \"init()\", would it be the right thing to use an IIFE inside my pa[详细]
2023-04-10 21:39 分类:问答Differing access on a member of a class according to the context
Let\'s say I have a class MainApp using methods of a dynamic library via an interface FrontEnd FrontEnd uses internally instances of a class Data (contained in a class BackEnd)[详细]
2023-04-10 20:03 分类:问答Embedding two UITableViewControllers in one UIViewController
I have a design where I need to swap in and out two tableviews using one viewcontroller (I need the same navigation title to appear for both). So I\'ve created each tableview in its own subclassed tab[详细]
2023-04-10 19:39 分类:问答what is use of Formal Protocol Object
We can create protocol object in source code but what is us开发者_运维知识库e of formal Protocol object?[详细]
2023-04-10 19:18 分类:问答Is this a variation of the decorator pattern or a pattern at all?
Below is a simplified version of code I\'ve written to override a class method (using composition), in this case method name i\'m overriding is addbuttons(); The class \"Screen\" adds buttons to a scr[详细]
2023-04-10 18:35 分类:问答What are the possible data access layer design-patterns for desktop application?
What are the possible data acce开发者_如何学Pythonss layer design-patterns for c# applications ?[详细]
2023-04-10 18:02 分类:问答Best design pattern for refactoring a class that does calculation based on many parameters
I\'m refactoring a set of classes as below which does some price calculations. the calculation is done based on many parameters.[详细]
2023-04-10 17:36 分类:问答Design Pattern which deals with loading databases
I am trying to write a windows service application which deals with storing values of an application into back end database.My design should be in such a way that user can select the back end database[详细]
2023-04-10 13:53 分类:问答Browsing existing open source projects to learn/improve class design and design patterns
I was thinking of looking into some open source projects to find examples of class design, design patterns, and maybe even some AI / algorithm stuff.[详细]
2023-04-10 13:15 分类:问答Pattern for realizing low priority background threads?
I have a (soft) realtime system which queries some sensor data, does some processing and then waits for the next set of sensor data. The sensor data are read in a receiver thread and put into a queue,[详细]
2023-04-10 13:12 分类:问答