Typescript and sencha
I have just read some old forum thread on Typescript and Sencha so I was wondering if there are any new info on that subject?
I remember trying to understand similar hack for Perl but eventually gave up and now I don't even try to understand how solutions like these work because it all ends up being to confusing and aquard and just wasting my time someone trying to reinvent the wheel.
So if there is a technology that allows us to work with JS as if it had proper class support why this isn't used and instead we are forced to use workarounds in the form of Ext.define and Ext.define. I defenetly don't want to make the same mistake as I did with Perl and JS trying to understand how their class/object system works thinking that I am just to stupid to understand brilliant minds behind these solution and that I should simply try harder only to later find out that there is nothing brilliant about it, that solutions are dirty hacks as a result of a bad initial design and that they can't be understood since they objectively make no sense.
I was hoping and praying for new languages/frameworks/solutions to simplify my work, to become simpler, more intuitive and easier to use, to use and recycle the approaches and knowledge I already aquire so that I don't have to learn everything from scratch every time.
But it seems that everything is going in opposite direction with solutions being more and more complex having less and less sense. If there is a generally accepted way of how to work with classes which most people find user friendly why can't we based new solutions on these approaches instead of forcing programmers to completely relearn and rethink how we work with classes, examples being Ext.define and Ext.create.
I did some more reading and it seams that TypeScript is just implementation of ECMASCRIPT 6 which will support classes.
When will ECMASCRIPT 6 be released?
When it does, does it mean that it will be supported with all browsers including webkit and I would be able to open notepad, type some JS classes and run this on any browser?
When this happens will Sencha Touch ditch Ext.creted and Ext.define and use proper class syntax?
And what exactly means that TypeScript is just implementation of ECMASCRIPT 6?
Does this means that I will not be able to open notepad, type something in TypeScript and accpect it ti run on Web Browser. Instead I would need to run compiler to transfer that TypeScript to JS?
Is this the difference between TypeScript and ECMASCRIPT 6?
For ECMASCRIPT 6 I would just need notepad and for TypeScript I would need to recompile it to JS first?And this would be needed because of few differences in syntach between two which are in general the same?
Sencha Premium User
Typescript 1.0 is out
If you want some more info, see bld win 2014 presentations:
Can you provide more details?
Thanks for this very positive posting. Could you provide more details of how you got this to work - ideally with some sample code. It'd make a great blog post.
I've found typescript very productive when working with frameworks like Angular, but never had good results with EXTJS.
http://blorkfish.wordpress.com/2013/...th-typescript/ highlights some potential gotchas.
Any help you can give would be of interest
ExtJS and Sench Touch Typescript Generator
You might be interested in this app that can generate TS definitions.
Repo includes generated definitions for Sencha Touch 2.2.1 and 2.3.1, ExtJS 4.2.0 and DefJS.
Premium TypeScript type definitions for Sencha Ext JS 4.x, 5.x, 6.x
Please go to find ExtTS - Premium TypeScript type definitions for Sencha Ext JS
Every latest version of ExtJS 4.x, 5.x, 6.x is supported; currently latest version is 188.8.131.527.
Everything you can find from ExtJS API document is in the type definitions with strongly-typed support (such as: Ext.dom.Element, ButtonConfig,..)