Answer the question
In order to leave comments, you need to log in
How to place requests correctly, in gui or in a separate file?
There is a simple gui, in which, by clicking on lines (10-15 pieces), queries will be executed in the database.
What is the correct way to do this: write all requests to a file with gui or create a separate file, where to enter all requests as functions and then call them?
Answer the question
In order to leave comments, you need to log in
According to the Orthodox, through imports of course. And the modular concept looks pretty good for further expansion of the project.
If I am sure that there will be no project expansion and the number / size of requests is not large, then I would leave the requests in the GUI class, and not create a separate class for three requests, four lines each. And if there are a lot of requests or they are large in themselves, then only in a separate class
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question