Issue #82 · October 1, 2018

Flocking algorithms in JavaScript

“UNIX is simple. It just takes a genius to understand its simplicity”

Best 7 links of week #39, 2018

Flocking algorithms in JavaScript

Flocking algorithms in JavaScript

Have you ever watched a school of fish, a flock of birds, or even a crowd of people and watched how they move? Moving together, yet without a leader, they are exhibiting a behaviour known as "flocking". In this fantastic article, you will learn how to code different flocking simulation algorithms in plain JavaScript!

Articles

Tying a React SPA to WordPress as a Backend

Combining WordPress and React is a powerful way to build web applications. Read this intro to the WP REST API and step-by-step tutorial for a neat React SPA with WordPress as a backend.

How we rolled out one of the largest Python 3 migrations ever

Dropbox is one of the most popular desktop applications in the world: You can install it today on Windows, macOS, and some flavours of Linux. What you may not know is that much of the application is written using Python and that the codebase underwent a huge migration to move from Python 2 to Python 3.

Timsort - an efficient sorting algorithm

Recently introduced in V8 to speed up Array.prototype.sort, Timsort is a hybrid stable sorting algorithm, derived from merge sort and insertion sort, designed to perform well on many kinds of real-world data.

The making of Underrun

Underrun is a wonderful WebGL game playable in the browser that, believe it or not, is made only of 13kb of assets (JavaScript and images). This article describes some of the design techniques used to keep the asset size so small without penalizing style and gameplay.

What’s the difference between an integer and a pointer?

In an assembly language we typically don’t have to worry very much about the distinction between pointers and integers. Some instructions happen to generate addresses whereas others behave arithmetically, but underneath there’s a single data type: bitvectors.

Book of the week

Agile Web Development with Rails 5

Agile Web Development with Rails 5

by Sam Ruby

Rails 5 and Ruby 2.2 bring many improvements, including new APIs and substantial performance enhancements, and the fifth edition of this award-winning classic is now updated! If you're new to Rails, you'll get step-by-step guidance. If you're an experienced developer, this book will give you the comprehensive, insider information you need for the latest version of Ruby on Rails.