Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice. I waste a lot of time converting prose/poetry that I like into code. Here's the first four lines of [the widely anthologized I guess] Wasteland:

// cruellest_month.js

import lilacs from 'deadland';

import spring from 'seasons';

let April = function() {

  let season = spring;

  return {

    breeding: function() {

      return lilacs();

    },

    mixing: function() {

      return shakeUp(memory, desire);

    },

    stirring: function() {

      let dullRoots = this.breeding().roots;

      // move dullRoots in circles, using the avg

      // rainfall speed to calculate the period

      let circum = this.breeding().plotRadius * Math.PI * 2;

      let period = circum * this.season.rain.averageSpeed();

      dullRoots.setIntoCircularMotion(circum, period);

    }

  }
};

exports.cruellest = {

  "month": April
};


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: