[REBOL] Re: About Standards and Best Practices
From: reboler:bol at: 1-Sep-2003 22:54
Hi Gregg,
I know that Rebol is cool!!, but what I was thinking is that any programmer
has his view of Rebol. Some of them use a lot of objects, others use just
function calls. By the other hand, Rebol is so handy that we can also use a
procedural approach. But what are you missing here? the performance!!
In my point of view, we can make the script to run. Then, make it run faster
and faster!!. Do you know what I mean ?
I saw a lot of documentation on style scripting, functions and commands, but
not for optimization such as: global vars, local vars, encapsulation,
substitution of functions by other that can handle better than another..
etc. We have this information disperse on the list. In most of times, We
need to evaluate other's coding to learn with the Gurus.. do you know what I
mean ?
What I'm asking is just a few tips such as:
1) create objects when ....
2) always use local vars inside functions. (or if this var is inside a
function, it's a local var anyway).
3) call various scripts or code everything in one file..
4) clear, reset vars..
5) use dynamic vars inside functions..
6) work creating instances of objects
I know, it's very dummy, but it helps people.. you know.
Best Regards
Thans in advance
--DJ