Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Titanium Appcelerator - should I use the alloy framework? [closed]

I'm developing an app using Titanium Appcelerator.

It's a simple flashcards app for iOS which allows users to scroll through a selection of foreign words, and view the equivalent english translation on 'the other side' of the card (flip transition!). Each card has an audio link and there are a few options for the user to choose also.

I would like to know if anyone reccommends the use of the alloy framework?
Does it speed up the development time?
Are there any use cases where alloy would not be appropriate?

like image 818
Mazatec Avatar asked Jan 22 '13 08:01

Mazatec


2 Answers

I think your app is definitely appropriate for alloy, the same things appropriate for Titanium in general work with Alloy. One of the key things to think about is that using Alloy will not necessarily speed up development time. That is not the goal, the goal is to separate the concerns (Model View Controller), and provide cross-platform and multiple form factor support. If you are interested purely in speed of development stick with regular Titanium.

However, where it can speed up dev time is in your persistence strategy, sql integration of models is built in with Alloy. So, if this flashcard app your thinking of creating has the users creating flashcards on their phone, then using them later, I would definitely go with Alloy to take advantage of the model stuff.

Take note that the documentation is kind of sparse, I ported an existing clients project to Alloy and really had to find my own way on a lot of things, but It was not a simple app.

Essentially, if you want to 1) Release to multiple platforms and form factors and not have migraines, 2) Have a built-in easy to use persistence strategy, 3) Be able to maintain your code at a later date, or have other people look at it and be able to tell whats going on, then I would definitely use Alloy.

like image 129
Josiah Hester Avatar answered Nov 14 '22 18:11

Josiah Hester


Here are some links that will help you to know more about alloy framework,

1 Official appcelerator doc

2 A presentation on Alloy framework

3 Google group : Appc Ti Alloy

4 appcelerator / alloy in github

like image 38
Melvin Joseph Mani Avatar answered Nov 14 '22 19:11

Melvin Joseph Mani