Posts Tagged ‘Agile’
Friday, December 8th, 2006




continued in part 4…

.. continued from part 2

Iteration D3: Highlight Changes

This error had me stumped for a while, although it did force me to read through and really understand how the code was working. Something I have found a little difficult in Ruby is the debugging. Coming from a .Net background we have been spoilt with the debugging capabilities of Visual Studio, sometimes to the determent of knowing what is actually going on.

The error occurs when added a new product to the Cart. You get two dialog boxes the first gives “RJS Error: [Object Error]” followed by “Element.update(”cart”, …” this error showed the correctly rendered HTML that was inserted into the cart after clicking ok.

The “Highlight” effect was also missing from the cart item. Reason the <tr> tag for the cart item did not have the id <tr id=”current_item”> However the logic here look sound as the highlight did work for adding additional items of existing products. The problem must therefore be in the Cart.rb file which handles the add_product method.

The line @items << CartItem.new(product) should read @items << current_item = CartItem.new(product)

This assigns the newly created cart item to the current_item variable which is in turn added to the cart items.

Friday, December 1st, 2006



First Impression

Wow! That was easy!

After doing the normal Google -> Review -> Google some more process I was left with a long list of things to look at and also some other examples of people who have been down the same path. All of the development was completed on Windows XP SP2 (except the deployment to Linux which was running under VMWare).

  1. Install Instant Rails – This will get you up and running in no time, you don’t need to know anything about Rails or Ruby at this pointOne thing that you will notice if moving from the .net world is that you don’t need to compile it
  2. Read the Instant and follow the short tutorials, this is in the help\index.html directory where you installed Instant Rails
    1. Tutorial 1 – OnLamp.com
    2. Tutorial 1 – OnLamp.com
  3. Consider an Editor – I used RadRails but I’m still looking for something more…
  4. Watch the Screencasts to get a feel for what you should could do and how quickly (once you know Ruby)At this point you may want to purchase a Mac so that you can use the cool TextMate. I have already requested a Mac Book Pro as my next Laptop J
  5. Copy the code, but hand craft it to complete the Putting Flickr on Rails screencast
    This will help you find your way around the environment, debug the application (you will get an Invalid Key error, tip ‘look at the Flickr gem code initialization’)
  6. Purchase the book Agile Web Development with Rails, the second edition is out and fully up to date with version 1.2 of Instant Rails. The book details how to get the vendor version if it is not released yet. This is a really easy book to read, very well written and really does make a difference.
  7. If you enjoy reading and want something a little off the wall you could try Why’s (Poignant) Guide to Ruby, I have found this funny, but difficult to get into – but the Foxes did get the Chunky Bacon into the samples (you need to read it for that one J)
  8. Update Use source control – Subversion will do the trick
  9.  

Subscribe to some feeds Planet Ruby On Rails, Loud Thinking – David Heinemeier Hansson

Going forward I’m looking at improving my html development, I need to stop using tables!, I need to improve my JavaScript (http://script.aculo.us/ ) and I am looking at Unbuntu, MySQL, SQLLite, Lighttpd, Mongrel to name but a few.

Exciting times!

 

 

 

 

Thursday, November 23rd, 2006



Having developed software on the Microsoft platform since VB3 and before I have always like the way that as a developer things just worked, you click install and it does it all. I did flirt with Java before .Net came along; Java had a buzz and was moving on from the then VB6 solutions (and Visual Interdev was just horrible for ASP development).

My traversal into the world of Java was to be short lived, at the time Google had not been conceived and information, blogs and knowledge sharing online just did not happen. I failed miserably at the first hurdle trying to setup my development environment! The need for various versions of each separate component available from different sources was a mile away from the Microsoft bubble that I was used to. I ended my look at Java without even completing the ‘Hello World’ application L.

Now many years later and happily coding in the world of .Net (now in its version 3 flavour) I am starting to look fondly at the open source market again. This had crept up on me as I had started to bring Nant, Ndoc, CruiseControl and other open source products into my previously Microsoft only toolbox. This time my expedition is part of a project we are doing internally that we have the adopted the mantra ‘Embrace Open Source’. We have others this is the only one relevant to this blog posting!. Having done some research we are starting to settle on evaluation of Ruby, more specifically Ruby on Rails. It appears many other developers have gone down or are going down the Microsoft by day, Ruby on Rails by night – and the weekend and sometimes at work – just don’t tell the client!. One example is Netter-on-Rails.

Tomorrow will hopefully be a seminal moment in my software evolution, my thoughts views and progress will appear here to all those 1 or 2 readers that have found this blog J.