lördag 15 maj 2010

Java. It's just the way it is. Java.

Having reflected on the pros and cons of various programming languages, I have reached the conclusion that maybe I like Java most. It is really just so great.

For example:

- Everything is references to begin with. Having forgotten for the hundredth time to add the star to an argument to a method in Objective C makes you appreciate this. No need for * or & or ->. Great.

- It's object oriented. The first time you do a collection/aggregation of data and logic and wrap it in a .c and .h file in C it brings a certain nostalgia to life. "This must be where the need of classes first arose" you say to yourself and feel the kinship with thousands of previous programmers, toiling in their sweat in the pre-C++/Ada eras. But the 2nd+ time you do it, it's really more of a nuisance than the joy of following a great tradition. Especially, lacking a compiler-supplied call to a constructor, having to provide an "init" function to set the data to the preferred state.

- It's garbage collected. I love garbage collection. Yes. There it is. I said it. It's out in the open. Or, what I love is not having to keep track an eye out for memory leaks, of course. On the flip side I also love having everything statically allocated at compile time, and never getting anything from the heap. Just to provide some dualism here.

- Dot notation. YES: myObect.setThing(a). NO: [myObject setThing:a].

- Name mangling and function overloading. initWithInt, initWithBool, initWithDouble, initWithAdAbsurdum... yeah right.

- Not as many slightly implicit ways in which objects can happen to get instantiated as in C++.

- No templates.

- No operator overloading.

- Especially no "new" overloading.

Yes, That sums it up good, I think.

fredag 14 maj 2010

iPhone good. Apple maybe not so loveable.

I'd like to know whether an application using Lua would be accepted or not in the App store. Using Lua would save me QUITE a lot of trouble. I'd like to use Objective C and the frameworks as a means of presenting a digestible interface, whereas the logic of the involved entities would be controlled by Lua scripts.

I started doing the internal logic of an application in Lua, as a proof of concept. And after only a couple of days of "coding" Lua, I find it hard to go back to something as cumbersome as... something other than Lua.

måndag 3 maj 2010

SO ANYWAY (Slam notifications)

Although I had planned for my World of Warcraft Slam addon to grace the servers of, say, www.Curse.com, I ran into one too many tank diva (...in a PUG) and decided instead to halt development and quit World of Warcraft.

It feels good.

It would have been nice to put a complete addon package up, but it also feels nice to stay sane.

iPhone revisited, 1

Okay, it's time to actually do something more than dreaming of getting an app out there.

But let's face it, if I can't automate or at least make less annoying, confusing, lengthy, error-prone, etc, the process of getting an ad hoc provisioning profile, I might as well sort of give up immediately. So, first stop: Understanding the provisioning profile process.


And, ehm, first stop first sub... stop, I guess, is:

http://en.wikipedia.org/wiki/Keychain_(Mac_OS)

http://www.24100.net/2009/02/iphone-sdk-mobile-provisioning-0xe800003a-0xe8000001/