I’m in my blind spot

Sometimes as a developer you encounter periods where you code a lot without having the possibility to test your code until it’s completely done.

I’m in that period now.

Since two days, I’ve been coding and coding and coding and there’s no way for me to test a single line of code until the whole puzzle is complete. That’s a bit scary and if something doesn’t work, it will be quite a challenge to find out where the fault is (faults are).

So what I’m doing is that I’m building all the base functions of the Lobby. This includes fetching the list of fights, parsing them into an array of match-objects which in turn creates arrays of player-objects, sorting the matches, setting the flags, handle timers, doing logic, etc. It’s not until all objects and functions are included that I can even try to fetch any data to see what happens.

But it’s fun. Objective C still sucks like hell but at least I know how to suck it now. Also, Cocos2D is a great help. That’s a library constructed the way someone sane would do it.

One more thing I created yesterday is my very useful Fetch-class. It’s really quite clever. You create a new Fetch-object, give ut an URL and parameters, tell it to Execute which means it will start a background process doing a http post (which is blocking so you don’t want to do that on the main thread). When done, it makes a callback to a named function in a specific class that takes care of the result. Viola! Done.

But then again… I haven’t been able to test it yet.
Cause I’m in my blind spot.

1 Response to “I’m in my blind spot”

  1. April 14, 2012 at 12:14 am

    keep up the good work! it will all pay off in the end!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: