This Week In JavaScript - 20 March 2017

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

  • limited-permutations - Helps you to generate a limited permutation.
  • Baresoil - Baresoil aims to do as much as possible for you in order to streamline the process of building, running, and scaling a webapp or backend.
  • Elemental.js - A function library for JavaScript that enhances the existing way of doing things and fills in what I consider to be some obvious ‘blanks’ in the specification.
  • objecthistory - Enhance an object with undo, redo & change history.

#ES6

  • An Update on ES6 Modules in Node.js - How things are progressing on the various differences that exist between Node.js CommonJS modules and the new ES6 Module system.
  • The Evolution of JavaScript Modularity - As a result of communication with members of TC39 and others, we will look at the following approaches/formats: Namespace, Module, Detached Dependency Definitions, Sandbox, Dependency Injection, CommonJS, AMD, UMD, Labeled Modules, YModules, ES2015 Modules.
  • Observables are Coming to ECMAScript! - Observable would be a new built-in that can be used to handle event streams. The Observable constructor takes a callback which defines an event stream.

Frameworks

React

  • Composing React Components With Ramda - Using higher-order functions instead of higher-order components.
  • An extremely fast React-like JavaScript library - An extremely fast React-like JavaScript library for building modern user interfaces.
  • Reactive Programming Operators in RxJava 2 - How you can use RxJava’s operators to finally make concurrency on Android a pain-free experience. By the end of this article, you’ll know how to use RxJava operators to create additional threads, specify the work that should occur on these threads, and then post the results back to Android’s all-important main UI thread—all with just a few lines of code.
  • Best JavaScript books in 2017 - There are way too many JavaScript books out, with more coming out every month. So what is the best JavaScript book for you? After going through a number of books through the years, these are the best JavaScript books for learning JavaScript.
  • Watch files and react upon changes - Watch files and react upon changes.
  • 10 React mini-patterns - Over the last few years, I’ve worked on a handful of decent-sized React projects, and many, many pint-sized ones. Throughout this magical journey, a number of patterns have come up that I find myself repeating again and again.

Angular

Vue

  • Where did Vue.js come from? - Vue.js doesn’t truly offer anything that other frameworks don’t already have, but it does bring together features from other frameworks in a unique way that may be a better combination. Which of these features did Vue.js glean from other frameworks, and from which ones?
  • Basic Server Side Rendering with Vue.js and Express - Unfortunately, it’s not the most obvious thing to set up, and the documentation for rendering Vue.js apps on the server is spread across several places. Hopefully this guide should help clear things up for you. :slight_smile:
  • Quick Introduction to VueJS - What makes VueJs special is the fact that was designed to be incrementally adoptable, the core is dedicated to the view layer only but you can combine it with other libraries in order to create great single pages apps.

Testing

  • Improve your Javascript unit testing with Parameterized tests - Parameterized tests allow a developer to run the same test over and over again using different values. Mocha-param helps where existing testing frameworks do not support this out of the box.
  • A tool to see the execution of plain and simple javascript code - A tool and a web site for javascript API authors that looks a bit like a video player but runs JavaScript. Use it to present your javascript code or to test your API or both.
  • New JS test library - Sazerac helps you create simple, readable tests. It works with Jasmine, Jest, and Mocha.
  • Top 5 Most Rated Node.js Frameworks for End-to-End Web Testing - We will discuss their main features and try to perform a couple of basic actions with each, which will allow us to understand what each framework is worth. I’ll describe what you need to do to write your first simple test.
  • Useful Tip: Tapping for quick debugging - A really useful function for quick-debugging chains of function calls, anonymous functions and, actually, whatever you just want to print.
  • Benchmarking your JavaScript code - I’ll show you a super easy way to benchmark your JavaScript code. I have some code which needs to match a string against a list of domain names. Of course, my first thought was to use a RegExp. It works. And then I thought lets iterate over the list, and use String.indexOf(). Which one is faster? Benchmark them!

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.

1 Like

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