• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a large Cocoa project - tutorials?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Creating a large Cocoa project - tutorials? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Tools for creating icons
  • Next by Date: Re: Help with CFXMLTreeCreateFromData with an NSMutableURLRequest response.
  • Previous by thread: Re: Creating a large Cocoa project - tutorials?
  • Next by thread: Re: Creating a large Cocoa project - tutorials?
  • Index(es):
    • Date
    • Thread