BMG50.COM · NODE 9 · 28600 BAUD--:--:--
Welcome to BMG50.com, caller.
Sysop: Rawg
Msg:#1130 of 1377Date:2007-02-02Subj:Sometimes it's easier to re-write it.

So I'm working on this customer's web application. It's a really simple system and there isn't a whole lot to it. I was tasked to add a few functions to it so it can ship as their version 2.0.

He has had several programmers working on it over the years. From what I gather, they were just out of school and still green. By looking at the code, I can tell they were still new to programming.

The first day digging in the code, I was able to add the AJAX functions that my customer wanted on the display pages, and I was able to fix a few alignment problems with the UI. But while I was digging in the code, I found many other problems.

The first big problem was found after I moved the code base to my servers to work on the system. Although there was a config file that setup the document paths, it wasn't being used in most of the files. So if the base directory is changed, that mean going into every program file and changing the hard coded paths.

The next problem is the multi-rudundant code. Make a change to a drop down, and you have to make the same change to twenty different files. The programmers have include files that have some of the common functions, but they repeated code throughout the application.

Even though the problems are really show-stoppers, I found other bugs like the pager (next, previous page) were not working correctly. The sort didn't work right. The account setup was totally wrong. I'm not sure how they are going to do billing, that's a whole other problem.

Anyway, looking at the mess I thought to myself, "How long would it take to re-build this whole web app in Rails?"

Six hours later I have a mock up of the primary interface. I'm guessing another six hours would give me the login and manager functions. Another eight to polish it off and ship it. So I'm thinking 20 to 30 hours to complete the project fully.

I really like Rails.

[1130/1377]->