I’m working on Learn to Program by Chris Pine. This is one of the exercises mentioned in chapter 7 (chapter 6 in the online version).
Poor Grandma can’t hear very well. You really have to scream at her, but even then, she doesn’t quite hear what you’re saying. You have to be careful [...]
Entries Tagged as 'programming'
Deaf Grandma – Ruby Code
May 18th, 2008 2 Comments
Tags: code · programming · ruby
99 Bottles of Beer on the Wall – Ruby Code
May 17th, 2008 5 Comments
Here is my (very simple) version of 99 Bottles of Beer on the Wall in Ruby. I the only fancy thing I am doing is “while”. I don’t like the fact that the song is duplicated to handle one bottle, so I will eventually change that. I have a couple of ideas, [...]
Tags: programming · ruby
UC Berkeley Ruby on Rails 1-Day Course
May 10th, 2008 1 Comment
I found a one day Ruby on Rails course from UC Berkeley on YouTube. I haven’t watched the videos yet, but hopefully they will help improve my understanding of Ruby and Rails. With any luck, they won’t be 1 hour rickrolls.
I’m fairly certain that a short course won’t give you a full understanding [...]
Tags: programming · rails · ruby · Ruby On Rails · Uc Berkeley · Youtube
Ruby Course – Lesson 1
May 6th, 2008 1 Comment
I’ve reviewed lesson 1 of Satish Talim’s Ruby course, along with Yukihiro Matsumoto’s “The Philosophy of Ruby” interview. The most difficulty I had was with the modulus operator, which I posted about yesterday. I also learned that Google Calculator is incorrect in its calculation of the number of seconds in a year! [...]
Tags: blog · Calculator · Chris Pine · Constants · Couple Of Days · Google · Lesson 1 · Modulus Operator · Number Of Seconds In A Year · Philosophy · programming · Programming Language · ruby · Ruby Programming · Scribefire · Talim · Technorati · Yukihiro Matsumoto
Modulus (Modulo) in Ruby
May 5th, 2008 3 Comments
I found the modulus operator in Ruby to be quite different than Java. I think it worked the same way in Python, but I can’t remember.
I found a relatively easy way to figure this out for negative numbers:
When the second operand is positive:-12 % 4 = 0-11 % 4 = 1-10 % 4 = 2-9 [...]
Tags: Modulus Operator · Negative Numbers · Operand · programming · Python · ruby · Ruby Programming · Technorati Tags · What The Heck
Ruby resources for n00bz
March 19th, 2008 No Comments
I am learning Ruby. As such, i r n00b. Here is a list of resources I have found to be helpful so far.
Try Ruby! (in your browser)
This site allows you to get a decent overview of how Ruby works in an interactive manner. Definitely the first site I would suggest to anyone [...]
Tags: Ajax · Chris Pine · Learning Resources · N00b · Podcasts · programming · Programming Course · Programming Experience · rails · ruby · Ruby On Rails · Ruby Programming · Twenty Minutes · Youtube
Rails
March 17th, 2008 No Comments
Today I went through the Developing Rails Applications on Mac OS X Leopard tutorial. The tutorial from Apple was much easier to digest than some of the other ones out there. Yikes. I’m not afraid of terminal, but I started to get extremely confused when many of the tutorials I found were [...]
Tags: geek · programming · rails · ror · ruby · Ruby On Rails
Obituary: Bob Hunter
May 3rd, 2005 No Comments
I really enjoyed watching Bob read the morning news in his housecoat and slippers. It was a refreshing change from the usual morning news.
Canada NewsWire Group: “Citytv Mourns the Passing of CityPulse News Ecology Specialist Robert (Bob) Hunter
TORONTO, May 2 /CNW/ –
It is with profound sadness that we at CityPulse [...]
Tags: news · programming