Understanding AMP: Accelerated Mobile Pages for Faster Web Experiences

Understanding AMP: Accelerated Mobile Pages for Faster Web Experiences Accelerated Mobile Pages (AMP) is an open-source framework developed by Google with the goal of creating web pages that load quickly on mobile devices. In today’s fast-paced digital world, speed is a crucial factor in user experience and search engine rankings. This article explores what AMP … Read more

Authentication with Compound-Passport

One of the most useful CompoundJS plugins is Compound-Passport. If you aren’t familiar with Passport, it is an authentication library for Node that provides a common API to authenticate with Facebook, Twitter, Google, Github and over a hundred other OpenId and OAuth login sources. This is how I was able to get authentication with Facebook added to … Read more

Unit Testing with Thrill.js

Functional testing the DOM can be a daunting task. Tools like Qunit and Mocha make it easier, but the real trick is automating the testing process from the Terminal so that it can run continuous integration in the background and throw errors when a test fails. Thrill.js has turned out to be just the tool I was looking for. There … Read more

executeAsyncScript() in Selenium Webdriver for Node

If you aren’t familiar with it, the NodeJS version of the Selenium WebDriver is a great way to write functional tests in JavaScript and automatically run them in your browsers. The NodeJS WebDriver uses the Selenium Server Java jar under the covers to work its magic. The main downside of the WebDriver is that the documentation is inconclusive at … Read more

Compound.js Routes

Previously, I introduced you to Compound, an awesome MVC framework for NodeJS. Today, I am going to expound on how the routing works in Compound. If you are not familiar with how MVC work, I suggest you take a look at some of my older articles about JavaScript Architecture and Code Separation. From here on, I will assume … Read more

How Do You Make a Compound.js Application?

NodeJS may still be young, but there are already several MVC frameworks popping up to run exclusively on Node. My favorite is CompoundJS. Compound was written to look like to Ruby on Rails. In fact, Compound’s original name was “Railway on Express.” As the defunct name implies, Compound runs on top of the ExpressJS framework. Some of … Read more

How Do You Write an Anvil.js Plugin?

Anvil.js is a powerful “Convention over configuration” build tool that was built by Alex Robson and sponsored by appendTo, which is incidentally where I work now. One of the most powerful things about Anvil is that it has an intentionally light core. It was meant to be primarily run by plugins. Authoring Anvil plugins is a pretty painless ordeal. … Read more

What is jQuery.map?

JQuery comes loaded with various utility methods that make manipulating elements and data easier. One really useful method is jQuery.map(). Map is used to manipulate array values. Behind the scenes, jQuery.map loops over any array that you feed it and gives you a callback function to modify it. In the old days before the dawn … Read more

Top 5 Backbone Plugins

BackboneJS is a great framework for building large scalable JavaScript applications. One of the best things about Backbone is that the community has built countless amazing plugins that extend the Backbone namespace. I’ve compiled a list with just a few of my very favorite Backbone plugins. Backbone Forms This is a nifty plugin that generates … Read more