Archive for October, 2006

Life on Rails, the fast track

Tuesday, October 31st, 2006

This is going to sound like a sales pitch for Rails, I’ll admit, but if I like something, I’ll shout about it from the rooftops. So, lets talk about my current phase. Welcome to Ruby on Rails…

I was introduced to Ruby on Rails at Genesys by Elliot. It all started when he wrote the 6 hour speed coding challenge in 20 minutes. Then I watched this video:

Amazing isn’t it.
So, I got cracking at it. It took me a while to get it set up on OS X but I followed this tutorial: http://developer.apple.com/tools/rubyonrails.html from apple and everything was set up. With textmate installed everything was organised, syntax highlighted and databases hooked up.
Ruby is a Model View Controller language. Everything you do is a method. Calling generate creates skeletons that are very simple to edit. It’s got templates built in to it, unit tests, it’s super fast and… just amazing. Sorry, it’s late. Zero brain power.

So, I pretty much want to try and develop USE v4 in Ruby. It’ll be a great test and it’ll probably make me a better programmer.

Enough of this. I’m off to bed

Steve

Currently Listening to: Muse – Black Holes and Revelations
Currently Watching: American Dad
Currently Eating: Jammy Dodgers
Currently Reading: Agile Web Development using Rails

Fantasy Hockey Lessons (v3.05)

Friday, October 27th, 2006

*ahem… swallows pride*

USE v3.05 ( Fantasy Hockey Update)
League table now links to teams and managers profiles
Create team allows for team names with ‘ in them
Profiles for other people’s teams displays correctly
Myteam budget remaining now has a £m formatted to it
Table pagination now works correctly
Anonymous and SS removed from top points
Fixed Picmenu delete bug
Two addslashes fixes
Delete match report empty array error
Transfer price fix
Fixed archives special characters bug
Fixed minor layout bug in gallery
Fantasy Hockey Logic Fixed

Yeah…. that’s a lot of bugs considering I said it was all done last time. There are lots of minor ones like links not working, but there are also some massive ones like the long-standing bugs like the edit match report bug that i’ve never been able to reproduce!

It turns out that the fantasy hockey bug was a problem with my logic. It works with a repeated function to calculate each person’s individual score then it posts those scores back into an array which are added to each team which has that player in it. Turns out that I was posting back the player’s total score for all time rather than just the updated score. So, I moved the individual player score database update to the repeated function and it returns the difference rather than the total. With that done, everything should work “flawlessly”…

So, it’s been a learning process. There are still minor bugs (there’s no admin menu for fantasy hockey) and v3.1 is quite a long way off. Development of v4.0 is slow to non-existent. Genesys work is slightly on top of me. Lots to do.

Anywho, next time, more features, i promise!

Steve

Currently Listening To: Damien Rice – 9
Currently Reading: Email… so much spam!
Currently Watching: Heroes
Currently Eating: Spag bog
Things to do tomorrow: millions