Agile Web Development with Rails – Chapter 3

Hmm, well I’ve already zoomed through to chapter 8 in my actual reading/coding.  Better start getting these notes cranked out.  Oh, and why not purchase the book yourself and follow along.  It’d be interesting to get comments from other folks who are currently going through the RoR learning experience.

Chapter 3

This chapter mainly deals with the infrastructure of getting Ruby and the Rails framework installed, along with MySQL.  Luckily us ‘softies on Windows can just use the very cool InstantRails package, which is a 100% self-contained package of Ruby, Rails, MySQL and even an Apache web server with no actual installation required.  Yep, this got added to my portable app library very quickly.  Installation on Mac and Linux are also covered, which may come in handy one day when I’m able to get one of these.  (I am accepting donations…)  :)

Using the command-line, a blip on version control and editors are covered next.  It’s interesting to me that so far I have NOT missed my fancy VS 2005 IDE when coding Ruby.  Dave points this out and offers a quick plug for TextMate, which is pretty much everyone’s favorite editor for coding in the Ruby community, and from what I’ve seen, I can understand.  But alas, us Windows users are left out in the cold again.  Although I have been using what might be the next best thing to TextMate for Windows which is the e text editor.  It seems to have a lot of the features of TextMate and can even use the exact same bundles, which is where most of the editing power comes from.

Database support is pretty good in Rails as well, with all the major ones supported.  Most folks seem to stick with MySQL which is fine by me.  But SQL Server is supported for all of you who feel like you just *have* to keep one foot in the Microsoft camp.  ;)

And finally, we get a little taste of something called RubyGems.  This is one of the really cool things that seems to be missing from every other framework I’ve worked with.  The ability to issue a simple command at a command-line and have the entire framework and plugins downloaded and/or updated, including all of its dependencies is extremely useful.  It even keeps a history of the previous versions.  Genius, I say!  In .NET, imagine how much time has been wasted by having to open a browser, finding the framework/plugin update you’re looking for, downloading it, unzipping it and copying the assemblies to your project folder.  Oh, and don’t forget that you have to update your project “references”, blah, blah. 

<side_note>

As I’m starting to build my first RoR application (even though it’s the sample from the book), I’m starting to realize just how much time is wasted on non-business related ”things” when coding in .NET with VS 2005. 

NOT ONCE have I had to:

  • Add New Project
  • Add Project References
  • Even Compile!

Of course, tools like ReSharper definitely help speed things up, coding-wise.  But you still have to muck around all of the “features” of VS 2005 like projects and references.  I’m starting to imagine how much faster I could deliver more business value if I didn’t have to worry about stuff like this.

</side_note>

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

This entry was posted in books, rails, reviews, ruby. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

One Response to Agile Web Development with Rails – Chapter 3

  1. Excellent posts Joey. Keep’em coming brothers.