It’s no secret that I’m a fan of various ES6 features. I use a lot of the new syntax options and methods on various objects whenever I can – in browser based apps as well as node.js apps. But I recently stumbled upon on a situation that had me wondering if the barrier to entry is really worth the cost, right now.
5 Tips To Improve Your JavaScript w/ ES2015 (ES6)
I’ve done a lot of work with ES6 in the last 6+ months, and I’ve found that while I do still have a lot of questions about some of the new features and syntax, there are some parts that a big win for everyone, right now. To illustrate the parts that I like best, I […]
Cleaning Up Browserify’s require(“../../../”) Problem
One of the problems that I have often run in to with building re-usable components in an application, is the ugly require statements that I have to use: The deeper the folder structure, the worse it gets! So how do we get rid of this ugliness? Reduce The Ugly My goal is to reduce require […]
Debugging Browserified Unit Tests In A Real Browser
In a previous post, I showed how to run browserified unit tests in a headless browser using PhantomJS and grunt-contrib-jasmine. Shortly after posting that, I found myself needing to run a debugger on my tests (because console.log debugging is not sufficient). What to do? How do I get a debugger attached to my grunt-contrib-jasmine specs? […]
Testing Browserify Modules In A (Headless) Browser
I’ve had a number of people ask about testing browserify modules, after I posted about how I’m using browserify with Backbone and Marionette. The truth was, I had not yet looked in to this and I wanted to remedy that. But, when i first started thinking about this, I wasn’t quite sure what to do. […]
Browserify: My New Choice For Modules In A Browser / Backbone App
For the many things that I think I got right in MarionetteJS, there are a number of #facepalm things and “WHAT THE?!?!?” things… the most notable being the module system. Let’s face it, this is probably the clunkiest module system ever written – and all because I hate AMD (Asynchronous Module Definition) and RequireJS. It […]