On 6/7/05, Franz Ruebe <[EMAIL PROTECTED]> wrote: > Hi solprovider, > thanks for your interest and help. It's really good for an newbie to > experience a living community while having problems. I am still rather new here, but glad to help.
> [EMAIL PROTECTED] wrote: > >http://excalibur.apache.org/ > >Good Code. Smart Developers. > >Maybe. I could not find this code on the Excalibur website, so it was > >probably discarded. The code below was decompiled from the classes > >shipped in Lenya1.2.2. > >org.apache.avalon.excalibur.io.FileUtil [CODE REMOVED] > >Twice they use lastIndexOf(), then immediately use the return value in > >substring without checking for -1 (not found). In C, this would cause > >weird memory errors. In Java, it throws an Exception. It would be > >caught if the programmers had a clue. Instead, the JRE complains and > >exits. > This means I'm not the only one who got problems in clean programming? You are in good company; I seem to the lonely exception. I have the (good) habit of assuming no function will return what I expect, and users will never give good input, so I check everything all the time, even values returned from my own functions. Comments and input-checking double the length of my code, but it is very difficult to break. Much experience has taught me not to expect that level of programming from anybody else. You might read the articles on my site in the programming section: http://solprovider.com/articles/&cat=Software+Development Some give good advice; some are about improving existing UIs; some are just rants. Enjoy. > >This code is expecting slashes. I did not see any backslashes in your > >config to confuse it. Does your ant directory have 2 levels to go up? > This seems to be an answer on one of my questions. But which one? This was about crawling crashing. > >Franz, Thanks for providing evidence that making Lenya easy-to-use for > >non-gurus will help its popularity. > You're welcome. But being serious: You knew that before, didn't you? I know it, but I was responding to a post on the other thread: "Lenya's target audience should know what a gz archive and a MD5 sum is." solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]