A
A
Alex Fox2019-02-19 12:31:31
Java
Alex Fox, 2019-02-19 12:31:31

How to plan application architecture?

Hello. I am writing my own utility (a small program for generating the docks I need from a wsdl file, I write it myself to learn something :)). Stuck on a banal question: how to organize (correctly, I write bydlocode anyway) a hierarchy / class structure - the implementation of reading data from different sources (different files, database, etc.). Tell me who understands how to do it. What to read on this issue in general. Thanks a lot.
P.S. And yes, all the standard bullshit like leave IT, etc. - walk yourself))). I ask for a normal, constructive answer))

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
VoidVolker, 2019-02-19
@VoidVolker

More or less like this:
In general, the logic is as follows:
And based on this scheme, it is much easier to understand and figure out what classes, structures, interfaces, etc. are required.

E
Evgeny T., 2019-02-19
@Beshere

Proper architecture is aerobatics. They go to this, and not everyone reaches it.
To begin with, I advise you to adopt the following principle. At least some kind of architecture begins to appear when the code is divided into independent blocks with unchanged well-described interfaces. Here you sit, writing a program, somehow you understand that you have been writing this block for the tenth time - it's time to move it into a separate function. Over time, you see such pieces the first time and you begin to acquire your own libraries, the building stock of which will make your code concise and flexible.
That would be enough to be a good programmer in the 20th century. Alas, you have to study further:
1. "Clean architecture" Martin
2. "Perfect code" McConnell
3. OOP patternshttps://refactoring.guru/ru

D
developer007, 2019-02-19
@developer007

it just
comes with experience

B
BorLaze, 2019-02-19
@BorLaze

Alex, are you not embarrassed by the classic hierarchy of June-Middle-Signor-Architect programmers?
Sorry, but your question is from the series "rookie asks how to learn marshal-level strategic thinking."
When you grow up to a signor, you yourself will begin to understand. So far, no way.
For example: "how to organize (correctly, I write the bydlocode anyway) the hierarchy / structure of classes - the implementation of reading data from different sources (different files, database, etc.)" - well, I'll tell you that you need to either organize a common interface and a reader factory (option A), or to implement it in the form of strategies (option B) - will this help a lot?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question