I had some followups to issues that came up at Tuesday's meeting. IRB (Interactive Ruby) is a convenient way to experiment with Ruby. It's a command line...
Code Reviews! How to get most out of Code Review? What is the best structure for a code review? I hope there is enough interest in this subject to get a good ...
I don't expect that many people will have done all the exercises before the meeting, so we'll be pairing on them during the meeting. Don't read a solution...
Actually, the first solution there has a typo. Must have gotten the earlier draft. A correct solution would be: File.open("sampleOutput.txt", "w") { |file| ...
There are books on code reviews listed here: <http://c2.com/cgi/wiki?CodeReview> As much as I like Jerry Weinberg's books, this one: [ISBN 0-932633-19-6]...
Tonight was a lot of fun. I had come across a baffling problem trying to do one exercise, Exercise K. It was to count the number of times that <=> was called. ...
Another item learned: Remember the $_ special variable? (This is the one that gets bound with the last return value on the stack) Imagine that you want to...
RE> Tonight was a lot of fun. I agree! I'm looking forward to next week. RE> I posted this on the ruby-talk mailing list... I notice you got a reply from Matz...
... Yeah, that was pretty cool. He explained that this was a performance optimization. Nice to see the inventor of the language keeping an eye on the mailing...
I was talking with another programmer who uses Ruby, Bill Clagett, and he came up with a different way to solve the interleave problem. We were talking about ...
Well, looks like yahoo stripped the indentation, and I realized that the first implementation of interleave has a debug statement in it that is not necessary....
Hi Robert, I thought I'd post our interleave solution to add to the mix. Thank Eric Vautier for coming up with the algo. def interleave(s, t) retval = "" for i...
. File.open("somefile.txt").each_with_index do |sLine, iIndex| . puts sLine if iIndex % 2 == 0 . end (To try to keep yahoo from losing the indentation, I...
Or more a Perl-like solution to Exercise D: #!/usr/bin/env ruby odd = 1; ARGF.each {|line| print line if odd>0; odd = 1-odd} ARGF is the special variable...
I'm still trying to figure out a good way to keep Yahoo from losing indentation on code snippets. Since the last experiment didn't work, I'll try using...
Here are all the new exercises, plus two even newer ones at the end. (To keep the formatting looking nice, periods are used at the front of lines, instead of...
(Periods are used instead of spaces for indentation to prevent Yahoo from left-aligning the Ruby code.) ============ ... Decorator Pattern Solution by Nat...
Hi everyone, If you follow lambdatheultimate, you may have seen this before, but I thought it was worth putting on the list for everyones enjoyement: ...
Hi All, Here's some information to digest as we move from Ruby to Rails, a new web application framework that's gaining traction. The starting point for Rails...
I've installed Rails on my system. It was quite easy to do, except that I had to gather the information from several different web pages and the Rails readme...
Here are some random things that seem like they would fill in some of the holes tonight. Two papers on using continuations for web programming from the people ...
http://www.beta4.com/seaside2/docs.html Here is the doc page for Seaside, the Smalltalk web framework that employs continuations. The intro paper, and the...