[REBOL] Re: rot13
From: tim:johnsons-web at: 14-Dec-2003 12:14
> and especially with respect to the "Note to others..."
>
That was a remark that demeaned the author more
than anyone else. Perhaps he or she could come
forward and make a case for why one should not
use rebol?
I make a living writing code and I've coded in over
a dozen languages. Rebol's the most productive I've
found.
If I were to write some really crappy perl code and
submit it to the perl ML and then leave a remark
like that in the code - I'd be flamed so bad whatever
hair I've got left would be long gone!
Now if I were fluent with either perl or rebol and
was able to post an intelligently written piece of
code that illustrated some weakness in either language,
I would be actually be doing that language and its
users a favor, as painful as it might seem.......
MTCW
(tim '(curmudgeon-in-alaska))
* Joel Neely <[joel--neely--fedex--com]> [031214 11:16]:
> First, thank you for the effort you've put into the ROT13 page
> at:
>
> http://www.miranda.org/~jkominek/rot13/
>
> With respect to your page on REBOL:
>
> http://www.miranda.org/~jkominek/rot13/rebol/rot13.r
> I suggest that it is unfair to condemn a programming language on
> the strength of an overly complicated, poorly-written function by
> someone who is clearly unfamiliar with the language. I can think
> of several ways to write the rot13 conversion in a much more
> natural-to-REBOL style.
>
> The quickest (for me) to write uses REBOL's object mechanism, and
> generates the translation table algorithmically at object set-up
> time (as a one-shot initialization to reduce risk of typos):
>
> rot13: make object! [
> xlate: make string! 78
> for ch #"a" #"m" 1 [append xlate reduce [ch ch + 13 ch]]
> for ch #"A" #"M" 1 [append xlate reduce [ch ch + 13 ch]]
> code: func [s [string!] /local result] [
> result: make string! length? s
> foreach ch s [
> insert tail result any [select/case xlate ch ch]
> ]
> result
> ]
> ]
>
> It would be invoked on a string by evaluating
>
> rot13/code somestringexpression
>
> and extending this to process an file (or standard input) is easy.
>
> Again, thanks for the comparisons, and I hope to offer the above
> comments in the spirit of assistance, not negativism!
>
> -jn-
>
> --
> To unsubscribe from this list, just send an email to
> [rebol-request--rebol--com] with unsubscribe as the subject.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com