Archive | July 2, 2012

lyriqal and Ruby on Rails

So for the past couple of months I have been getting my toes wet with the ruby language and ruby on rails, I have to say, this language/platform is using some serious automagic voodoo. Just write the code, and it will work. No questions asked.

It still gets me that I don’t need semicolons, and at times, I inconspicuously finding myself using semicolons in my code. Which is kinda funny. Also the return statements in ruby is just odd. But the beauty of ruby is that I don’t need to make sure my code is white space indented to the t, (unlike python.)

#returns a random number based on a dice rolling
def randnumber
4
end

Me gusta. Although I am (forcing myself, this is a lie, I always, due to habit) using the return statements where ever a return is needed.

From the past 5 months, the code base for lyriqal has grown from the basic rails generated structure to about 26400 lines of code. We are close from reaching the second milestone release.