Best way to organize the files in my project

后端 未结 3 876
自闭症患者
自闭症患者 2021-02-11 06:20

What is the best way to organize the files in your project?

For example do you put all user controls in a separate folder or do you place them in a sub folder? Do you h

3条回答
  •  情书的邮戳
    2021-02-11 07:11

    I agree with the other answers that suggest naming folders by purpose and not type (i.e. call a folder Model, not Classes and include only data-oriented classes in that folder). Additionally I like to keep all Controls and Data/Model related classes in their own separate projects that are not allowed to reference each other. This can help you enforce the separation between view and model in your code which is generally a good thing.

提交回复
热议问题