src/ folder structure in C++?

前端 未结 6 1084
离开以前
离开以前 2021-02-02 00:01

i\'m coming into C++ from Java/AS3-land, and i\'m used to the package-cum-folder structure for my classes. and i like it.

i understand the very basics of namespaces in

6条回答
  •  终归单人心
    2021-02-02 00:33

    There's no reason not to and will really help people reading your code. Some things to watch out for:

    1. Don't over-nest folders, this can be confusing for readers of your code.
    2. Be consistent in the organization of your code, e.g. don't put any view code in the controllers sub-directory, or vice-versa.
    3. Keep the layout clean.

提交回复
热议问题