Archive for 2005

just do something already

Tuesday, December 20th, 2005

Along the lines of Joel’s Fire and Motion article, the guys at 37signals are on the right track:

If you find yourself talking more than walking, shut up, cut the vision in half, and launch it. You can always fill in the gaps later. In fact, you’ll know more about what gaps need to be filled after you’ve launched “half a feature” than if you tried to fill them in before launching anything.

Too much thinking can lead to analysis paralysis. Just start the ball rolling, get forward motion and momentum on your project. Obviously some degree of planning is required, but a customer won’t pay you for pages and pages of design documents and fancy flow diagrams. You get paid for a working product. Frequent iterations, tweaking along the way will get you where you need to go. Mind you, this applies well to web applications and smaller teams projects. I could never apply this to a larger project like at my work. The teams are much larger, the release cycles need to be longer and the product is much more complex. Planning is required, but we tend to keep it to a minimum where possible.

first day riding this season

Tuesday, December 20th, 2005


I got an early start to the snowboard season this year. On Sunday, Dec 18 I went riding with my bro Ben (of course), and friends Betty, John & Luq to Blue Mountain in Collingwood. Ontario ski hills aren’t something I’m happy with nor challenged by, but a day riding anywhere is better than a day sitting on the couch. But I was actually surprised by Blue Mountain. It’s much better than Moonstone where we went last year. The trails are somewhat longer and there’s some steeper pitches to the hill. It’s definitely somewhere I’d consider going again for a couple of times this year.

It was a good warmup to get the legs going (the first day of the season is always the worst). The snow was very good as we’d just gotten a storm earlier in the week. We even found some small areas of untouched snow. We did a few runs in the half pipe as well. I was a lot more confident this year after practising last year. The pipe wasn’t as icy, there was sun keeping the snow soft on one wall. I even spun an accidental backside 360 at the end of my first run. I was only going for a 180 but I had overcorked myself and the flex in my board spun me around more than expected. All of a sudden I was all the way around 540 degrees and let out a “whooo” of surprise. I took 5 runs in the half that day and my legs got more tired after each run. I’d like to spend a few more days this year practising the half.

A fun and tiring day overall. A few more days like that will get me prepped for our big trip in March.

Rails gets official

Thursday, December 15th, 2005

ruby

Rails 1.0: Party like it’s one oh oh!

Ruby on Rails goes 1.0 finally and even gets a 37signals visual overhaul. Upgrade now.

37signals

Technorati Tags: ,

stomach flu

Wednesday, December 7th, 2005

Nasty. I felt like I was getting sick as I was going to sleep last night. But I thought I was just tired and needed some sleep. By the time I got to bed, I knew something wasn’t right. An hour into my sleep I was up running to the washroom. I hate getting sick. I didn’t sleep at all last night. Which made today mighty difficult trying to work. I’ve just finally got some soup in my belly, hopefully I’m better for tomorrow. It’s an important work week.

Ruby on Rails book review and cheatsheet

Tuesday, December 6th, 2005

Along with many software coders, I’ve become a Ruby on Rails fan as well. I’ve had an interest in it for a while after reading so many websites talking about productivity gains. Its simplicity and speed of getting an application moving amazed me. Now I want to give back by helping to increase the RoR knowledge base by providing a Ruby On Rails cheatsheet.

When coding in Java, I’d get an idea in my head, start brainstorming about how it would work then I’d start setting up my work environment at home.

  • Create a new directory structure for the project.
  • I’m going to need logging – get the latest log4j jars.
  • Get JUnit for unit testing and include in project.
  • Get Hibernate for database persistence. Configure the hibernate files.
  • Get a templating project (Spring/Velocity/etc – take time to decide on which one) and add to project.
  • Do I want to use Struts for this too?
  • Assemble all the other jars I’ll need.
  • Setup a new project and configuration in my IDE.
  • Setup database connections and test that out.
  • Etc, etc, etc.

By the time I even start to write one line of code, it’s usually taken me until 2 evenings later, as I’ve got a day job and these ideas are meant as fun nighttime projects. By this point, the excitement of the idea is lost and the project gets shelved along with the others as something more important has usually come along or interrupted me enough to get in my way.

With Ruby On Rails, it’s a much different story. Within 5 minutes of sitting at my computer, I can be up and running with a complete environment, database configuration and blank template pages already showing me some results. Hours vs minutes makes a lot of difference. Just getting the project started is much faster, not to mention the amount of code required to do comparable tasks.

After trying out mostly all of the tutorials available on the internet, I ordered “Agile Web Development with Rails” from Chapters (Canada’s version of Barnes & Noble). I dug in, skipping to the appendix to review the Ruby syntax chapter so I’d understand the Rails code better. The book is a very easy read, written like a teacher is talking to you. I find this much easier to follow along than a heavily technical book. The book walks you through a tutorial as though you’ve been hired to create a storefront application for your customer who you consult with frequently (the Agile part of the book). And the tutorial gives you just enough information to keep you working along, rather than overloading you with everything on that subject in the chapter. If you want further in-depth knowledge of a subject, that comes in the next section of the book after the tutorial is completed.

