PDA

View Full Version : Fed up to work with sencha touch



waheed146
18 Apr 2012, 11:32 PM
i am being fed up. i am trying to understand how can i work with sencha touch 2.0.0 . i see two to three tutorials all of the tutorials are different from each other. i am realy disappoint how can i work.?

AndreaCammarata
19 Apr 2012, 12:03 AM
Did you take a look at the Docs Guides section?

http://docs.sencha.com/touch/2-0/#!/guide

Möhre
19 Apr 2012, 12:58 AM
What do you want to do?

I found this tutorial more usefull than senchas docs:

http://miamicoder.com/2012/how-to-create-a-sencha-touch-2-app-part-1/

waheed146
19 Apr 2012, 2:10 AM
Thanks Andrea (http://www.sencha.com/forum/member.php?77762-AndreaCammarata)

yes i have seen this guide. it make me more confused. i didn't understand how do i start. there are different panels mean views how i set the view page.

waheed146
19 Apr 2012, 2:11 AM
Thanks Möhre
(http://www.sencha.com/forum/member.php?323632-Möhre)
yes i like his working of code structure. but when i try to make my application i got waired. how to start.

gkatz
19 Apr 2012, 2:32 AM
I have been working with ST1 for a while now and I love it. having said that I must say there is a point in what this guy is saying.
working with st2 seem harder. there are so many different things to understand in order to get started such as mvc, dynamic loading mechanism. the strange JS caching that fails to load my changes and many other different things, concepts and so on and so forth.
don't get me wrong, I love sencha and appreciate everything it has to offer, I am just saying that as a developer, I find the learning curve for st2 to be way too steep...
thanks.

Möhre
19 Apr 2012, 3:21 AM
http://www.sencha.com/learn/touch/

To me 2.0 is easier to understand and clearer due to MVC. But I knew how to use MVC before (rails, php frameworks).

gkatz
19 Apr 2012, 4:24 AM
I just think that its gonna take some time until there are more docs/tutorials/threads/comments etc to male things better.
even some of the sencha crew ST2 plugins do not follow some of the naming/architecture guidelines. its pretty easy for beginner-mid level developers to get mixed up...

mitchellsimoens
19 Apr 2012, 5:04 AM
We are always going to try and create more guides, we want to ease the learning curve. We have many examples to get your feet wet, guides in the API docs and a learn section for sencha touch. Of course you can always ask questions in the Q&A forum and I will usually get to your question quite fast.

gkatz
19 Apr 2012, 7:30 AM
@mitchellsimoens (http://www.sencha.com/forum/member.php?22216-mitchellsimoens) you are one of the fastest answerers for sure :)

waheed146
19 Apr 2012, 9:55 PM
Thanks mitchellsimoens (http://www.sencha.com/forum/member.php?22216-mitchellsimoens).
I want to grasp over views as functionality can done. i want to make veiws of the pages as i want to do. like i want to create a view page that include

First part "html"
Second part a form for comment
Third part should be a listView of comments.
and it should be vbox vertical

mitchellsimoens
20 Apr 2012, 4:04 AM
Ok, that can actually be easy to setup, here is sample code


new Ext.Container({
fullscreen : true,
layout : {
type : 'vbox',
align : 'stretch'
},
items : [
{
xtype : 'component',
html : 'Hello'
},
{
xtype : 'formpanel',
flex : 1,
items : [
{
xtype : 'textfield',
label : 'First Name'
},
{
xtype : 'textfield',
label : 'Last Name'
}
]
},
{
xtype : 'list',
flex : 1,
itemTpl : '{text}',
store : {
fields : ['text'],
data : [
{ text : 'Mitchell Rocks!' }
]
}
}
]
});

Cacofoniks
23 Apr 2012, 4:03 AM
I believe that what waheed146 means is the lack of consistency among the guides for Sencha Touch 2 which makes the learning path significantly longer: If you check the official documentation of ST2, the examples do not follow the MVC paradigm, except maybe for the "Getting started with ST2" but for the sake of brevity (I believe), examples are given where the whole application is included in the app.js file.

Unfortunately, for Sencha users who have already been developing with ST1, it tends to be the standard practice, nobody explains which part of the code to put in which file and it is understandable since this is the way that ST1 is developed. Reading documentation of other MVC frameworks out there, like Rails, they almost always mention which code to put in M, which in V and which in C.

I think that the structure of the official documentation is great, but it needs some further crafting to follow the MVC paradigm in the examples.

Thanks...

shepsii
23 Apr 2012, 4:15 AM
I actually think Sencha should start pushing people towards using Architect as an intro to ST2. It encourages correct MVC code and new coders can see what code is generated when they add elements to the UI. Even if they then go on to use a text editor, the understanding of the correct structure and how to put together views would be there.

mitchellsimoens
23 Apr 2012, 4:19 AM
I actually think Sencha should start pushing people towards using Architect as an intro to ST2. It encourages correct MVC code and new coders can see what code is generated when they add elements to the UI. Even if they then go on to use a text editor, the understanding of the correct structure and how to put together views would be there.

I totally agree with you and now that it's finally out I was planning on doing this mysel!

Cacofoniks
23 Apr 2012, 4:25 AM
So, what you are effectively implying is that the entry cost for learning Sencha the right way is the cost of Architect ($399), only because there are no clear instructions on which part to place the code?

This would be a reason for not even start learning it....Maybe start pushing the experienced users to follow the MVC paradigm and make the code more clear to read and understand...

mitchellsimoens
23 Apr 2012, 4:50 AM
It's a suggestion, not a requirement. We take learning Sencha Touch 2 very seriously and will always admit that docs need to be improved and we will never stop improving them.