JavaScript Tutorials
bind Function
We oftentimes assume that "native" APIs within the browser are fast -- at least faster than shims we create or have been using. I was surprised to recently read this StackOverflow thread which asserts that
Function.prototype.bind
is much slower than what you can shim. The thread cites...Prevent Bad Commits with husky
I've been contributing to the amazing A-Frame project, a library with allows you to create VR experiences using web technologies, and it's been a blast. The JavaScript code is very concise and uniform, making contribution a joy while keeping the code standards strict. Why is it so concise? The A-Frame project...
Broken Link Checker
Broken Link Checker by Steven Vachon is an outstanding Node.js-powered utility for recursively checking for broken links on a website. Broken links lead to bad user experiences and mistrust -- two things that can cost you money and other types of conversion. The broken link checker...
Create a 3D Panorama Image with A-Frame
In the five years I've been at Mozilla I've seen some awesome projects. Some of them very popular, some of them very niche, but none of them has inspired me the way the MozVR team's work with WebVR and A-Frame project have. A-Frame is a community project...
Create WebPage Screenshots with Node.js and SlimerJS
Last week I featured PhantomJS, a headless WebKit tool, which allows for taking screenshots, automating events on the page, and so on. PhantomJS is an excellent tool that does so much but being locked into the WebKit engine doesn't help if you want to test other rendering engines like...
Get Ethereum Value from Command Line
Last year I got big into Bitcoin; today I own a few dozen bitcoin and am loving my return. Recently I've been hearing big things about Ethereum, another cryptocurrency. Ethereum is in its infancy and has hit some troublesome times recently due to a hack but...
JavaScript Error Monitoring
One of the reasons I love front-end development is the reason many server-side developers hate it: the difference in browser implementations, the different implementation dates, and the ability to hang yourself with bad JavaScript. I enjoy the hell out of this battle despite having no control over the...
Create WebPage Screenshots with Node.js and PhantomJS
Automation on the web has gotten incredibly accessible and advanced, much in part to utilities like PhantomJS. PhatomJS allows you to do headless WebKit render testing, network monitoring, page automation, and much more. One of the simple tasks I like using PhatomJS for is screenshot...
TypeScript, WTF?!
If you hang around in the JavaScript community, along with
left-pad
you almost have certainly heard of TypeScript. Having large frameworks, like Angular 2 and EmberJS embrace it have given it a lot of focus. I would like to think too, that Dojo 2...JavaScript sleep Function
The infamous
sleep
, ordelay
, function within any language is much debated. Some will say that there should always be a signal or callback to fire a given functionality, others will argue that sometimes an arbitrary moment of delay is useful. I say that to each their own...