Hello and welcome to a slightly later than usual 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
- JavaScript Object Creation: Patterns and Best Practices - Jeff Mott takes you on a tour of the various styles of object creation and how each builds on the others in incremental steps.
- The importance of code reviews - Apparently, it’s not obvious to everyone that code reviews are actually helpful.
- Functional Concepts For JavaScript Developers: Currying - The concept of currying, at least applied to programming, is not hard to understand at all. It’s actually quite easy to grasp and once you do, opens the door to a powerful functional programming technique.
Learning more
- Making your JavaScript Pure - Once your website or application goes past a small number of lines, it will inevitably contain bugs of some sort.
- How Emoji Can Improve Your Code—Seriously - TJ VanToll shows you how.
Libraries
- Building a WebRTC Video Chat Application with PeerJS - In this tutorial we’ll take a look at PeerJS and how it can make our lives easier when implementing WebRTC.
- 10 Lodash Features You Can Replace with ES6 - Dan Prince looks at using native collection methods with arrow functions and other new ES6 features.
- Holmes - For fast and easy searching inside a page.
- jQuery - jQuery 3.0 final released.
- Anypixel.js - A web-friendly way for anyone to build unusual displays.
- Inferno - An extremely fast, React-like JavaScript library for building modern user interfaces
ES2015
- A Promise-Based Worldview - Once the Node.js developer’s victim of choice, Promise now enjoys healthy adoption on both sides of the stack - what’s changed?
- ES Modules and Node.js: Hard Choices - Yosuke recently published a blog post in Japanese regarding the challenges Node.js was facing with considering ES Modules support (translated).
- Service Workers 101 - An infographic to summarize the most important parts of the Service Workers’ API.
- Async and Await - Guillermo Rauch shows you how Promise combined with async / await enables this, but also some of the lessons he’s learned from using these new features in production.
Frameworks
- How Using Yeoman Changed the Way We Work - If you think a tool to help you scaffold out new projects to your liking could help you, check out Noam Elboim’s journey!
- How to Create a Face Detection App With React Native - In this tutorial, we look at the Face Detection API, which is part of Microsoft Cognitive Services. This API allows developers to easily implement face detection functionality in apps.
- Versioning: the chicken & egg - Remy Sharp was working on a project where he kept running into the constraints of versioning a package he was pushing to npm, but now I has a near perfect workflow that completely mitigates the entire issue of versioning.
Other Stuff
- 10 Cool Things You Can Do with CodePen and JavaScript - Chris Coyier focuses on some of the things you can do specifically with JavaScript on CodePen.
- A Round up of Online Code Playgrounds - @James_Hibbard takes us through the variety of code playgrounds available online.
- What’s new in Chromium 51 and Opera 38 - Here’s what it means for web developers.
- Building Real-time Apps with Websockets & Server-Sent Events - In this article we’ll look at examples of how to use the raw WebSocket API as well as the lesser known EventSource for server-sent events (SSE) to build “real-time” UI’s that are self-updating.
- Helping web developers with JavaScript errors - With the help of the MDN community, Mozilla are going to add links to documentation from error messages that appear within the Firefox Developer Tools console.
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.