Appcelerator Titanium

Status
Not open for further replies.

elh

Ars Praefectus
3,713
Hi.

Is anyone here using this for production stuff?
I've tried dabbling with the raw iOS SDK, but it's too low level for me and I don't really need such low level access most of the time, cross-platform release would appeal to me too.
So I am thinking into putting serious time into learning a high level framework like Titanium and I wonder what your opinions are.

Specifically:
would I still need to dabble in Obj-C occasionally to debug/fix things?
are the platform specific things like say game center well supported by the framework?
is the resulting binary fatter than written directly in obj-c?

My main target is going to be iOS, but certainly Android is a 'nice to have'
 

elvispresly2k

Ars Scholae Palatinae
1,411
Coming from webland, js and what-not, I really like it (as an alternative to the various JS mobile frameworks out there.)

The iOS developers I know are pained and feel hand-cuffed by it (but acknowledge AT's usefulness). They're used to the deep level of access xcode provides. And the AT compiler is sometimes slow, funky. The documentation is good but not up to what Apple and others provide for xcode.

I've heard the resulting iOS app AT builds creates a hidden webview to process its JS?...so I imagine yes there is extra over-head with going this route.

No clue about game center stuff. I'd say if you're thinking gaming, go native.
 

Dromio

Ars Scholae Palatinae
1,411
I've got a half-finished product written in it that utilizes the camera and some other native bits. I really enjoy working with it. But you do need to keep some things in mind:

It does use the built-in javascript from the web browser to interpret the code. I haven't noticed any substantial impact to performance due to this, but if your application is really performance intensive you might want to do some tests before getting in too deep.

Javascript! It's a fantastic language, but a lot of people who think they know javascript don't REALLY know javascript. Writing a whole application in javascript turns out to be a pretty daunting task, and organizing your code in this language may not be something you're really accustomed to. Unless you've read Crockford's "Javascript: The Good Parts" you can expect to stumble around a good bit.

Native APIs mean you may end up writing many UI elements more than once. If you're doing anything more advanced than basic table views, you'll probably end having to write code to handle Android and IOS bits differently. The Appcelerator library handles basic cross-platform UI elements smoothly, but I've found I sometimes have to dip into the Ti.UI.IOS and Ti.UI.Android namespaces to get things to really look right.

It doesn't have a real "IDE" or advanced tooling. It provides a basic GUI tool that'll set up your project, run the build tools, and package it. But editing code is left up to you. I use vim, others like textmate. There's no WYSIWYG UI layout tool, you're writing your whole UI in a text editor. They just bought Aptana and this might change in the near future, but for now you're going to be doing a lot of switching back and forth between their docs and your editor.

Documentation is sometimes spotty. Their API is fantastically documented, but some of the deeper workings might take digging. Setting up continuous builds was tricky-- I had to do a lot of searching to figure out how to build a project outside of their GUI tool. It's growing and changing rapidly, so blog posts about things may quickly fall out of date.

It's amazing the flexibility it can provide. I've been using CoffeeScript to make writing lots of javascript easier. I highly recommend it. Beyond that, there's just some other "o wow" stuff that can be done. Look at this example of using node.js to change an Appcelerator app on the device in real time-- http://blog.krawaller.se/livetanium

I really like it. It can be a bit of a pain to use, but I like it.
 
Status
Not open for further replies.