Monday, September 30, 2013

Refactoring almost done

I am almost done with moving about 370 lines of code from the viewcontroller into the model. There were a lot of bugs along the way. This took me a couple of weeks to do.

Along the way I found a good article about bitwise operators in Objective C. I asked What is the convenience method to compare two NSNumbers with float values using limited precision? but still haven't gotten a response. I asked this because I learned some very annoying things about floating point imprecision. Many people have had this problem before. Answerers always reference this really long-ass thing about floats. Blah.

I still haven't got my double-tap recognizer on the segmented control in the main view controller, but I did get a couple answers on how to do it potentially.

Anyway that's where we're at, gotta go get some real life shit done...

Saturday, September 28, 2013

Submitting my App again

I've been going through the Apple guide to submitting your app and trying to get it all done. Still need to fix bugs first though.

Infix Expression Calculator

I used stribehou's Infix Expression Calculator for Objective C to add math expression parsing and computation functions to a text field in my app. Woot! It uses the shunting yard algorithm, and I found it by googling about that. This algorithm is like how train yards control trains. So the interwebs aren't a series of tubes... they're a series of trains! Unless you're in London.

Agile Development

I kept seeing "Agile" everywhere so I googled it. Found some interesting links, like Jeff Sutherland's Agile Principles and Values at Microsoft, and of course the Agile Manifesto. Monjurul Habib's Agile software development methodologies and how to apply them seems like a good explanation. Of course just like with Einstein's Relativity, the original thing makes much more sense, and is much more clearly written, than any of the articles about it. Programmers aren't good writers because they approach writing the same way they approach programming. Ironically, approaching human interaction the same way you approach programming is the antithesis of the Agile philosophy :P

Sunday, September 15, 2013

Trying to figure out how to make a touchDownRepeat work on a UISegmentedControl

CocoaNetics talks about how to programatically make a button that has double-tap functionality. But how do you use Interface Builder to do the same thing?

Sunday, September 8, 2013

Sony Camera Developing

Sony has now a way to become a developer for its WiFi cameras' API. But the API seems quite limited at this point: you cannot change the shutter speed, ISO, aperture, white balance, or any such things... just simply take a picture. Oh well, maybe later.