Under an MVC framework, which directory structure would be expected by other developers?

后端 未结 4 539
谎友^
谎友^ 2021-01-13 01:32

Generally, MVC frameeworks have a structure that looks something like:

/models
/views
/controllers
/utils

However, in a web application sui

4条回答
  •  不要未来只要你来
    2021-01-13 01:42

    I usually group code by feature, so in your case grouping by application would make the most sense to me. The reason is that if I want to work on a particular feature, I shouldn't have to search through three separate folders looking for the components I need. If you group by the high level feature you know everything you need is together.

提交回复
热议问题