Making the switch from Objective-C to Swift iOS game development
Switching from Objective-C to Swift iOS game development.
It never fails! You work hard, you work diligently, you study as many resources as you possibly can on your current programming language (in between trying to actually output some quality code). Then one day you have that moment of clarity, where you realize you are no longer having to look up every little silly issue (again) in StackOverflow. You actually start to feel good about your programming abilities, you are king of your domain…and then they go and change the rules.
I know that Swift has been out for about 8 months now, and some people might think that I am late to jump on the band wagon. But I was just so damned comfortable and cocky at my current state with Objective-C. I’ve been trying to put together a Mastermind group of iOS game developers here in Edmonton for a while now, with not a lot of success. However it looks like it is starting to take off. I was chatting with a new member that is just learning iOS game development, and he was mentioning that he was starting by learning Swift instead of Objective-C. I told him that he should learn Objective-c first, because there was such a larger online code base of Objective-c snippets, gits and online advice dished out for existing issues. Afterwards it was eating at me whether or not I had really given him the correct advice, so off I went out of my comfortable Objective-c world into the Swift world.
I WAS WRONG! It seems in all my comfort I had really forgotten all the little nuances that really bugged me about Objective-C when I started learning it (coming from C#). Now I am not going to go into Objective-C bashing, because over the last year and a half I’ve grown to absolutely love it and embrace it. But it is not an easy language to pickup and start using as your first foray I to game programming. Swift is cleaner, Swift is faster to get from your brain to your screen and it adds new features that were seriously lacking from Objective-C (Multiple returned items from a function anyone?).
So now I start the journey all over again. Working Hard, working diligently and studying as many resources as I possibly can on Swift while trying to continue to output good quality concise good for my games. I will post on my new adventures in Swift.