D
D
dNertyco2021-07-17 17:59:09
Web development
dNertyco, 2021-07-17 17:59:09

What is the most convenient and cool file structure for a project?

I ran into such a problem that each project stores files and folders in its own way.
What is the best file structure?
I will give an example of how files can be located in different ways:

1)

project{
        img{
            file1.svg
            file2.svg
            file3.svg
        }
        php{
            auth.php
            account.php
            admin.php
        }
    }


2)
project{
        auth{
            file1.svg
            auth.php
        }
        admin{
            file3.svg
            admin.php
        }
        account{
            file2.svg
            account.php
        }
    }


I heard that Yandex has recommendations about this. Share your opinions, tips and information you know about.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-07-17
@dNertyco

Everyone stores in their own way precisely because there is no universal ideal. Do what is comfortable for you personally. And “coolness” in general should be left outside the office doors.

I heard that Yandex has recommendations about this.
Are you talking about BEM, perhaps?
PS Your second option, of course, is delusional.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question