2010: The year Ext JS takes over
On January 1st 2010 I officially joined Ext JS to take over the role of lead developer. After livin
** Update 2:** I've recently cleaned up the bundle, removing stale snippets. It's now located at https://github.com/edspencer/Sencha.tmbundle
** Update:** Added extra instructions when downloading the bundle instead of git cloning it. Thanks to TopKatz for his help
I develop on both OSX and Windows machines, and my editors of choice are Textmate and the excellent Windows clone E. One of the great things about Textmate is its bundle support, which allows you to create reusable code snippets (among other things).
I've got a good collection of these built up so thought I'd make them available on Github. You can install it like this:
If you don't have git installed you can simply download the bundle as a zip file, and extract it into the directory as above. You need to rename the extracted directory to something like extjs.tmbundle or it won't show up. If you do go the git route you can of course cd into that git directory at any point and use git pull to update to the latest bundle version.
I'll give one example of the usefulness of snippets like these; here's the Ext.extend snippet from the bundle:
To use this you can just type 'extend' into a JS file in TextMate/E and press tab. The snippet takes you through a few editable areas such as the name of your new class, the name of the class you're extending, xtype definition and description, then dumps the cursor inside the Ext.applyIf block. The actual characters typed are these:
extend [tab] MyWindow [tab] Ext.Window [tab] [tab] mywindow [tab] Special window class [tab]
Which produces this:
Hopefully it's obvious how much time things like this can save when generating repetitive, boilerplate code. The extend snippet is one of the larger ones but even the small ones are very useful (pressing c then tab is much nicer than typing console.log(''); each time).
Any suggestions/contributions are welcome. Thanks go to rdougan for his contributions and organisation also.
There is also another ExtJS textmate bundle available at http://hakore.com/extjs.tmbundle/, written by krzak from the Ext forums.
To explore further how Ext JS can enhance your development workflow, consider reading ExtJS modules and mixins, which covers code reusability through modular design. You might also be interested in 2010: The year Ext JS takes over to see the impact of Ext JS's advancements on rich client-side applications and their speed and efficiency improvements.
On January 1st 2010 I officially joined Ext JS to take over the role of lead developer. After livin
A few days back Praveen Ray posted about 'Traits' in Ext JS. What he described is pretty much what
We pushed out a beta release of Ext JS 3.2 this morning. Although we've marked it as beta, it's a pr