How Do I Share EJS Templates Between the Client-side and the Server-side?

The release of Node.js in 2009 ushered in discussions about the endless possibilities for sharing code between the client-side and the server side. While there are several good examples of entire libraries working very well on both ends, most of the projects that are written in Node tend to shy away from sharing the meat … Read more

Writing a Good API

As a JavaScript developer, I tend to spend a lot of time getting and setting data using a server-side API. Over the past few years, I’ve encountered all sorts of APIs and I’ve formed some opinions on what makes a good API for JavaScript interaction. Here are some of my thoughts. Make the API use … Read more

Detecting JavaScript Popup Blockers

Most of us can agree that spawning popups with JavaScript is usually a user experience FAIL. We’ve all been to websites that opened several popup ads. That is always something to avoid. Malicious and ad-happy sites have made it necessary for browser plugins and some browsers to block JavaScript popups altogether. But there are some … Read more