Notes from Chirb Dojo — Game of Life Kata

datePosted on 13:48, November 6th, 2009 by Peter Fitzgibbons

The code was not much to look at.  We mostly rspec’d a few methods and learned that just because you ‘def to_s’ doesn’t mean the implicit string conversion uses it!
I think the real issue we uncovered was that the implicit string conversion produces escaped string and calling #to_s produces unescaped strings.

Ruby Gems we used to setup the environment.

  • rspec
  • ZenTest
  • redgreen (for windows users)

heredocs — we talked about how to produce heredocs   You can either use multi-line double-quoted, or <<-eot

text = <<-eot
This is the heredoc text
It can even include evaluations #{Time.now} !!
eot

More about heredocs : http://blog.jayfields.com/2006/12/ruby-multiline-strings-here-doc-or.html

A windows-implementation of textmate : http://www.e-texteditor.com/

The Ruby Way — Hal Fulton

http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAwQFjAA&url=http%3A%2F%2Fwww.amazon.com%2FRuby-Way-Second-Techniques-Programming%2Fdp%2F0672328844&ei=OuLwSsj_PIa1tgf59N26Cw&usg=AFQjCNHhpmT3C35Xiianfordqb21_DsWIA&sig2=Pb631QnepV_sAD8wmRuPTA

The Rails Way — Obie Fernandez

http://www.google.com/url?sa=t&source=web&ct=res&cd=3&ved=0CBYQFjAC&url=http%3A%2F%2Fwww.amazon.com%2FRails-Way-Obie-Fernandez%2Fdp%2F0321445619&ei=V-LwSunCEYeVtgfWib26Cw&usg=AFQjCNGpPcvEJDxIOGEwWZZIp9HXnbPC0A&sig2=0ofdwEJfrMOm7U3bR7c5OQ

The Rails Way Blog therailsway.com

Enumerable Module

categoryPosted in Uncategorized
Related Posts:

One Response to “Notes from Chirb Dojo — Game of Life Kata”

  1. Michael Livshutz on November 6th, 2009 at 11:23 pm

    This is a treasure trove of great info:
    http://en.oreilly.com/rails2009/public/schedule/proceedings

Leave a Reply

Name: (required)
Email: (required) (will not be published)
Website:
Comment: