I would have responded sooner, but I couldn't see my computer for about three hours.
Then I realised someone had moved my chair and I was actually sitting on the floor
looking at the table legs. Doh!
"Bruce Epstein - Zeus Productions" <[EMAIL PROTECTED]> wrote:
> I quote an esteemed colleague talking about XML parsing:
>
> "Be strict in what you send, lenient in what you accept. There's a very
> large chunk of the XML community that thinks their software has done
> its job as soon as it rejects a document for being non-conformant. If
> networks were built that way, we'd still be talking with tin cans and
> string."
>
> Applying this to Lingo:
>
> 1. I will strictly write solid code
> 2. I will tolerate poorly behaved code as best I can (see number 1).
>
> Applying this to the argument at hand, I am lenient enough to accept
> your strict interpretation. ;)
Well, true enough, strictness might be too much to expect from others, but the problem
with 'looseness' is that everybody has a different idea of what it is.
I think Jakob's point is well made, but the really important thing is not to be
accountable when someone says "My code broke and we lost the gig/contract/bonus
because your code forgot to reset the itemDelimiter".
Also, if you're operating on a 'black box' prinicple, creating a routine (or if you're
an OOP type, writing a method) which is going to be called from inside someone else's
code which may or may not be using the itemDelimiter or the floatPrecision or
whatever, don't you have some kind of responsibility to save and restore?
If not, shouldn't you document that the routine/method has side effects?
on brennanscode
the itemDelimiter = ":"
out = ""
str = "Macintosh HD:Documents:Porn:GoatLover.jpg"
c = str.item.count
repeat with n = 1 to c
j = jakobsCode(str, n)
out = j.item[n]
end repeat
end
-Brennan
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]