I flew through the tutorial reading while commuting back and forth from work, then typing up the code when I arrived home at night. I stopped after the tutorial section, but haven’t jumped into the more in-depth content yet. I think I may review that section as I get stuck and need more information on a specific topic.

For now, I’m happy to try building some simple applications I’ve had floating around in my head for a while. And it won’t take me 8 hours before I type a single line of code.

Don’t get me wrong, I still really like Java and I know I will still use it (my day job is all Java based). There’s certain things I would choose Java for over Ruby on Rails and vice-versa. Use the right tool for the job. And now I have an extra tool in my toolbox.

Also, as part of my Ruby on Rails learning process I took a lot of notes (I’m a visual learner), so writing notes helps me to remember better, along with retyping out all the code in detail. Inspired by the PDF cheatsheets Amy Hoy produced, I’ve created my own set of notes and general cheatsheet as a reference to keep next to my desk when I need to jog my brain.

The document is at 14 pages so far and I’ll probably update it as I continue to learn more on RoR.
Continue on to download the Ruby On Rails cheatsheet.

Technorati Tags: , , , ,

back in operation

Sunday, November 27th, 2005

I’ve got this blog back up and running again. I had to mess around with templates and stuff when I upgraded. I also figured while I’m at it, I should add in the photo of the day from my photoblog site. So now you see at the top right the image of the day. Updated every day. I have to thank my friend Doug [strangebreed.ca] for the php code. He’s recently started a photoblog as well. Check his site…he’s got streaming music with requests and all sorts of funny stuff. The dreams section is my favorite.

The benefit of switching

Friday, November 18th, 2005


For the past 2 evenings after work, I have been reminded of the benefit of switching to my new Mac. The Mac just always works, you don’t have to mess around with it.

Earlier this week, on my PC (I still need it for some tasks) I somehow got a virus (funny that it happened around the same time as I was upgrading my firewall – another thing I don’t have to mess with on the Mac). So I’ve spent the past 2 evenings trying to remove this virus. And it was a tricky one. It was a DLL loading into memory before I could login to shut it down and I couldn’t delete the file as it was in use, so Windows locks the file. Rebooting in Safe Mode wouldn’t work either. I cleared the file out of the registry as well. The virus scanners could detect it (thankfully), but couldn’t repair or delete the file either as it was in use. Soooo frustrating.

I finally had to resort to downloading a Linux Live CD (Lindows, actually), booting that CD and then going into the Windows file system to delete the file. Such a hack just to prevent stupid issues.

2 nights of productivity gone. Think of what you earn per hour. Add up those hours for the 2 evenings of work lost. Still think a Mac is more expensive than a PC? Add the cost of all your wasted time from virus prevention, configuration, windows updates & reboots and you’ll see the total cost of ownership for a PC is much more than a Mac. And that’s just on one occasion. Stuff like this happens at least once a month. When I first started using my Mac, I immediately noticed I didn’t have to do this stuff anymore, it all just worked.

This weekend, I plan on spending some time at my Mac. Just enjoying using it. Not worrying about frustrating viruses, updates, etc. As soon as I sit at the Mac, it’s just ready to do what I want to do, not what the computer wants to prevent me from doing.

‘Arrested Development’ gets the ax

Sunday, November 13th, 2005

Arrested Development

CNN.com – ‘Arrested Development’ gets the ax – Nov 11, 2005

The Bluth clan of Fox’s ratings-challenged “Arrested Development” is also headed for the exit after Fox cut the third-season order on the Emmy-winning comedy to 13 episodes.

I can’t believe the best show on tv is getting cut. I still don’t know why people don’t tune into this show. It’s hilarious. Smarter & funnier than 90% of the shows out there, it’s on Seinfeld’s level. How is it that the stupidest shows like According to Jim and Yes Dear are still on, while brilliant shows like AD get cut?

Shouldn’t it mean something that celebs are dying to get cameos on the show because they know it’s so funny? Everyone wants a piece of this show, yet the ratings don’t reflect it.

I’m hoping Fox soon reconsiders like they did with Family Guy. Family Guy was cut completely off the air, fans bought a ton of DVD seasons and it made Fox realize there’s still a huge audience for that show. I urge all AD fans to buy the tv seasons on DVD to show your support for the show. I’ve got Season2 so far (thanks sis), I’ll be asking for Season1 for Xmas and I’ll pick up Season 3 when it’s released. Even watching this show repeatedly still makes me laugh. The jokes are so subtle. Maybe that’s why people don’t like the show – you have to pay attention and listen for the jokes, instead of hearing the lame laughtrack and laughing along with it like typical comedies.

AAaagh. So frustrating.