[REBOL] From "C" to Rebol: HELP!!/RESEND
From: tim:johnsons-web at: 26-Jul-2001 8:56
I've been programming in Rebol for a year. I've been programming in other
languages for much longer. Coding in C for 12 years, and therein lies the issue.
Oftentimes, I find myself so "stuck" in the "C" paradigm, that although my rebol
code works, I'm not really taking full advantage of what rebol has to offer.
Here's an example: One might write a function that prints a block of rebol code
; warning!! untested code
print-block1: func[blk[block!]/local index][
loop length? blk[
print pick blk index
index: index + 1
or one might write a function that looks like this:
forall blk[print first blk]
blk: first blk
It is probably safe for me to say that print-block2 is better
than is print-block1, which one could say is "tainted"
by the "c" approach.
Now, here's what I propose: If two or three of you "real rebol programmers"
would like to participate as mentors:
I will provide code that is working rebol code, the mentor(s) will
then offer suggestions that will optimize the code, rebol-wise.
The following results are possible:
1)I could take the "before" and "after" code and turn it into some sort
of a tutorial.
2)My writing would *most definitely* be improved.
3)Perhaps, if RT finds it acceptable, that I would then have some good
rebol code to add to the script library.
I would appreciate feedback on this issue:
I hope some of you might tell me what you think. Perhaps this is something
that I and "mentors" could take off of the list until some results present themselves.