Answer the question
In order to leave comments, you need to log in
How to build application architecture correctly?
I learned the basics of the language, but very few places teach the correct architecture of applications. For example, there is a GUI program. The program has many buttons. By pressing one of them, you need to create files of a given format, write to the log, save information in the database.
You can do all this in the callBack function on a button signal.
You can put each operation in a function and call it in turn from the callBack function.
You can create a class for each action (DBWriter, LogWriter, etc.) and call
class instances.
Or you can create a ButtonProcessor class that will contain methods for all tasks and call its instance when the button is pressed.
How to do it right? How to learn good scalable and testable application architecture?
Answer the question
In order to leave comments, you need to log in
I learned the basics of the language, but very few places teach the correct architecture of applications.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question