stevengharms.com

Sententiae viri ex temporibus duobus

Steven Is a Whimsical Programmer

Nowhere is this more readily seen than when learning a language, in this case Ruby.

` def something puts “Say Something” yield(“\t[”, “]\n”) end

something { |startchar, endchar| puts startchar + “Reggae, Reggae” + endchar} something { |startchar, endchar| puts startchar + “Rasta, Rasta” + endchar} `

Produces…

Say Something [Reggae, Reggae] Say Something [Rasta, Rasta]

Stay irie, my bretheren.

Bob Marley, Poet and a Prophet

Comments