AdamSpeight2008, on 11 February 2012 - 12:39 AM, said:
mrburnttoast
The 3 basic layers (in bold) are;-
Interface Layer
The Data Layer
The Object Encapsulation Layer
The Business Logic Layer
The UI Layer
I personally think in terms of 2 extra layers (in italics).
What can separated out into code libraries?
Interfaces typically separated out.
Write the core / kernel code for the problem in an GUI agnostic way. Eg it doesn't know about the UI, it just take input and produce output. Example: Conway's Game Of Life Challenge
Then write the UI, it could be a Console or a window.
The 3 basic layers (in bold) are;-
Interface Layer
The Data Layer
The Object Encapsulation Layer
The Business Logic Layer
The UI Layer
I personally think in terms of 2 extra layers (in italics).
What can separated out into code libraries?
Interfaces typically separated out.
Write the core / kernel code for the problem in an GUI agnostic way. Eg it doesn't know about the UI, it just take input and produce output. Example: Conway's Game Of Life Challenge
Then write the UI, it could be a Console or a window.
While I agree with everything you say, I'm not sure it is what is needed for this situation. The original poster seems new to programming, for example, asking whether or not the program would need a database. I think that they might benefit more from learning the basic concepts like conditional logic, looping, arrays etc than from worrying about a data access layer and OOP concepts. After that, learn begin to learn the more advanced concepts. If it was me creating this program, I would dynamically generate the controls based on values in your database. That way no changes to questions and answers never need to be dealt with in the code but rather only in the database.

New Topic/Question
Reply




MultiQuote





|