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

[REBOL] Re: Personal Programming and Rebol Promotion

From: petr:krenzelok:seznam:cz at: 23-Dec-2007 10:14

Nick Antonaccio napsal(a):
> Hi Paavo, > > Just tonight, a reader from my site wrote to say that in the past, all > the documentation he had previously read had led him to misunderstood > the syntax of a simple 'if expression, originally thinking that the > conditional evaluation needed to be placed in brackets (which made > every condition always evaluate to true...). Even things like that > can be tripping blocks for newcomers, so I agree that obfuscated code > can be totally unfathomable. > > With that said, it is important to recognize common code patterns and > Rebolisms that are fast and short in expression, even if they're hard > to read at first. I don't know that common (more difficult to read) > syntax necessarily needs to be avoided and replaced with obvious > patterns. (If they're common, they _should_ be internalized). > Instead, what I missed in the beginning with Rebol was more documented > examples ... I mean the kind of detailed, line by line documentation > needed to understand each expression, as well as the overall structure > of a script.
Hi, dunno if following might help, but Carl once wrote suggested REBOL code formatting, and it is part of REBOL/Core documentation. It really helps if guys keep some rules, e.g. I absolutly hate, if someone uses something like: hello: func [ greeting ] [ print greeting ] :-) Here's link for suggested code patterns (although I know you have something a bit different in mind with code patterns probably): http://www.rebol.com/docs/core23/rebolcore-5.html#section-5 Petr