delicious

Learning To Code By Writing Code Poems

A murb'ed feed, posted more than 5 years ago filed in code, learning, coding, javascript, ruby & approach.

Learning To Code By Writing Code Poems would ve been even more Poetin if it would ve been in Ruby

The returnig example is:

if (me.getDistanceTo(you.position) < 200) {
  me.setFeelings({
    inLove: true,
  });
}

In ruby:

My.feelings.merge(inLove: true) if my.distance_to you < 200

Anyway, I think it is a nice alternative approach to learning programming.

See also: If Hemingway wrote JavaScript

Go to the original link.