RubyTapas Episode 4: Barewords

In today’s free Monday episode of RubyTapas, some thoughts on how to enable method logic to remain stable and unchanged while evolving and changing the source and scope of the values used by the logic.

Like what you see? This is just a taste of RubyTapas! Sign up today to get two videos a week, along with full source code and transcripts. Or click here to learn more.
This entry was posted in Ruby, RubyTapas Samples, Screencasts, Videos. Bookmark the permalink.
  • http://twitter.com/glanotte Geoff Lanotte

    Well done, very informative and got me thinking. I would be interested to see how you would see this playing into rails views.

    • http://avdi.org Avdi Grimm

      I have some specific techniques for that, so I’ve added this to my episode idea queue. Thanks!

  • http://bettong.net/ Urban Hafner

    Great episode, and I love the Discworld reference :)

    • http://avdi.org Avdi Grimm

      :-)

  • mhinton25

    This episode was really good.

    • http://avdi.org Avdi Grimm

      Thanks!

  • Michal Krejčí

    I always thought which version is better:

    def full_name; “#{@first_name} #{@last_name}”; end
    def full_name; “#{first_name} #{last_name}”; end

    So you’re suggesting to stick with the second variant when there’s attr_reader for both :first_name and :full_name specified?

  • Pingback: The Ruby Freelancers Show 035 – Book Picks

  • http://twitter.com/plexus Arne Brasseur

    Thank you for this episode. I was wondering, what emacs stuff do you use to do that ‘evaluate and insert as comment’ trick?

    • http://avdi.org Avdi Grimm

      the rcodetools gem, with its included emacs extension.