在 mac osx 上的文件系统中组织源代码
关于在 mac osx 上组织源代码的好方法有什么建议吗?我通常进行 ruby 或 ruby on Rails 开发,并且我过去有很多使用经典 asp 和 asp.net MVC C# 的项目。我还从 github 下载了很多 git 存储库。
我想要一些一般准则,但我确实有一些具体问题。
我应该将我的源代码文件放在我的用户下吗?像这样
/Users/Brand/MySourceFiles/...
还是我应该把它放在根下?我更喜欢根,但不知道这是不是一个坏主意。
/MySourceFiles/...
我应该将我的网站项目与非网站项目分开吗?
对于网站项目,我有很多 Photoshop 文件,这些文件应该放在哪里?
我有什么理由应该将 .net 和 Rails 项目保存在不同的文件夹中?比如一个用于 asp.net,一个用于 Rails?
Any recommendations on a good way to organize source code on mac osx? I'm usually doing ruby or ruby on rails development and I have a lot of past projects in classic asp and asp.net MVC C#. I also have a lot of git repos I download from github.
I want some general guidlines but I do have a few specific questions.
Should I put my source code files under my user. So like this
/Users/Brand/MySourceFiles/...
Or should I put it under the root? I prefer the root but dunno if that's a bad idea.
/MySourceFiles/...
Should I keep my website project separate from my non-website projects?
For website projects I have a lot of photoshop files, where should those go?
Any reason I should keep my .net and rails projects in different folders? Like one for asp.net and one for rails?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“在您的用户下”,即在您的主目录中。许多人喜欢在他们的主目录中有一个 src 目录,用于存放源代码。我认为您不会就如何组织 src 文件夹达成任何共识 - 大多数时候它只是扁平的,其中包含许多子目录。
"Under your user", i.e., in your home directory. Many folks like to have a
src
directory in their home directory which they use for source code. I don't think you'll find any consensus on how to organize thatsrc
folder -- most of the time it's just flat, with many subdirectories in it.