re: Cocoa and Computational Expense

2009-06-22 Thread Mr. George Warner
On Sat, 20 Jun 2009 16:36:58 -0700 (PDT), syntonica wrote: > I am new to Cocoa (about 3 weeks now) and have not done much programming since the halcyon days of 16K RAM. WoW! a whole 16K!!! I remember paying > $50 each in 1974 for surplus 1103's, the worlds first 1K dynamic RAM. (Yeah, I ju

Re: Cocoa and Computational Expense

2009-06-21 Thread Graham Cox
On 22/06/2009, at 8:08 AM, syntonica wrote: The paradigm shift from all data available at all times with all the globals you can eat to private data has been a difficult one to make for me. I think most people who move to object-oriented programming from a classical programming backgroun

Re: Cocoa and Computational Expense

2009-06-21 Thread syntonica
Thanks All for your replies. I think I have seen the error of my ways regarding the size of my class. Since I had two classes that were so hopelessly intertwined, I put them together into one and now I see that I could indeed have done it instead with two or maybe three. The paradigm shift f

Re: Cocoa and Computational Expense

2009-06-21 Thread WT
On Jun 21, 2009, at 1:36 AM, syntonica wrote: Hello All-- Hi Kevin, I don't have much to add to the responses that others have already given you for your other questions, but I'll address the question below because I haven't seen anyone yet say what I'm about to say. Finally, on a side

Re: Cocoa and Computational Expense

2009-06-20 Thread Roland King
On Jun 21, 2009, at 1:50 PM, Justin Carlson wrote: Finally, on a side note and because this is my first OOP, just how big should a class get? Just as a rule of thumb. I have 700 lines and 50 methods in my MyDocument class and it seems positively bloated to me. It probably is too large

Re: Cocoa and Computational Expense

2009-06-20 Thread Justin Carlson
How can I tell how computationally expensive a class or method is? I've never been this far from the metal. Is there a corpus somewhere listing this, or do programmers just know these things from their experience? Hi Kevin, I recommend running Shark for tasks really want to inspect. It i

Re: Cocoa and Computational Expense

2009-06-20 Thread Nathan
Kevin, I can't give definitive answers but I'll try. I'm fascinated with the history of computers, so while I didn't experience it I see where you're coming from. Yes, we do have much more resources available now. I think you're going to have to adjust to the fact that an identical app writ