Click here to Skip to main content
15,504,549 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionCompare two remote git repositories Pin
_Flaviu17-Nov-22 22:10
_Flaviu17-Nov-22 22:10 
AnswerRe: Compare two remote git repositories Pin
Richard Deeming17-Nov-22 22:43
mveRichard Deeming17-Nov-22 22:43 
GeneralRe: Compare two remote git repositories Pin
_Flaviu17-Nov-22 22:52
_Flaviu17-Nov-22 22:52 
GeneralRe: Compare two remote git repositories Pin
Richard Deeming17-Nov-22 22:58
mveRichard Deeming17-Nov-22 22:58 
Question? where should I go ? Pin
pitwi17-Nov-22 11:35
pitwi17-Nov-22 11:35 
AnswerRe: ? where should I go ? Pin
Richard Deeming17-Nov-22 22:41
mveRichard Deeming17-Nov-22 22:41 
AnswerRe: ? where should I go ? Pin
Gerry Schmitz18-Nov-22 5:32
mveGerry Schmitz18-Nov-22 5:32 
AnswerRe: ? where should I go ? Pin
pitwi20-Nov-22 0:39
pitwi20-Nov-22 0:39 
QuestionFinancial/Accounting Data warehouse model design - need advice!!! Pin
Trang T10-Nov-22 18:28
Trang T10-Nov-22 18:28 
AnswerRe: Financial/Accounting Data warehouse model design - need advice!!! Pin
Gerry Schmitz20-Nov-22 6:25
mveGerry Schmitz20-Nov-22 6:25 
QuestionWhat Languages/Frameworks are Modern Commercial Windows Applications Made With? Pin
Peter Moore - Chicago9-Nov-22 11:40
Peter Moore - Chicago9-Nov-22 11:40 
AnswerRe: What Languages/Frameworks are Modern Commercial Windows Applications Made With? Pin
Gerry Schmitz20-Nov-22 6:32
mveGerry Schmitz20-Nov-22 6:32 
GeneralRe: What Languages/Frameworks are Modern Commercial Windows Applications Made With? Pin
Peter Moore - Chicago20-Nov-22 6:40
Peter Moore - Chicago20-Nov-22 6:40 
AnswerRe: What Languages/Frameworks are Modern Commercial Windows Applications Made With? Pin
Mycroft Holmes20-Nov-22 14:23
professionalMycroft Holmes20-Nov-22 14:23 
QuestionRIBs Architecture Pin
Member 1237212418-Aug-22 5:26
Member 1237212418-Aug-22 5:26 
Questionorganizing everything visible on screen Pin
Calin Negru6-Aug-22 1:14
Calin Negru6-Aug-22 1:14 
AnswerRe: organizing everything visible on screen Pin
Mircea Neacsu6-Aug-22 1:47
mvaMircea Neacsu6-Aug-22 1:47 
AnswerRe: organizing everything visible on screen Pin
Gerry Schmitz6-Aug-22 8:04
mveGerry Schmitz6-Aug-22 8:04 
GeneralRe: organizing everything visible on screen Pin
Calin Negru6-Aug-22 11:42
Calin Negru6-Aug-22 11:42 
GeneralRe: organizing everything visible on screen Pin
Greg Utas6-Aug-22 13:23
mveGreg Utas6-Aug-22 13:23 
The problem with using switch statements to control behavior is this: when you want to add a new type of block, you have to hunt down every switch statement that requires a new case label. That's why using virtual methods is preferable. You just invoke the virtual method, and each different type of block provides the code that would otherwise have gone with a case label.

It can sometimes be hard to define the interface for a virtual method. For those situations, you can invoke a virtual type method that returns a block's type, which you can then use in a switch statement after all. But if you find yourself doing this often, it can mean that your methods are too big and should be broken into smaller pieces that would make it easier to delegate most of what they do to virtual methods instead.

It's annoying to have to define a virtual method and override it in all the necessary places. The "code it now!" approach is to just write a switch statement. But in a large program, the time needed to add virtual methods will be more than recovered because the resulting code will be easier to maintain and evolve.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: organizing everything visible on screen Pin
Calin Negru7-Aug-22 0:21
Calin Negru7-Aug-22 0:21 
GeneralRe: organizing everything visible on screen Pin
Gerry Schmitz7-Aug-22 7:54
mveGerry Schmitz7-Aug-22 7:54 
GeneralRe: organizing everything visible on screen Pin
Greg Utas7-Aug-22 8:11
mveGreg Utas7-Aug-22 8:11 
GeneralRe: organizing everything visible on screen Pin
Calin Negru7-Aug-22 19:18
Calin Negru7-Aug-22 19:18 
GeneralRe: organizing everything visible on screen Pin
Gerry Schmitz7-Aug-22 8:06
mveGerry Schmitz7-Aug-22 8:06 

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.