Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Hitting the learning curve

From: nitsch-lists:netcologne at: 5-Nov-2003 19:45

Am Mittwoch, 5. November 2003 18:56 schrieb Steven White:
> >>> [gedb01--yahoo--co--uk] 11/05/03 03:49AM >>> > I come from a COBOL background ("The use of COBOL cripples the mind..." > Edsger Dijkstra) so I'm used to having things that must be present, and > must be in certain places, so I do that in REBOL to make myself > comfortable. I also have found that the examples on the REBOL web site > use words like "file," "data," and so on that trigger a reflex in my > mind that says, "That's a reserved word," and that is confusing. So to > easy my confusion I type all the REBOL words in lower case and all the > words of my own invention in upper case, just like old COBOL. It is not > recommended as a style, but it helps me personally. >
There is a script somewhere, %colorize.r? rebol.org? it takes a script and outputs colored html. words found in rebol itself have a diferent color.AFAIK. could be used/modified to show scripts with your own words more marked up. ALso words like "file", "data" etc are reserved in a way. whenever i nedd a local variiable for a file, i call it "file", when its the file-content, or the important data in a face, thats "data", etc. "ta" and "sl" are always the big text-area and the sliider in my layouts. so when code has a similar structure, it uses similar names and i can read it quicker. to trap inbuild words, use "protect-system" at start. then, when you overwrite an inbuild word, that triggers an error. since i initially my own words first, that traps very well. Another way i experiment with is to prepend my words with a shortcut, like d-something. thats mostly to keep emacs happy when looking up definitions. but could tell "its my" too. -Volker