准备和支持我的第一个非学校项目

发布于 2024-12-05 19:59:45 字数 873 浏览 0 评论 0原文

因此,我决定开始一个个人编程项目,只是为了尝试提高我的编程技能并提高我更好地组织自己的能力。

问题是到目前为止我只完成了小型作业,每个 Java 项目最多几个类(当然是文件)。我们在上一个冬季学期学习了继承和基本数据结构(链表和堆栈),目前正在学习数据结构和堆栈。使用 C++ 的算法和高级程序设计。我打算用 C++ 来做这个项目,因为它会帮助我完成课程。

这意味着我没有组织大型项目及其所需的所有经验。我希望得到一些与我已经讨论过的内容相关的一般性建议。我还没有一个项目想法,我知道这会对解决这个问题有很大帮助。

我特别关心的一件事是备份,因为它可以保证我的项目安全以及从其他机器访问的能力。我已经使用 Dropbox 来做我所有课程的作业有一段时间了,但在听说他们的隐私问题后,我真的不想在上面放任何重要的东西。有什么好的服务可以私密且安全地备份代码,但这样我仍然可以使用它而无需不断地重新下载以解密。或者我应该为此烦恼并将其开源吗?不管怎样,如果解决方案最好是免费的或者非常便宜的话那就太好了。

无论哪种情况,我都在考虑尝试某种版本管理,但我再次对此知之甚少,甚至一无所知。我正在考虑使用 NetBeans,因为它可以满足我在学校所需的一切,所以我也可以使用它,所以版本管理应该与它一起工作。我的首选操作系统是 Windows 7 64 位。

我听说过有关 Git 的好消息,但显然 NetBeans 只能与本地 Git 存储库配合使用,因此我不确定它与在线存储库的配合效果如何。

另外,关于版本控制的一个简单问题:在将程序上传到版本管理系统之前,程序是否应该处于某种工作状态,无论是否在开源站点上?

我知道我问了很多,而且我敢打赌我还可以问更多的事情。我正在寻求尽可能多的建议,因为我真的觉得我不知道自己在做什么或让自己陷入困境。

编辑:当然,代码应该能够在离线状态下运行,例如当我坐火车回家时。

So I've decided to start a personal programming project just to try and to improve my programming skills and improve my abilities to organize myself better.

The problem is I've only worked on small assignments so far, at most a few classes (the files of course) per project in Java. We covered inheritance and basic data structures (linked list & stack) in my previous winter semester and am currently taking Data Structures & Algorithms and Advanced Program Design with C++. I intend to do the project in C++ since it'll help me out with the course.

This means I don't have experience organizing a larger project and all it entails. I would love some general advice related to what I've already discussed. I don't have a project idea yet, which I know would help this out a lot.

One thing in particular I'm concerned about is backup, since it would keep my project safe as well as the ability to access from other machines. I've been using Dropbox for my homework for all my courses for a while, but after hearing about their privacy issues I don't really want to put anything important on it. What's a good service for backing up code privately and securely, but so that I can still work on it without constantly redownloading just to unencrypt. Or should I even bother with that and just make it open source? Either way it would be good if the solution were preferably free or very cheap.

In either case I was thinking about trying some sort of version management, but once again I know very little to nothing about it. I was thinking of using NetBeans since it works with everything I need for school so I may as well use it for this as well, so the version management should work with it. Also my preferred operating system is Windows 7 64-bit.

I've heard good things about Git but apparently NetBeans only works with a local Git repository so I'm not sure how well that would work with an online repository.

Also, a quick question on versioning: should the program be in some sort of working state before even uploading it to the version management system, be it on an open source site or not?

I know I'm asking a lot and I bet there are even more things I could ask. I'm looking for as much advice as I can get because I really feel like I have no idea what I'm doing or getting myself into.

Edit: Of course the code should be able to be worked on while offline, when I take the train home for example.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

逆夏时光 2024-12-12 19:59:45

从 NetBeans7.0.1 开始(根据 Git 支持计划),NetBeans 支持 pull/向远程 Git 存储库推送操作/从远程 Git 存储库推送操作。
因此,您可以将其用于:

当您使用 DVCS(Git 或 Mercurial)签入时,您不需要拥有稳定的项目,因为您仅在本地存储库中提交。如果您在备份存储库(例如您的 USB 密钥)上发布,则没关系。
这些中间提交称为“检查点提交”:请参阅“git 新手问题 - 提交风格:一次提交所有更改的文件还是一次提交一个文件?"

但是,如果您要在公共存储库上发布(其他存储库无法克隆),那么最好首先清理您的提交历史记录。

Since NetBeans7.0.1 (according to the Plan for Git support), NetBeans supports pull/push operation to/from a remote Git repo.
So you can use it with:

You don't need to have a stable project when you check-in with a DVCS (Git or Mercurial) because you are committing only in your local repo. And if you are publishing on a backup repo (like your USB key), it doesn't matter.
Those intermediate commits are called "checkpoint commits": see "git newbie question - Commit style: Commit all changed files at once or one at a time?"

But if you are publishing on a public repo (than other can clone), then it is best to clean your history of commits first.

国际总奸 2024-12-12 19:59:45

您可以查看 Bitbucket (https://bitbucket.org/),您可以在其中托管公共和私人存储库(使用 Mercurial)。
对于您担心在上传之前使某些内容进入工作状态的问题,这并不重要。如果是一个新项目,有时没有任何效果是完全正常的。

You can take a look at Bitbucket (https://bitbucket.org/) on which you can host public and private repositories (with Mercurial).
For your concerns about getting something to a working state before uploading, this is not important. If it's a new project, it's totally normal to have nothing working for some times.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文