The Developer 2/2013

Page 21

Module loading Managing dependencies in plain JavaScript is hard. Require.js makes it bearable, but with TypeScript you get a flexible and elegant way of defining explicit dependencies. It works with both CommonJS (used in Node) or AMD (used in require.js) based on a compiler option. Definition files With definition files, you introduce typing to existing JavaScript. The definition file contains the signatures for the library, and lives side-by-side with the original library file. An IDE will also give you code completion on these libraries. Definition files are already available for many popular frameworks thanks to an active community. Tool support Considering that it's still a preview, the tools support for TypeScript is impressive. It's currently supported

in Visual Studio 2012, IntelliJ IDEA, WebStorm, PhpStorm, Sublime Text, Emacs, Vim and Cloud9. CONCLUSION TypeScript can make it easier to do application-scale JavaScript development - both for newcomers and experienced developers. With types you can easily prove correctness of a large application and confidently let large teams work on the same codebase. It doesn't fix JS and all its quirks, but it makes it easier to use it for general programming.

Software Development Oslo, Kjeller, Stavanger, Bergen

Schlumberger is a knowledge based company in the energy sector, with world class centers for Software Development located here in Norway. We have offices in Oslo, Kjeller, Bergen and Stavanger, responsible for delivering market leading software platforms for the oil-and gas industry. With more than 200 software engineers, we are a leading employer and competency center for software development in Norway. Our activities cover a wide range of activities, from software engineering to customer support, from technical documentation to quality assurance. We take great pride in our internationally diverse environment and our ability to consistently build innovative and integrated products with high quality. Schlumberger closely collaborates with Universities and Research Centers in Norway and throughout the rest of the world. All employees benefit from tailored and continuous training programs, state-of-the-art communication technologies and a global organization that supports knowledge sharing and team work. We encourage patent applications, conference participation and journal publications. For job opportunities, please contact sntc-recruiting@slb.com

The community is not as large or mature as the one around CoffeeScript, but it's growing. A notable community contribution is the TypeScript Definition Package Manager that makes it easier to manage definition files for your project. TypeScript is definitely worth checking out, but remember it is still a preview. Join my session at NDC if you want to learn more. Hope to see you there.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.