Table of Contents
This is an old revision of the document!
Red
Red is a color.
It’s also a programming language and basically my language of choice for…basically everything.
Currently? Nothing much will be written here, though that may gradually change.
Actually, it’ll almost certainly change as I add my own notes on Red onto here.
Red is based on the REBOL language which, in my experience, doesn’t actually explain much to most people. Though that also means that tutorials/guides/information relevant to REBOL is usually applicable for Red.
Learning Red
If you’re vaguely interested in the language, just know that a lot of the learning material you’ll find online is usually accurate but that it’s quite out of date at this point. In some cases, the latest material is from 2018, while Red has already gone thru…quite a few updates. Though the language is easy enough to learn that this shouldn’t be too big of an issue.
This is particularly true of material for REBOL which, well, isn’t 100% compatible with Red, so some changes are needed. Though you can still get a good picture of how it may/will work in Red.
Advice
Help & DSLs
Something you’ll quickly learn is that DSLs like view or rich text is that you can’t use the built-in help tool to figure out what the individual commands do. This means you’ll have to rely on documentation.
This did end up tripping me up, so it’s best that you keep it in mind.
Parse & Code
You’ll eventually reach a point where you want to put code inside of parse rules. This can be done by placing regular Red code inside of round brackets (parentheses). But what isn’t explained anywhere, though is obvious once you realized it (like me) is that you can place these anywhere in the parse rules.
Originally, I assumed that you could only place these at the end of the rules, but realized that that wasn’t the case.
Trivilinks
-
- Introduction to Parse – At the very least, you should take a look at this…it was actually what convinced me to start learning Red.
- Dynamic Refinements and Function Application – This may be useful if you’re already learning the language. I know that I would have preferred to know about it about a week ago.
- Helpin'Red – A site that documents Red features and explains them. A bit out-of-date but still a useful resource. Especially for beginners.
- Creating Business Applications With REBOL – A document concerned with REBOL, but still somewhat relevant to Red. Not really “beginner” stuff though.