August 2009
5 posts
Two spaces or one after a period?
I’m curious. I’ve been typing two spaces after a period since I learned to touch type in Middle School. It’s so automatic that I don’t even realize that I’m doing it. Is it still correct?
Aug 28th
2 notes
NPR.org : Free For All? Profits Can Be Elusive... →
Awesome! We’re on the radio! daryn: TeachStreet is going to be mentioned on NPR’s Morning Edition tomorrow morning! It’s exciting whenever we get exposed to a new audience, especially outside the tech blogosphere, but this is a whole new awesome: N-P-R!
Aug 19th
Aug 16th
72 notes
2 tags
Aug 11th
2 notes
3 tags
On Procs and Rubies
Recently, I’ve been playing around with Shoes. I ran into an interesting bug (or side affect?) in Ruby 1.8. Here’s the first code sample, create a Proc for each item in an array, then calling it. procs = [] [1, 2, 3].each { | x | procs << Proc.new { puts x } } procs.each { | p | p.call } # prints 1, 2, 3 Here’s the same code, but adding a local variable of x before...
Aug 2nd