• 请不要在回答技术问题时复制粘贴 AI 生成的内容
fxjson
V2EX  ›  程序员

关于开发中目录/文件命名的问题请教

  •  1
     
  •   fxjson · Nov 8, 2024 · 1325 views
    This topic created in 556 days ago, the information mentioned may be changed or developed.

    习惯了业务层开发,常用的目录名也就是 controller 、model 、service 、util 、common 、command 这些,看到一些开源项目,人家起的名字挺优雅,关键是目录和文件名字分类清晰,比如子目录 driver 、cache 、manage 等,而且文件名也挺见名知意,什么 xxbuidler ,xxxManager ,xxxDriver 之类,看过一些代码设计上的书籍,比如重构、代码整洁之道,这些都是针对具体代码进行讲解的,而不是目录、文件名的讲解,不知道有什么技巧没有,或者好的书籍,欢迎大家推荐和指导,谢谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5804 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 02:57 · PVG 10:57 · LAX 19:57 · JFK 22:57
    ♥ Do have faith in what you're doing.