explorers’ club


Objective-C & ActionScript 3 translation notes
Friday, June 5, 2009, 5:56 am
Filed under: Uncategorized | Tags: , , , , , , , ,

[note to self]

Just some things I am learning along the way while teaching myself Objective-C and iPhone development.   Seeing existing code is rather easy to understand in a general sense but the syntax is a tad whacky looking at this point.  I will continue to add to this as I find more translations.

variables:

NSString * someString = @"foo";
=
var someString:String = "foo";

casting:

NSObject *someObject = //pretend I know how to say new();
NSString *castedAsString = (NSString *)someObject;
=
var someObject:Object = {};
var castedAsString:String = String(someObject);

strings:

Strings come in several varieties in Objective-C.  There are NSString, NSMutableString and then the C varient char.  There are probably others I have yet to discover (CSString?).  Since most of what I have seen utilizes NSString, I will stick to that unless otherwise noted.

combining string values

NSString *firstString = @"foo";
NSString *secondString = @"bar";
firstString = [firstString stringByAppendingString:secondString]; //should trace out as "foobar"
=
var firstString:String = "foo";
var secondString:String = "bar";
firstString = firstString + secondString; //wow AS3 is very simple when working with strings

class & instance methods:

+someMethodDefinition = static public function
-someMethodDefinition = public function (instance function)

method calling:

NSString * someString = @"foo";
NSArray * someArray = [someString someNSStringMethodThatReturnsAnArray];
=
var someString:String = "foo";
var someArray:Array = someString.someStringFunctionThatReturnsAnArray();
//kinda made this up since I don't understand method arguments in Objective-C yet.

more to come…



what’s after Flex?
Thursday, June 4, 2009, 7:52 pm
Filed under: Uncategorized | Tags: , , , , , ,

Given that the hype over Flex has kind of reached its apex I think its high time I start broadening my skill sets.  I am not saying the Flex is a “done” technology, I am simply stating that Flex has reached a satisfying market share for RIA development and that the honeymoon is over.

So what does a Sr. Flex Developer decide to pick?  Well iPhone development is all the rage so that’s a no-brainer.  But then again that is just another client-side technology.  Java and ColdFusion are still hot technologies.  Going with either one would be a good choice (or both for that matter).  I know some PHP and MySQL but I am not sure what the opportunity costs are for continuing to develop those skills are.  I don’t really see myself doing too much in the way of web design nor do I see myself as a DBA.  I might still tackle those when I can do so without incurring significant opportunity costs.

This post is simply to post my thoughts and maybe get some community feedback.  Thoughts, comments, questions, concerns?  Let’s hear ‘em.



resume update 2009.06.01
Monday, June 1, 2009, 5:46 pm
Filed under: Uncategorized | Tags: , , , , , , , , , ,

posted an update to my resume – http://jwopitz.wordpress.com/resume

Comments Off