Getting Wet With REST And Rspec (BDD) November 6th, 2007

REST and BDD are hot topics in software development. So I want to get wet with these topics. So I learned and surveyed from the internet. Okay, I think I get it. To make it practical, I try to apply these topics to Rails. The newest version of Rails (1.2.5) has support for REST. As for BBD, you have to install Rspec Rails gem.

I decided to make a simple clone of my theatre website. I develop front end only. There is no admin interfacte. I just want to learn about REST and BDD not to develop functional website. But maybe later I will add the admin interface.

Read the rest of this entry

Rafaq Is Released August 13th, 2007

I know about Rails from the last year. I have bought the book (Agile Web Development With Rails first edition). Did the exercises. I also have read many articles about Rails. But I did not have a single complete Rails project. Back at the time when I was doing my thesis, I must write a program. So I used Rails. But the project was doomed because of the factory for the thesis had a very unclear requirements. The project was never finish. But my Rails skill was upgraded however.

But I still didn’t have a single complete Rails project. So in June or July, I started to write Rafaq so I can have a single complete Rails project. Yesterday the Rafaq is finished with its website. I host the project in RubyForge.

Read the rest of this entry

Selenium Takes Rails Testing to Another Level June 27th, 2007

Rails has already make testing web easier. Rails project directory has specific test directory, named surprisingly ‘test’. You want to make unit testing for model? You write it in test/unit directory. Testing for controller? test/functional directory. It has fixtures support. It means you have specific database purpose for testing purpose. Your development and production database will not be touched. It has mocks support to simulate external resources. What could you expect? Testing Rails project is a nice experience.

But Selenium takes Rails testing experience to another level. With Selenium you have user testing beside model testing, controller testing. It means you have dummy user for your Rails testing purpose. What I mean with dummy user is you have user to test your Rails web project just like you test Rails web project with browser your self. This testing type is called black box testing (external view of testing). You input data to your application and see the output. Does the output is as you expected?

Read the rest of this entry

Haml Beautify Rails Code June 21st, 2007

Try Haml today if you use Rails. At first time, I feel reluctant. Isn’t rhtml is enough? But trying something with a little time is not a bad thing. So I jump to the boat. Here’s what I feel. It feels good.

Haml is alternative for rhtml. It is shorter. But what makes me using haml is it beatify Rails view. Usually using rhtml makes my html code (result of Rails view) cluttered.

Read the rest of this entry