Spent the day cleaning…

March 16, 2008

Well, I knew I had some memory leaks, but I didn’t realize they were so bad until I profiled it. 64MB after one fetch request.

So I went through the program and fixed the leaks, and reduced them down to  64KB, which I don’t know if I can actually get rid of since they are associated with NSNumber calls. I cannot find any Apple documentation that says whether these objects are autoreleased or not. Or even retained for that matter, since the program crashes if I don’t retain them, but if I release them myself, the program crashes. What gives? Anyway, I’m glad I went through to find these problems now, as opposed to later!

 I am going to implement a goal-oriented approach to workout tracking in Fitness.app, since traditional workout routines can be used for many different personal goals ranging from weight loss and weight gain to strength routines, and endurance training. CrossFit peeps won’t have to worry though, I’m keeping you guys top priority.

I’ve been thinking about what I can build for the iPhone / iPod Touch, and am keeping this in the back of my mind, since my main focus is this program. I know I will integrate this program with a portable version, whether the portable version will be feature rich, or just a way to record daily activities is dependent on the amount of free time I have, which currently is very little.

Advertisements

iPhone and iPod Touch

March 8, 2008

Apple released the SDK.’nuff said.


Thoughts on workout numerical analysis.

March 7, 2008

I’ve been struggling over the past, what, two years figuring out how to combine workout data such as reps, sets and weight into a comprehensive value. This value, when compared with other values in a trainee’s workout history should be a good indication of progress, and be able to provide a visual indication of achievement. I think I’ve figured out how to combine the numbers.Given this set of data:table.pngI’ve produced this graph, which I think represents the progress quite well:workout graphThoughts and comments are appreciated and desired.Graphing competitive workouts like CrossFit is quite easy, because I have a solid number to work with: max rounds in a set amount of time, or a shortest time to complete a set number of rounds. Graphing weight/strength training routines is quite challenging.


Custom Calendar View

March 3, 2008

I’ve started working on a custom calendar for the program.
Logan Rockmore has a custom calendar that I will probably use as a starting point for the calendar. It’s pretty good but has significant drawing issues, and leaves a little to be desired. I’ll release the source after I feel that the code will be stable and useful. I’m planning on releasing the graph views source as well. If it’s possible and not too much work, they will both be Interface Builder plugins, so as to make everyone’s life a little easier.

I’m trying to figure out how to best allow users to enter variable amounts of weight, reps and sets for a particular workout. I think this may be the most difficult task so far. Trying to ensure the program is easy to use remains my top priority. A person shouldn’t really have to read any documentation on how to log their workouts and nutrition – it should be straight forward. Even generating results should be a no-brainer. The purpose of software is to save you time not waste it.

Here’s to hoping they add more hours to the day!☺