Book Image

Learn Red ? Fundamentals of Red

By : Ivo Balbaert
Book Image

Learn Red ? Fundamentals of Red

By: Ivo Balbaert

Overview of this book

A key problem of software development today is software bloat, where huge toolchains and development environments are needed in software coding and deployment. Red significantly reduces this bloat by offering a minimalist but complete toolchain. This is the first introductory book about it, and it will get you up and running with Red as quickly as possible. This book shows you how to write effective functions, reduce code redundancies, and improve code reuse. It will be helpful for new programmers who are starting out with Red to explore its wide and ever-growing package ecosystem and also for experienced developers who want to add Red to their skill set. The book presents the fundamentals of programming in Red and in-depth informative examples using a step-by-step approach. You will be taken through concepts and examples such as doing simple metaprogramming, functions, collections, GUI applications, and more. By the end of the book, you will be fully equipped to start your own projects in Red.
Table of Contents (13 chapters)

Composing Visual Interfaces

Red comes with a built-in, cross-platform, graphical capability called View. This is unique among current programming languages. For most of them this is not a priority, and when it is possible, it is tedious and leads to verbose code. Here, Red really shines. You'll be amazed by the elegance with which you can build complex interactive screens in a simple declarative way.

As of version 0.6.3, Windows and macOS are fully supported, the other platforms (Linux, Android, iOS) are partly ready and scheduled for the near future.

Red relies on native widgets. It binds on each platform to the default native GUI API available, so that users get to see familiar graphics. On Linux, Visual Interface Dialect (VID) will rely on the well-known GTK graphical toolkit.

We'll build further on several examples from the previous chapters, to download exchange...