Click here to Skip to main content
15,881,638 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: code organisation Pin
Calin Negru19-Feb-22 8:10
Calin Negru19-Feb-22 8:10 
GeneralRe: code organisation Pin
Richard MacCutchan19-Feb-22 21:44
mveRichard MacCutchan19-Feb-22 21:44 
GeneralRe: code organisation Pin
Calin Negru25-Feb-22 9:41
Calin Negru25-Feb-22 9:41 
GeneralRe: code organisation Pin
Richard MacCutchan25-Feb-22 22:17
mveRichard MacCutchan25-Feb-22 22:17 
GeneralRe: code organisation Pin
Calin Negru26-Feb-22 0:14
Calin Negru26-Feb-22 0:14 
GeneralRe: code organisation Pin
Richard MacCutchan26-Feb-22 1:03
mveRichard MacCutchan26-Feb-22 1:03 
GeneralRe: code organisation Pin
Snesh Prajapati26-Feb-22 5:04
professionalSnesh Prajapati26-Feb-22 5:04 
AnswerRe: code organisation Pin
Greg Utas4-Feb-22 5:52
professionalGreg Utas4-Feb-22 5:52 
Some projects are as you describe. The only way to analyze dependencies is by #include directives, which aren't even reliable. Ones that aren't needed don't necessarily get removed. And others that should be added aren't, because the header in question gets accidentally included, transitively. Sometimes A.cpp #includes B.h, and B.cpp #includes A.h for reasons of collaboration. Such circular dependencies are sometimes unavoidable.

Layering is the main way to impose higher level structure. The software is organized into static or dynamic libraries that preclude circular dependencies. That is, if library B has a file that #includes a file in library A, then no file in A can #include anything in B. This allows libraries to be tested independently and also allows an application to be developed without having to use a monolithic code base that contains various things that the application doesn't need.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

AnswerRe: code organisation Pin
jschell17-Feb-22 11:21
jschell17-Feb-22 11:21 
QuestionBest Way To Solve This? Pin
Kevin Marois11-Jan-22 6:32
professionalKevin Marois11-Jan-22 6:32 
AnswerRe: Best Way To Solve This? Pin
englebart15-Feb-22 16:54
professionalenglebart15-Feb-22 16:54 
QuestionWould it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
oofalladeez34328-Dec-21 9:32
professionaloofalladeez34328-Dec-21 9:32 
AnswerRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak28-Dec-21 11:02
mveDave Kreskowiak28-Dec-21 11:02 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:38
jschell30-Dec-21 7:38 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak30-Dec-21 7:39
mveDave Kreskowiak30-Dec-21 7:39 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:44
jschell30-Dec-21 7:44 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak30-Dec-21 7:46
mveDave Kreskowiak30-Dec-21 7:46 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:50
jschell30-Dec-21 7:50 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
Dave Kreskowiak30-Dec-21 8:01
mveDave Kreskowiak30-Dec-21 8:01 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 8:12
jschell30-Dec-21 8:12 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
oofalladeez34330-Dec-21 7:44
professionaloofalladeez34330-Dec-21 7:44 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
oofalladeez34330-Dec-21 7:44
professionaloofalladeez34330-Dec-21 7:44 
GeneralRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
MarkTJohnson25-Feb-22 8:40
professionalMarkTJohnson25-Feb-22 8:40 
JokeRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
englebart15-Feb-22 17:00
professionalenglebart15-Feb-22 17:00 
AnswerRe: Would it be possible to build megastructures like the Forerunners in <i>Halo</i>? Pin
jschell30-Dec-21 7:42
jschell30-Dec-21 7:42 

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.