Answer the question
In order to leave comments, you need to log in
Application structure design for a beginner?
I am a beginner, and if I need to write a more or less complex program, then I get complete nonsense in terms of code organization and architecture. That is, the program works, but the division into functions and classes is clearly not correct. Recommend resources where you can see how to properly build the application architecture. Books, articles or lessons. Various tricks when writing code for applications.
Answer the question
In order to leave comments, you need to log in
Robert Martin, "Clean Architecture", "Clean Code", "Perfect Programmer"
McConnell, "Perfect Code".
Further down the line, Fowler, Evans, Kent Beck, etc.
In no case do I advise you to replace reading books with collecting bits and pieces of information on the Internet.
I can give advice as I see it.
Divide the application into three levels:
1) Presentation - presentation level, through which the user interacts with the application;
2) Business Logic - business logic layer;
3) Persistence - the layer where the data is stored, but usually it is a relational database.
If this is a desktop application, then break the Presentation layer into three components according to the MVP (Model-View-Presenter) pattern , if this is a classic web application, then the MVC (Model-View-Controller ) pattern.
Implement the business logic layer according to the Transaction Script pattern , or the Domain Model pattern, where for starters there will be an anemic model , which completely coincides with the database schema, and store the logic in services. Further, when you gain skills, you can try to make a rich model from an anemic domain model , for this you can pay attention to the DDD (Domain-Driven-Design) methodology .
Well, the storage layer, it's still stupid through ORM tools ...
Well, something like this, there is nothing new and magical here.
do you know how to ride a bike?
.. and swim?
.. knew how from birth? or studied?
ps
Nobody uses search.
How to learn software design?
Recommend a good book(s) on software architecture design. Beginner-intermediate level
Which book to start learning about design software?
What literature to read on design?
Are there books with examples that tell you how to design software correctly?
What are some good books on application architecture?
progbook.ru/proektirovanie-i-razrabotka-po
https://www.pvsm.ru/razrabotka/111326
you can write as you like - if the code works well and you understand it,
but if you want to work in a team and in the industry, then yes - you have to do everything "correctly"
but any normal engineer can set the rules himself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question