Click here to Skip to main content
15,888,113 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Decalring global variable in VBA editor. Pin
Pete O'Hanlon17-May-08 8:46
mvePete O'Hanlon17-May-08 8:46 
GeneralRe: Decalring global variable in VBA editor. Pin
led mike19-May-08 4:43
led mike19-May-08 4:43 
Questiontracking sales of electronic pump machines Pin
mickeyen17-May-08 2:16
mickeyen17-May-08 2:16 
AnswerRe: tracking sales of electronic pump machines Pin
led mike19-May-08 5:05
led mike19-May-08 5:05 
GeneralRe: tracking sales of electronic pump machines Pin
mickeyen25-May-08 15:33
mickeyen25-May-08 15:33 
GeneralRe: tracking sales of electronic pump machines Pin
Mark Churchill10-Jun-08 21:07
Mark Churchill10-Jun-08 21:07 
GeneralRe: tracking sales of electronic pump machines Pin
mickeyen15-Jun-08 14:36
mickeyen15-Jun-08 14:36 
QuestionCommand Pattern Implementation [modified] Pin
Tristan Rhodes16-May-08 5:29
Tristan Rhodes16-May-08 5:29 
Hi Guys,

I've been working on a system for a while now, and it initially started off with a handful of functions that could be applied to it. This increased over time to around, and i split them up and put related functions into appropriate classes. These classes are now exhibiting the same problem i had initially with 100 methods in the same class. (Messy and poor cohesion)

* I Have a set of low level classes that expose all the fine grain detail.
* I have a set of high level classes that contain complex functions that manipulate the low level classes.
* The high level functions are largely simple [void Function()]. Some with a few Private utility methods.
* The high level functions generally do not call one another in the same class.
* The high level functions DO call one another in different classes.
* All High level function calls are made through a HUGE case statement atm, that is wrapped in a Logging exception handler.

Many of these functions are invoked from Menu or Hotkeys or other argument free events such as Button press.

I get the impression that this lends itself to a Command Pattern, but while i understand the concept, i can't get my head around how to implement it. (Factory? Pre-loaded Command Dictionary?)

Also, how would i go about implementing a Command Tree? i.e. where one command calls another, and so on and so forth? And would this be a reasonable thing to do?

Any Ideas?

Cheers

Tris

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

modified on Friday, May 16, 2008 11:35 AM

AnswerRe: Command Pattern Implementation Pin
led mike19-May-08 4:41
led mike19-May-08 4:41 
GeneralRe: Command Pattern Implementation Pin
Tristan Rhodes20-May-08 1:47
Tristan Rhodes20-May-08 1:47 
GeneralRe: Command Pattern Implementation Pin
led mike20-May-08 5:38
led mike20-May-08 5:38 
GeneralRe: Command Pattern Implementation Pin
Tristan Rhodes20-May-08 6:03
Tristan Rhodes20-May-08 6:03 
GeneralRe: Command Pattern Implementation Pin
Tristan Rhodes20-May-08 6:11
Tristan Rhodes20-May-08 6:11 
GeneralRe: Command Pattern Implementation Pin
led mike20-May-08 6:30
led mike20-May-08 6:30 
GeneralRe: Command Pattern Implementation Pin
Tristan Rhodes20-May-08 6:53
Tristan Rhodes20-May-08 6:53 
GeneralRe: Command Pattern Implementation Pin
led mike20-May-08 7:30
led mike20-May-08 7:30 
QuestionOnLoad Event for Corel Draw Pin
raja baireddy16-May-08 4:28
raja baireddy16-May-08 4:28 
QuestionStateless server definition Pin
AikinX15-May-08 4:17
AikinX15-May-08 4:17 
AnswerRe: Stateless server definition Pin
led mike15-May-08 4:53
led mike15-May-08 4:53 
GeneralRe: Stateless server definition Pin
AikinX15-May-08 6:11
AikinX15-May-08 6:11 
GeneralRe: Stateless server definition Pin
led mike15-May-08 6:29
led mike15-May-08 6:29 
GeneralRe: Stateless server definition Pin
AikinX15-May-08 20:20
AikinX15-May-08 20:20 
GeneralRe: Stateless server definition Pin
led mike16-May-08 4:39
led mike16-May-08 4:39 
AnswerRe: Stateless server definition Pin
AikinX15-May-08 6:10
AikinX15-May-08 6:10 
QuestionDelegates vs. Class Hierarchy Pin
peterchen10-May-08 22:37
peterchen10-May-08 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.