From: s@... (Stefan Schmiedl) Date: 2002-03-27T17:08:51+09:00 Subject: Re: Experience with larger web-projects in Ruby? On Wed, 27 Mar 2002 00:46:12 +0100, Jonas Delfs wrote: > "Stefan Schmiedl" skrev i en meddelelse > news:a7r0gi$nlj1s$1@ID-57631.news.dfncis.de... >> On Wed, 27 Mar 2002 00:00:03 +0100, > >> - when dealing with IIS, don't use a cygwin version of ruby > > Okay, I'll write that behind my ear. But may I ask why? I don't recall the details but there were some path problems when using the cygwin build as cgi application. if you're interested in the details, you should take a look at the archives. > >> - start simple, refactor mercilessly. > > Sorry for my english, but "refactor"? my personal definition: clean your code up, while keeping it's behaviour. Basically, it's an investment in the future. If your code is refactored well (things appear only once, which is known as DRY or OAOO in some circles, and clearly expresses your intentions) you have an easy time making changes. > >> - the cgi module goes a *very* long way > > What do you mean? although we talked about several web application frameworks in our (german) book (see: http://www.approximity.com/rubybuch/), I used none of them for this project. Using just the CGI-module was fine, only recently I had to resort to the CGI/session module to make the code more readable by letting the module do some housekeeping for me. > >> - you can surprise your customer with three minute modifications >> fulfilling "complicated" requests only the first time. > > Can you explain a little further? hehe, I have a day selector in the top right corner of the page. This is basicall a calendar, where clicking on a date takes you to the ordering page of this day. For some technical reasons, the ordering week had to start on tuesdays, but (of course) during the official testing the customer noted that it would be better if the week started on wednesday. I changed a 2 to 3 in one place in my script, and voila, the display changed. Some days later the customer noted that instead of two weeks displayed, he needed three weeks, (change 1..2 to 1..3) but this time he was already expecting this change to be done immediately ... > > Thanks for your time! it's a pleasure. now go out and buy the book :-) Regards, Stefan -- Stefan Schmiedl Approximity GmbH http://www.approximity.com Research & Development mailto:stefan@approximity.com Loreleystr. 5, 94315 Straubing, Germany Tel. (0 94 21) 74 01 06, Fax (0 94 21) 74 01 21 shhhh ... I can't hear my code!