I was given a Ruby on Rails project as a part of an interviewing process for a job.

The application already has basic user authentication and the
registration/login page, but nothing else. But it requires testing for
the authentication as well.

How long does it take to implement the following application?
-------------------------------------------------------------------
Implement an online_store with 2 types of users:

1. Customer: logs in and sees a page with products, each includes name
and price. They select any number of those products and add them to the
shopping cart. They go to their shopping cart and are able to check out
unless there is 0 items in the cart. No credit card processing required,
but the order should be saved. After that, they go back to the product
page, now it contains a link to their order status. After they click on
this link, they see a summary of their orders.

2. Admin: logs in and sees a link to the store statistics. After they
click on this link, they see a table of all the products sold, including
total counts and total money. They are able to sort the statistics chart
by any of the columns.

It should include testing (not specified but I do Cucumber/rspec/unit
testing), validation (if specified?), efficient queries and usable
interface.
--------------------------------------------
I have my own estimate and how long they give to me, but would be
curious what other people think of it.

03-17-2012, 06:08 AM

mfm

No developers here?

If anybody thinks I'm trying to get a free quote, it's REALLY a coding assignment and I'm trying to understand if those guys are insane . My own estimate, it would take about a weekend. They give me 3 hours, by clock, or 20 minutes per a feature (working). I was supposed to do it today, but canceled. Forgot to mention, the position description doesn't require experience in RoR and TDD, and the assignment comes with instructions "starting with RoR". Any beginner here can tell me how long it would take them to implement it?

03-17-2012, 06:54 PM

Fou-Lu

Afraid you won't find a lot of ruby developers here.
I learned ruby when I thought that it would become popular. I haven't touched it in about 6 years now, and wouldn't know where to start with it again either.
Personally I've been lobbying to have the ruby forum buried for awhile now; given its pulled about 300 posts in over 6 years is an indication of the future of ruby.

All I can tell you is if you are using RoR, that won't take long to do at all.

03-17-2012, 07:10 PM

mfm

Quote:

Originally Posted by Fou-Lu

All I can tell you is if you are using RoR, that won't take long to do at all.

Yes, it takes a few minutes to download an e-commerce gem.

The point is, this is from scratch, and also using TDD, single table inheritance, build web page etc.

I used an online tool to count words just in tests for 1 feature for a similar project of mine (practically the same feature), and used 50 words as an average typing speed. It takes 10 minutes typing tests for 1 feature, I would put another 5 minutes typing in view/controller, 15 minutes just pure typing for a feature. I would put another 5 minutes finding/opening/closing files and running the tests. Given, they give 20 minutes per feature, all this time is spent only for file manipulation.

03-29-2012, 11:15 AM

novafist

Rails is pretty simple.

I'm guessing the company who interviewed you told you to write cucumber features, specs/unit tests for all the production code you write.

An experienced rails programmer will able to implement a new feature roughly every 5-10 minutes, with full test coverage.

12-04-2012, 05:44 PM

thebigkick

Quote:

Originally Posted by Fou-Lu

Afraid you won't find a lot of ruby developers here.
I learned ruby when I thought that it would become popular. I haven't touched it in about 6 years now, and wouldn't know where to start with it again either.
Personally I've been lobbying to have the ruby forum buried for awhile now; given its pulled about 300 posts in over 6 years is an indication of the future of ruby.

All I can tell you is if you are using RoR, that won't take long to do at all.

This is really discouraging to me as I've been investing a lot of time over the last few weeks learning Ruby/RoR. Can you suggest an active community for Ruby/RoR?