Re: Creating a large Cocoa project - tutorials?
Re: Creating a large Cocoa project - tutorials?
- Subject: Re: Creating a large Cocoa project - tutorials?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 20 Mar 2005 01:37:20 +0100
At 4:21 Uhr -0800 19.03.2005, Keith Blount wrote:
I am at a stage where I want to start rewriting a
large Cocoa project I started, but to do it right. (...)
Does anybody know of any tutorials out there, or a
book, that deals specifically with how to manage a
large project?
I can't help you with any books or tutorials, but here's two pieces
of advice that may help:
1) Don't rewrite, refactor. You're throwing out a lot of good,
debugged code. Even if the code isn't really clean, usually
re-arranging parts of it is the better idea, because that way you can
keep what works. There's a nice article at helpfultiger.com about the
topic.
2) A good rule of thumb for correctly splitting up your code is to
find repeating or similar stretches of code and turn them into
reusable code modules. That usually gives me a handy number of
classes and reduces the amount of code I have to maintain and keep
debugged. Whether you use one controller or several simply depends on
whether you think the code belongs there, or whether your controller
becomes to big. Too many OO programmers think of creating another
class as a chore. Don't. Treat it as an opportunity to model the
structure of your program the right way. If you do that, it'll become
a lot easier to make the right decisions with regard to what
functionality goes in which class.
I admit, the latter isn't really too useful in helping you design
your application, but it's the one thing that helped me get on the
right track that I found in no book.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden