(from Hilbert's Grand JavaScript School)

day six

Bertie goes home, exhausted, and dreams that having graduated everyone at the end of Day Five, things are busier than ever. In his dreams he imagines an infinite number of galactic superclusters, each containing an infinite number of galaxies, each containing an infinite number of stars, each containing an infinite number of worlds, each containing an infinite number of oceans, each containing an infinite number of aircraft carriers, each containing an infinite number of buses, each containing an infinite number of students.

He awakens and reasons that what he is dealing with are powers of infinity. A simple infinity is infinity to the first power. Two infinities (buses and students) is infinity to the second power. Three infinities (aircraft carriers, buses, and students) is infinity to the third power. And so forth up to galactic superclusters, infinity to the eighth power.

1 2 3 4
something = if condition

In JavaScript, you can make a right-variadic function by gathering parameters. For example:

const abccc = (a, b, ...c) => {

abccc(1, 2, 3, 4, 5)
View any-partial-application.js
1 2 3 4 5 6 7 8 9 10
const div = (verbed, numerator, denominator) =>
`${numerator} ${verbed} ${denominator} is ${numerator/denominator}`
div('divided by', 1, 3)
//=> 1 divided by 3 is 0.3333333333333333
const anyPartialApplication = (() => {
const placeholder = {},
anyPartialApplication = (fn, ...template) => {
let remainingArgIndex = 0;
View flip-flop-merge-sort.js
1 2 3 4 5 6 7 8 9 10
const sorted = arr => {
const length = arr.length;
let unsorted = new Array(length),
sorted = new Array(length);
const destructiveSort = (unsorted, sorted, offset, length) => {
if (length === 1) {
sorted[offset] = unsorted[offset];
View destructuring-within-while.js
1 2 3 4 5 6 7 8 9 10
const arrayIterator = (array) => {
let i = 0;
return () => {
const done = i < array.length;
return {
value: done ? undefined : array[i++]
View scope.js
1 2 3 4 5
var fn = function reddit () { console.log(reddit); }
//=> [Function: reddit]
//=> ReferenceError: reddit is not defined

MTB Blues

I've been riding a geared, full-suspension 26er mountain bike for three months now. It is not ridiculously heavy. It is not lightening fast. It has nine different gears, which are eight more than a singlespeed, and two fewer than the latest trick componentry. Its suspensions is around 140mm, which can handle most trail things but not, I imagine, massive hucking. It seems from my inexperienced view to be a competent but uninspiring machine.

Despite its stolid capabilities, I struggle to feel comfortable with it.

my mountain bike

My new bike has 26" wheels. A few die hards laugh and say a good rider can ride anything, but this logic is obviously flawed: Yes, the fittest rider in any group can ride the lowest-performing bike, but we can't all be the fittest rider: Most of us have to be clustered around the mean. That's science, folks. If I'm in pretty-much the same shape as everyone else, and if I'm working 3% harder than everyone els


Keybase proof

I hereby claim:

  • I am raganwald on github.
  • I am raganwald ( on keybase.
  • I have a public key whose fingerprint is EE3E ACF3 8CA5 C802 06D8 6267 D0F0 5DF6 75DD 151D

To claim this, I am signing this object:


Some people have told me that they WANT companies knowing their preferences to create a "better web / inter webs experience"

--Alan Armstrong

Typically, people assume that if companies have lots of information about them, the Internet will be pretty-much the same as it is today except the ads will all be for things they like. Win-win!

But that's not how it works. It's not just the ads that will change. Reality as you perceive it will change. When friends post complaints about products, you will see less of those complaints on Facebook and Twitter, and you'll see more positive reviews, because that's what encourages you to click on ads and buy things.

What they know about you will affect what you see on social media like Facebook or Twitter, what news stories will appear when you go to a "newspaper" like, and what products you will find when you do a search on Google, within Amazon, or on eBay.

Something went wrong with that request. Please try again.