Linguistic dynamism

Screen shot 2011 04 30 at  3.30.41

(git-blog: git-blog.rb @ 1845890, lines 15 ‒ 37)

Dynamic languages like Ruby are a beautiful opportunity to turn your functional code into art. In this example, I overrode the operation of the division operator on Ruby’s Symbol and String types to allow the lines of code themselves to look like the file-system paths that they represent.

keyboard shortcuts: L or F like post comment