我最近开始学习可可开发,以相当大规模(可能基于核心数据)的应用程序为目标。我一直在研究开发方法,这些方法将用于帮助构建具有更好代码的更高质量的产品,尽管我已经找到了一些我确信我想使用的方法,例如版本控制(可能使用 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.
发布评论
评论(3)
欢迎来到 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.
我们自己的 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.