This Week in JavaScript - 23 May 2016

Hello and welcome to This Week in JavaScript, our lovingly curated collection of links relating to what’s new and exciting in the world of JS. 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 JavaScript finds …


Getting started

Learning more

Libraries

  • Inspect form - Form validation in Javascript Vanilla, without dependencies and multiple languages.
  • Wait! Animate - Easily insert a delay between each animation iteration.
  • 10 jQuery text highlighter plugins - To make the search process faster, offer a great user experience, and generally help users find the content they’re searching for.

ES2015

  • Lebab - Lebab helps you modernize your old-fashioned code. It scans your code and finds the parts that can be converted to a newer version of ECMAScript.
    Arrow functions in JavaScript - Because of their extreme terseness, arrow functions allows us to use use functions in a new way, making lots of functions that are small, inline and single-purpose.
  • Six nifty ES6 tricks - Six tricks enabled by new ES6 features.
  • Iterators and generators in ES6 - How we can use iterators and generators can be used to create deferred execution in Javascript.
  • Arrow functions in JavaScript - what, why and how (video) - Because of their extreme terseness, arrow functions allows us to use use functions in a new way, making lots of functions that are small, inline and single-purpose.
  • More readable Javascript without variables - Variables introduce state, which in turn increase complexity exponentially. Every single bit of variable information makes reasoning and understanding the code harder.

Frameworks

Testing & Debugging

  • What the heck is “Script error”? - What browsers send to the onerror callback when an error originates from a JavaScript file served from a different origin
  • How to stub ES2015 modules in tests - How to stub out dependencies on ES2015 modules to make testing easier. Note this only works with dependencies on named exports.
  • TDD Should be fun - When it is working at its best, practicing TDD feels like playing a computer game. One that takes some thought and planning to win.

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 chrisofarabia.

6 Likes

My update to the Sublime Text JSLint linter has been accepted. Huzzah! :tada:

An update to the linter resulted in reported lines being 0-indexed, which the reporter didn’t know how to support. Now, you can tell the linter to fudge the numbers from a base of 0,0 back up to 1,1

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.