by bgraves · 15y ago · 0 comments
I especially like the following quote:
It truly is amazing how much practice helps. Every time I write a new program, I run into a ton of unforeseen problems and bugs. While frustrating at the time, I usually plan around them the next time I program. This makes me feel like I’m in my very own while loop:
while (stillPrettyBadAtProgramming) {
programmingPracticeTime++;
Program *newProgram = [Program programWithType:ProgramTypeGame];
if (
newProgram.isReallyGood == YES && programmingPracticeTime >= A_HUGE_AMOUNT
){
stillPrettyBadAtProgramming = NO;
}
}I might be wrong I've been doing games in CL for some time now.
But if OP is expecting a lifetime of learning, he might want to push a new autorelease pool for each iteration.
-(void) dealloc {
self.newProgram = nil;
}as an exercise for the reader.