jtotheizzoe:

Recursive Drawing

Drawing programs don’t always have a “point”, even if they are fun. Recursive Drawing, however, aims to use a simple and addictive user-interface to explore how drawings could be translated into programming. 

On the surface, it’s a purely fun tool (which you can, and should, play with!) to draw crazy-awesome things like Fibonacci trees (like in the video). But deep down, it’s an experiment in translating visual objects into programming commands. That’s called a spatial or visual programming environment, and it’s a way to disconnect the syntax of programming from the logic and math.

Environments like these also let non-English speakers and young people get introduced to programming skills without having to master the language itself. But if you don’t want to pay attention to all that, it’s just really FUN!

Previously: A dangerously addictive online fluid dynamics simulator and a particle/gravity simulator that really looks more like fireworks.

williamedwardscoder:

Enigma in a spreadsheet!

Back in the summer of 2009 a friend of mine read a few of my books covering cryptography.

This is his interpretation of the Enigma cipher machine; the distillation of a mental model he formed from reading those popular-science treatments of the machine.

He is not a programmer or anything but he just proved his aptitude; and he’s super-leet at Excel too!

I think we can all agree this is programming, even when done by someone who is not a professional programmer and who has no formal programming education.

When I asked him if I could post his old Enigma spreadsheet, he was skeptical that anyone would be interested.  Outside the programming world, normal people think making complicated spreadsheets in their spare time is creepy and to be suppressed ;)

Now the Internet is awash with Engima machines in Flash applets and such; none seem to agree with any other, and this spreadsheet is no exception to that.  So it would be most unlikely this is a truly accurate representation of the real machine.

However, my friend is a good visual learner; I think if we could just get him to Bletchley Park he’d refine and fix his mental model and build a better, more correct spreadsheet :)

I figure we all just have to give him encouragement - comments and code review and such - and get his appetite whetted for doing more of this computer type of thing!  So if you enjoy his work, please say

Download the spreadsheet here

Discussion on Hacker News and Reddit; saw it somewhere else?  please say :)

Convert Ruby 1.8 to 1.9 hash syntax

thoughtbot:

In vim, for an entire file:

:%s/:\([^ ]*\)\(\s*\)=>/\1:/g

In the shell, for an entire project:

perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb

Now, instead of those old-school hashes like this:

get '/', :agent => MOBILE_BROWSERS do

You’ll have new-school hashes like this:

get '/', agent: MOBILE_BROWSERS do

Authority is won not by rants but by experience and insight, which require practice and imagination. And maybe some programming. http://commandcenter.blogspot.com/2011/12/esmereldas-imagination.html