Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Even I make mistakes<g>

From: ralph:abooks at: 18-Sep-2000 10:02

If anyone tried to order either REBOL FOR DUMMIES or REBOL: THE OFFICIAL GUIDE yesterday, you found your order would not go through, even with all the correct information. Why? Even I flub up on occasion. The forms are now fixed and orders go though fine. The mistake was a dumb one (as opposed to a Dummies one) and I reveal it since you may find such instructive in your own coding. I wrote this really slick little credit card validation function (published earlier on this list) Saturday. Tested it rigorously, and it worked fine. So I dropped it into the order forms; tested them briefly; all seemed fine; so I went live with the changes. Then I get e-mail this morning from a couple of people who tried to order books yesterday and the orders would not record. Here's the mistake! One of the REBOL words I defined in my credit card validation function was the same as one in my form processing script (but the words, of course, did different functions). This mismatch did not crash the script (such would have pointed to an obvious problem) but rather caused a more subtle misoperation; i.e. orders would not record. The moral of this tale? Document! I stress that in REBOL FOR DUMMIES. If you don't document, scripts sometimes will coil around and bite you on the .... well, anyway, I fixed it<g>. Best, --Ralph Roberts Soldier of the REBOLution