Archive for the ‘jamesh’ Category

JavaScript Testing Tool Showdown: Sinon.js vs testdouble.js

Posted on: No Comments
When unit testing real-world code, there are many situations that make tests hard to write. How do you check if a function was called? How do you test an Ajax call? Or code using setTimeout? That's when you use test doubles — replacement code that ma...

Tips and Tricks for Debugging Electron Applications

Posted on: No Comments
Tips and Tricks for Debugging an Electron Application is an excerpt from Electron in Action, a step-by-step guide to building desktop applications that run on Windows, OSX, and Linux. If you'd like to follow along with the techniques demonstrated in th...

Create Your Own Yeoman-Style Scaffolding Tool with Caporal.js

Posted on: No Comments
Starting a new project (especially as a JavaScript developer) can often be a repetitive and tedious process. For each new project, we normally need to add a package.json file, pull in some standard dependencies, configure them, create the correct dir...

Back to Basics: JavaScript Operators, Conditionals & Functions

Posted on: No Comments
Table of Contents JavaScript Operators Assignment Operators Arithmetic Operators Addition Subtraction Multiplication Division Modulus Increment Decrement Comparison Operators Equal Strict Equal Not Equal Strict Not Equal Less Than Less Than or Equal To...

How Do You Keep Your JavaScript Dependencies Up-to-date?

Posted on: No Comments
This is the editorial from our latest JavaScript newsletter, you can subscribe here. Recently, security researchers analyzed 133,000 websites for outdated JavaScript libraries. Their findings, presented in a whitepaper, Thou Shalt Not Depend on Me: An...

The Basics of DOM Manipulation in Vanilla JavaScript (No jQuery)

Posted on: No Comments
Whenever we need to perform DOM manipulation, we're all quick to reach for jQuery. However, the vanilla JavaScript DOM API is actually quite capable in its own right, and since IE < 11 has been officially abandoned, it can now be used without any w...

Writing JavaScript with Accessibility in Mind

Posted on: No Comments
Tips on how to improve the accessibility of your JavaScript components and provide users with more and better ways to interact with your website or web app. This article was originally published on Medium. In my first post Writing HTML with accessibil...

Understanding Component Architecture: Refactoring an Angular App

Posted on: No Comments
This article is part 2 of the SitePoint Angular 2+ Tutorial on how to create a CRUD App with the Angular CLI. In part one we learned how to get our Todo application up and running and deploy it to GitHub pages. This worked just fine, but unfortunately...

Interview with Kris Borchers, JS Foundation Executive Director

As part of Open Source Week 2016, we took a look at the JS Foundation, an organization whose mission it is to create a center of gravity for the open source JavaScript ecosystem. Backed by such big names as IBM and Samsung, they offer technical govern...

What Is the Best Book for Learning JavaScript?

Posted on: No Comments
This is the editorial from our latest JavaScript newsletter, you can subscribe here. "What's the best book to learn JavaScript?" is a question that I've heard asked a lot lately. There are certainly a lot of to choose from. A quick search of Amazon re...