-
8 Oct 2012 8:17 AM #1Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
JavaScript Performance tips and Tricks with Our own Grgur Grisogono
JavaScript Performance tips and Tricks with Our own Grgur Grisogono
Filmed at our NoVa JS meetup on 10/2/2012, Grgur Grisogono discusses JavaScript Performance tips.
Enjoy
http://moduscreate.com/javascript-pe...ce-tips-video/
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
8 Oct 2012 8:58 AM #2
No go ... there must be a lot of people watching it
.. look forward seeing this.
Scott.
-
8 Oct 2012 9:24 AM #3
I always find it interesting to see performance comparisons like this. It is very useful when needed, but unfortunately many people seem to take this type of thing and throw away all the other methods available to them deemed slower. Readability/maintainability should always be preferred over performance unless performance actually needs to be addressed. I was recently called out for using Ext.Array.each instead of a for loop for an array of 16 items. I also recently saw a post saying you shouldn't use MVC or Ext.create and many other parts of Ext because they do not perform well enough. By the same logic, we should all program in assembly because higher level languages may not always be optimal.
-
8 Oct 2012 9:38 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
8 Oct 2012 9:41 AM #5Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
The purpose of these types of discussions are to know when to use the more "performant" (not really a word) way of doing things in JavaScript. I agree with you 110% about readability, which is why i tend to space things out and write code in "blocks".
Code:Ext.define('App.view.ContactDetails', { extend : 'Ext.form.Panel', xtype : 'contactdetails', requires : [ 'Ext.form.FieldSet' ], config : { items : { xtype : 'fieldset', title : 'Contact details', defaults : { xtype : 'textfield', labelWidth : '30%', autoCapitalize : true }, items : [ { name : 'firstname', label : 'First' }, { name : 'lastname', label : 'Last' }, { name : 'phone', label : 'Phone' } ] } } });
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
8 Oct 2012 9:57 AM #6
To my defense, it is often used in similar discussions, but you are correct and I went ahead and changed my wording. I do think performance is a useful and interesting topic. My purpose was only to say some people misapply this type of information.


Reply With Quote
