When someone tells you they are going to look at your code, it shouldn’t make you nervous, especially after 4 years of programming. Well, when Shopify told me they were going to look, I got nervous; dream job, dream company, you get the picture.
Next up, compatibility. Moving to ES6 something to keep in mind is support for older browsers. Some of the functionality available in ES6 isnt’ available in ES5. This is fine for writing node applications as node runs ES6 by default. Thanks to the tried and true babel we don’t really have to worry about that. I wrote a blog post explaining how to configure babel to build your ES6 into ES5 to run it on older browsers.
This really isn’t a How To Convert Your Code From ES5 to ES6 post, it’s more of an explanition of how ES6 has made my life, as a developer easier and more enjoyable. If you don’t believe me, have a look at the code samples below.