next stop: semantic metaverse

Avatar

random stuff about the semantic web, mobile technology and mapping

TRE: Day 2

So, this is day 2 of The Rails Edge conference. Since my last post, there were sessions by Marcel Molina Jr on ActionPack, Justin Gehtland on AJAX, Mike Clark on whether Rails is the right tool for the job, and currently I’m listining to Marcel explain ActiveRecord. Very interesting and valuable sessions that go into a lot of detail.

I’m not going to go into a lot of detail on these sessions, suffice it to say that if you’re interested, I have a big binder with the slides of each presentation that I’d be happy to share (by letting you borrow the binder, of course…I don’t have a soft copy, and I’m sure that the speakers don’t want this posted).

Technorati Tags: ,

TRE: Design Patterns in Ruby

Jim Weirich’s talk was about design patterns in Ruby. Overall, it was an informative talk, but I felt that it didn’t add much to my knowledge of design patterns from the Java world. He covered some of the GoF design patterns, and listed their Ruby equivalents (in many cases the equivalent was part of the language itself, or extremely easy to add).

Nevertheless, I am certain that many people found the talk very valuable, because being aware of design patterns is one of the things that makes a good programmer.

Technorati Tags: ,

TRE: Rails Reflection

Chad Fowler just finished his presentation on Rails Reflection, telling us how we can dynamically introspect and manipulate Rails objects and classes, such as ActiveRecord objects, routes, etc.

He also showed an app that Bruce and Chad and him developed, which basically allows them to build ActiveRecord models through a web interface (complete with on-the-fly database table generation). They ended up scrapping it because of certain problems with it (I’ll have to find out what those problems were).

One particularly interesting tip was using the Rails console for executing migration statements. It kinda goes likes this:

  1. Bring up the rails console
  2. Execute ‘irb ActiveRecord::Base.connection
  3. Now you can call migration statements as you would in the up or down methods of a migration

Another good tip was routes reflection by using this in the console:

puts ActionController::Routing::Routes.routes

Overall, a very interesting talk.

Technorati Tags: ,

TRE: Photos from the conference

There are several people here at the conference taking photos and posting them on flickr. Check them out here.

Technorati Tags: ,

TRE: Ruby Idioms for Rails

Stuart Halloway gave a talk on Ruby idioms for Rails. He started off his presentation by talking about implicit vs. explicit, and rewriting a Java Struts method to an equivalent RoR method. It was actually quite humorous, he was basically able to get rid of most of the statements in the Java method, and condense things down to just a few concise and easily understandable lines of code.

Bottom line: Rails has an implicit API, whereas Struts (for example) has an explicit API

He went on to discuss the dangers behind the immense power of Ruby, such as dynamically injecting new functionality to classes or aliasing methods. I wholeheartedly agree, as I’ve been bitten by things like that before, too.

Finally, he made a call for refactoring common Ruby/Rails idioms into more abstract ‘helper methods’ (not sure if that’s the right term), to improve readability, keep things DRY and make future changes easier.

Technorati Tags: ,

TRE: Metaprogramming Ruby

Dave Thomas’ presentation on metaprogramming Ruby was pretty interesting. He tried to explain what makes Ruby such a great language, and how it is different from less dynamic languages like Java. The 4 main features of Ruby that make it such a powerful metaprogramming language are:

  • Classes are open
  • Definitions are active
  • All methods have a receiver
  • Classes are object

Dave illustrated these concepts through a series of examples in Textmate, which were quite helpful. I had no trouble following his talk, but was impressed at how much detail he was covering. I would imagine that somebody who is new to Ruby might have found some of the concepts a bit daunting.

Technorati Tags: ,

TRE: The conference begins

Just got to the Marriot Denver Tech Center, where I’m attending The Rails Edge conference. The drive was much better than anticipated (I managed to avoid the parking lot on I-25), so now I’m sitting in a spacious conference room with about another 50 people, having breakfast and waiting for the conference to start.

IMG_1157.JPG

I’ll keep you updated.

Technorati Tags: ,

Going to The Rails Edge

Over the next 3 days, I’ll be attending The Rails Edge conference here in Denver. This is my first Ruby/Rails conference, and the list of sessions looks very interesting, so I’m looking forward to it.

I’ll try to post my notes here on my blog, so stay tuned.

,

FOAF

Before you go

Going so soon? May these links be a guide to web enlightenment. Schwing!