Creating a Table

September 17th, 2007

My first step to creating a hello-world style Rails application involves using a database. Using PHP on a regular basis and being the type of person that tries to use a tool without reading the instructions first, I jump into a MySQL console and create a table to work with. mysql> create table newsletter_subscribers ( [...]

Unit Test Cases

September 11th, 2007

One strong point of unit tests is when modifications are made to code, a unit test can quickly ensure that a function or method is not broken. In my past work experience, developing unit tests aren’t put into practice. Typically, the following happens: I make a code change. I test the code change from an [...]

Fibbing a Sequence

September 9th, 2007

The Fibonacci sequence is a one of those mathematical formulas that I learned in grade school and promptly went in one ear and out the other. This formula solved a rabbit breeding problem that Fibonacci created in one of his works in 1202. Recursive in nature, the formula creates a sequence of numbers where the [...]

Hello World

September 3rd, 2007

As with any introduction to a programming language, I start off with a simple Hello World program. What takes me a minute to do in a language that I know, takes much longer with one that is foreign to me. I’ll make this a bit more complicated, asking for the person’s name and telling them [...]