Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
5 answers
2k views

Design pattern for creating object hidden from client

I am having difficulty understanding which design pattern would be best for the following scenario. An application uses a database. That database can either be the production version (SQL) or a test ...
Corey P's user avatar
  • 1,224
3 votes
2 answers
3k views

Design pattern for applying different taxes based on many different factors

I've been given the task to design a system that has a product's price have different amounts of different taxes based on different factors. For example in the US you would get a few - one based on ...
SpooXter's user avatar
3 votes
2 answers
1k views

How do I design a buffer for a console?

Problem I have a graphical console widget that receives output from an interpreter. Unfortunately the console is not fast enough to paint the output in real-time. So I had to implement a buffer(FIFO ...
Vivek Joshy's user avatar
2 votes
1 answer
734 views

Designing classes the right way [closed]

I am trying to design my classes in the optimal way for the following scenario. A city has metro lines covering a number of stations.There are 4 lines represented by 4 colors.The user has to enter ...
Prasanna Aarthi's user avatar
4 votes
2 answers
14k views

How do you show the exception handler in a class diagram?

I have one exception handler class. I want to show this class in the uml -- class diagram. But, I do not know how to represent relationship between class <X> and exception handler class. How can ...
petaYAN's user avatar
  • 41
3 votes
1 answer
156 views

Access items of a container with a pattern

I've two C++ classes with a relation: a container class which has a list of items. For example a library has got many books. The classes are the library and the book. Now from the external world I ...
user2944616's user avatar
3 votes
1 answer
1k views

What's a good notation for showing MVC interactions?

I'm developing various websites and functionality to cater to various different use-cases up in Django. Is there a good notation for showing what behaviour is at each stage, e.g., swimlanes. I use ...
A T's user avatar
  • 761
2 votes
1 answer
2k views

How do you do to create the ViewModel part of your MVVM designs?

Sometimes, when I plan to create a program using this architectural pattern, I've got a lot of difficulties when I'm in the View Model phase. I'm using WAF Framework to develop this architectural ...
Oscar Fimbres's user avatar