独立开发人员在创建可可程序时应该使用哪些方法?

发布于 2024-09-11 19:30:53 字数 288 浏览 8 评论 0 原文

我最近开始学习可可开发,以相当大规模(可能基于核心数据)的应用程序为目标。我一直在研究开发方法,这些方法将用于帮助构建具有更好代码的更高质量的产品,尽管我已经找到了一些我确信我想使用的方法,例如版本控制(可能使用 git),但还有一些其他人喜欢单元测试,当大部分应用程序都是用 IB 和 Core Data 编写时,它们似乎很难使用。我真的很感激一些关于独立开发人员应该使用哪些工具或工作流程方法的建议。

谢谢。

PS 第一篇文章SO!

编辑:顺便说一下,我主要计划为 OS X 而不是 iPhone 进行开发。

I have recently started learning cocoa development with a fairly large scale(probably Core Data based) application in mind as my goal. I have been looking into development methodologies that would be used to help build a higher quality product with better code and although I have found a couple that I am sure I would like to use, such as version control(probably with git) there are some others like unit testing that seem like they would be hard to use when the majority of the application is written with IB and Core Data. I would really appreciate some suggestions as to what tools or workflow methods a solo developer should be using.

Thanks.

P.S. First post in SO!

EDIT: By the way I primarily plan to develop for OS X and not the iPhone.

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

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

发布评论

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

评论(3

清眉祭 2024-09-18 19:30:53

欢迎来到 SO :-)

作为一名独立开发者,我遇到的一件事是纪律......!

如果您想提高代码质量,减少重写代码的次数,直到您的接口/类结构真正起作用,并且拥有可以在一年内返回的代码,请务必提前进行评论、测试和设计并知道你的意思!

Apple 有一个很棒的指南 单元测试

从 iOS 4 开始,Apple 添加了一个 UIAutomation 框架来测试应用程序的用户界面。
O'Reilly 有一个 此处指南,您可能希望达到峰值Apple 的 UIAutomation 官方文档

它相当新,但看一下也没什么坏处。

SO 上也有人询问iPhone 应用程序的自动化测试

welcome to SO :-)

One thing I struggle with as a solo dev is discipline...!

Always comment, test, design ahead if you want to increase the quality of your code, reduce the amount of times you re-write something until your interfaces/class structure actually works, and have code that you can come back to in a years time and know what you mean!

Apple have a great guide for Unit Testing

As of iOS 4, Apple have added a UIAutomation framework for testing the User Interface of apps.
O'Reilly has a guide here, and you may want to have a peak at Apple's official documentation for UIAutomation

Its fairly new, but it won't hurt to take a look at it.

There has also been a query on SO about automated testing of iPhone apps.

怎会甘心 2024-09-18 19:30:53

我们自己的 Chris Hanson 做了一个关于 Cocoa 和单元测试的系列文章。这并不像你想象的那么难。

Our own Chris Hanson did a series of posts about Cocoa and Unit Testing. It isn't as difficult as you think.

苏璃陌 2024-09-18 19:30:53
  1. 使用 git,它可以很容易地返回到以前的版本,
  2. 注释你的代码,正如其他人提到的,你需要几年后查看它并理解它,
  3. 养成自己构建可重用类的习惯。您在开发时执行的许多任务都需要在其他项目中重复
  4. ,无论您多么努力,您的用户都会遇到问题。因此,您必须开发一种有用的方法,允许您的客户向您报告他们的错误。我最近为自己实现了这个。它基本上是一种通过电子邮件从用户那里获取有意义的堆栈跟踪的方法。我在这里学到了这一点。
  1. use git, it makes it really easy to go back to prior versions
  2. comment your code, as others mentioned you'll need to look at it years later and understand it
  3. get in the habit of building yourself reusable classes. Many tasks you perform when developing will need to be duplicated in other projects
  4. expect that no matter how diligent your try to be, your users will have problems. As such you have to develop a methodology of allowing your customers to report their errors to you that is useful. I recently implemented this for myself. It's basically a way to get meaningful stack traces back from users through email. I learned this here.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文