C
C
CHtommy2022-01-05 12:08:42
Hierarchical structures
CHtommy, 2022-01-05 12:08:42

Is there an ideal way to build a web application?

With coming.
In a nutshell... I am writing a backend and faced such a problem that in the views folder I constantly figure out how to name certain templates, etc.
Then I tried react and liked the fact that each page is divided into folders, you can even separate it for each component scss and implement via react (thanks to it, you don't need to come up with wrapper-main-menu-1-2-3. etc) and somehow the hierarchy is built by itself.
Naturally, I do not consider react for further development. (just an experience)

And after all this, I now think ... If I write only backend, then it makes sense for me to separate scss for each views, generals, fonts and all that. Why build all sorts of folder hierarchies?
And of course I don't quite understand how to do it. There are some articles or documentation on how to do your project correctly and without garbage.
Or, nevertheless, I’m doing some kind of game ... But it’s infuriating that the thought is constantly spinning in my head that I don’t have a project, but a trash can, and I start collecting everything again, reassembling and infuriating ...)
The downside is, that it takes a lot of time

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2022-01-05
@CHtommy

Is there a perfect ice cream? And the perfect movie? And the ideal person?

But it infuriates me that the thought is constantly spinning in my head that I don’t have a project, but a trash can, and I start collecting everything again, reassembling and infuriating ...)
This is normal and is a sign of professional growth. After some time, you will get tired of this and calm down, realizing that all this is actually not as important as it seems to you now.
There is exactly one requirement for structure: predictability. Everything else is not so important, you can work with any structure if its principle is clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question