Hello and welcome to ‘This Week in JavaScript’ — another curated collection of links relating to what’s new and exciting in the world of JavaScript. The complete list is tagged jsweekly. (Don’t forget to check out our weekly .NET and front end roundups too!)
And now for this week’s finds …
Getting started
- Quick Tip: Persist Checkbox Checked State after Page Reload - This quick tip describes how to have your browser remember the state of checkboxes once a page has been refreshed or a user navigates away from your site to come back at a later date.
- Make a Simple JavaScript Slideshow without jQuery - “I just want to make a simple JavaScript slideshow without jQuery.”
- Gentle explanation of ‘this’ keyword in JavaScript - The
this
keyword is a mystery for many new JavaScript developers. It is a powerful feature, but requires some effort to be understood. - Variable hoisting explained - You may have heard of JavaScript “hoisting” variables in a function, but you’re not sure what it means. You’d like to be sure, so you don’t make any mistakes related to variable declarations.
- Facing JavaScript Obstacles The Right Way - JavaScript is filled with obstacles. Most of us treat obstacles as “Those things that are blocking my way. I need to get past them ASAP.” Truth be told we don’t have to look that far to find examples of how overcoming obstacles can lead to amazing things.
Learning more
- Teaching Your Raspberry Pi to Speak with IBM Watson - In this article, we are going to explore how to bring in text to speech to our Node-RED flow from the previous example.
- Permissions API - Many of the functionalities that we’re translated from mobile to the web require permission from the user, but there’s sometimes no way to access each APIs permission level without triggering a request to the user to get that information.
- Can I use? bot - This is an unofficial bot of ‘Can I use?’ to add to your Slack channel.
- Writing custom EsLint rules - In this post, Kenneth Truyers shows you how to create custom EsLint rules.
- JavaScript Arrays : most of the time lodash/underscore.js is not needed - Since ECMAScript 5 is supported by the majority of browsers (IE9+), there are methods available on the Array type that allow this to be done natively.
Libraries
- jQuery 3.0 Release Candidate…Released! - This is the same code as is expected to be released as the final version of jQuery 3.0 (pending any major bugs or regressions).
- Comparing React.js to Vue.js for dynamic tabular data - The aim of this post is to observe the differences between React and Vue as view layers.
- React Tutorial: Cloning Yelp - This post will guide you through building a full React app, even with little to no experience in the framework. This will keep you safely occupied until the next JSWeekly.
- Push.js - Push.js makes it simple to create cross-browser compatible push notifications with the JavaScript Notifications API.
- Bideo.js - A JS library that makes it super easy to add fullscreen background videos.
ES6
- Understanding ASTs by Building Your Own Babel Plugin - In this article, we’ll look at how we can write a Babel plugin to add immutable data by default to JavaScript.
- sql-query-tag - Easy sql queries using tagged templates.
- Cancelable Promises - Addy Osmani looks at Cancelable Promises Now at Stage 1 at TC39).
Frameworks
- Create Cross-Platform Desktop Node Apps with Electron - This is a simple example to illustrate the potential of Electron.
- Lightgallery - A modern, electron and nodejs based image viewer for Mac, Windows and Linux.
- 5 Common Misconceptions About TDD & Unit Tests - Most developers seem to agree that testing is good, but developers frequently disagree about how to test.
- Getting Started with TDD in React - Learn how to test React components using a TDD approach with minimal setup, while learning exactly what to test and how to avoid common pitfalls.
For more links like this and to keep up-to-date with the latest goings on in JS land, you can follow SitePoint’s JavaScript channel on Twitter.
Please PM us if you have anything of interest for the next issue or if there is anything you would like to see featured. Paul and Chris of Arabia.