<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dino Scheidt on Medium]]></title>
        <description><![CDATA[Stories by Dino Scheidt on Medium]]></description>
        <link>https://medium.com/@dinoscheidt?source=rss-a74194c458da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*a9MKf_Y_kmDtTpa434Eciw@2x.jpeg</url>
            <title>Stories by Dino Scheidt on Medium</title>
            <link>https://medium.com/@dinoscheidt?source=rss-a74194c458da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:19:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dinoscheidt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Adapt ES6 in Meteor?]]></title>
            <link>https://medium.com/@dinoscheidt/adapt-es6-in-meteor-cf99fde967e1?source=rss-a74194c458da------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf99fde967e1</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[es6]]></category>
            <dc:creator><![CDATA[Dino Scheidt]]></dc:creator>
            <pubDate>Thu, 04 Jun 2015 18:22:02 GMT</pubDate>
            <atom:updated>2015-06-05T14:58:17.148Z</atom:updated>
            <content:encoded><![CDATA[<p>yes, but no, consider TypeScript over the BabelJS transpiler</p><p>In JavaScript and Meteor we are desperately in need for modern coding practices to scale out development and handle large code bases effectively. So we have all reason to welcome the approaching sign-off of the new <a href="http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts">ECMAScript 6</a> (ES6) standard which is currently under review, ready to introduce modules, proper arrays (ellipsis), classes and others to JavaScript, a programming language which originated from limited web browsers.</p><p>But this process is — at least for now—unlikely to directly effect you. Like modern web browsers support, Meteor itself is written in ES5 which means, until you find yourself on native ES6 ground, some time will pass by to give you and your team the modern tooling necessary to overcome the problems we currently face in Meteor and web development in general.</p><h3>You’d need a ES6 Transpiler: BabelJS</h3><p>Like many times before on the world wide web, the existence of legacy technology, such as web browsers, called for a transpiler that, before code execution, would translate new code semantics into older versions understandable by outdated software and libraries.</p><p>The same applies to ES6 for which <a href="https://medium.com/@_ericelliott">Eric Elliott</a> recently <a href="https://medium.com/javascript-scene/how-to-use-es6-for-isomorphic-javascript-apps-2a9c3abe5ea2">nominated</a> the JavaScript transpiler <a href="http://babeljs.io/">BabelJS</a> as a reliable worker to convert new code features from ES6 to ES5 to make the new standard globally available.</p><p>Finally, <a href="https://medium.com/@dferber90">Dominik Ferber</a> describes in his article <a href="https://medium.com/@dferber90/es6-in-meteor-5e088c998e4a">ES6 in Meteor</a> how to integrate BabelJS to use ES6 features in Meteors ES5 environment.</p><h3>But why do we want ES6?</h3><p>ECMAScript 6 is one of the most pushed reformations driven by the increased use of JavaScript through server applications and the ongoing emergence of multi platform frameworks leading to the production of multi-device applications and even the “internet of things”.</p><p>So the average size and sophistication level of JavaScript code continuously increases and with that, the obvious shortcomings of JavaScript as large scale programming language becomes more noticeable and lately therefore the focus of improvement.</p><blockquote>Does this help us in the development of large Node and Meteor applications?</blockquote><p>The answer is <strong>yes, but no</strong>. JavaScript reaches the point of stretching from one-liners relevant for mark up done in front-end development to lifting terabytes of data in and out of mongoDB on a shared node.js server environment.</p><p>ES6 encompasses many of the pain points relevant to application development, but it certainly still illustrates a set of compromise.</p><blockquote>So what should we want instead?</blockquote><p>A way to use ES6 as a foundation but with the possibility to continuously build our way up to more <strong>resilient web applications</strong>.</p><h3>Forget Web Standards: TypeScript</h3><p>As you just learned, to use the next web standard ES6, you are required to use a transpiler to pipe your cutting edge code into a past web standard called ES5.</p><p>The same probably happens to you when you switch to ES7, ES8 and so one. If you plan to support an array of old browsers for enterprise applications, you may would have to think about ES3 (Internet Explorer 8) as well. At this point it seems to be clear, that we don’t find any way around transpilers if we intend to write modern code.</p><p>Application development has specific needs that are difficult to cover by global web standards, and that is where <a href="http://www.typescriptlang.org/">TypeScript</a> comes in, capable of transpiling the ES6 standard and determined to <a href="http://blogs.msdn.com/b/typescript/archive/2014/10/22/typescript-and-the-road-to-2-0.aspx">align completely with current and future ECMAScript specifications</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OGIQh303MMvy0xW3oVgEg.jpeg" /></figure><p>TypeScript, <a href="http://techcrunch.com/2015/03/05/microsoft-and-google-collaborate-on-typescript-hell-has-not-frozen-over-yet/">developed in conjunction by Microsoft and Google and used by Angular 2.0</a>, is a super set of JavaScript that implements ES6 and some ES7 features while providing static typing and extra functionalities.</p><p>Rich features such as <a href="http://www.typescriptlang.org/Handbook">static typing</a> allows smart IDE refactoring and an extra layer of bug protection while still making those features invisible and optional to beginners without a new syntax such as CoffeeScript introduces.</p><h3>TypeScript in Meteor</h3><p>There are currently many efforts undertaken to bring TypeScript to meteor, including typed core libraries of meteor for easy use, which can be found here:</p><p><a href="https://github.com/meteor-typescript/meteor-typescript-compiler">meteor-typescript/meteor-typescript-compiler</a></p><p>In April, Marek Rogala wrote an interesting article <a href="http://blog.dataflows.io/technology/2015/04/29/meteor_typescript.html">Meteor + TypeScript =</a> ❤ which is valuable to check out, addressing many of the growing pains that occur with a growing code base. And, for the ones that develop with Windows, on reddit was a recent discussion: <a href="https://www.reddit.com/r/Meteor/comments/34dx7r/visual_studio_code_could_this_become_a_great/">Visual Studio Code — Could this become a great Meteor IDE?</a></p><p><strong>Finally</strong>. Don’t forget that all the <strong>features of TypeScript are optional</strong>, enabling anyone on a team to write at times vanilla (ES6) JavaScript which facilitates the on-boarding process.</p><p>However, in the long run we can expect to see much more TypeScript in larger web applications pushed by two of the largest web giants, Microsoft and Google.</p><p>After all, the widely popular Angular 2.0 framework and its native support for TypeScript may raise the question, if Meteor should not adapt a similar strategy. I would certainly welcome to see TypeScript in Meteor to ease the pain of building production ready applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf99fde967e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>