Learn Red - Fundamentals of Red : Get up and running with the Red language for full-stack development.

A key problem of software development today is the software bloat, where huge toolchains and development environments are needed in software coding and deployment. Red significantly reduces this bloat by offering a minimal but complete toolchain. This is the first introductory book on Red, and it wi...

Full description

Saved in:
Bibliographic Details
Online Access: Full text (MCPHS users only)
Main Author: Balbaert, Ivo
Format: Electronic eBook
Language:English
Published: Birmingham : Packt Publishing, 2018
Subjects:
Local Note:ProQuest Ebook Central
Table of Contents:
  • Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Foreword; Contributors; Table of Contents; Preface; Chapter 1: Red's Mission; Technical requirements; A short history of Red; What Red stands for; Some history; What makes Red special?; A full-stack language
  • from the metal to the meta; Code is data and data is code; Data types built in; Small toolchain and executables; Dialects; Red's main features; Portability; Like a Swiss Army knife; Summary; Questions; Chapter 2: Setting Up for Development; Technical requirements; Installing Red; Installing Red on Windows.
  • Installing Red on Linux and macOSA look at the source code; Working interactively in the Red console; Running and compiling your first script; Executing a script in the Red console; Compiling a script to an executable; Development mode; Release mode; Other compilation options; Red's compilation model; Development environments for writing Red; Simple text editors; More sophisticated editors; Summary; Questions; Chapter 3: Using Words, Values, and Types; Technical requirements; Understanding words and values; Some common datatypes; Using blocks and parens; Comments; Word bindings.
  • Inferring typesAssigning and copying; Working with words; More about types; Converting types; The type system; Evaluating expressions and blocks; Some basic operations; Working with Boolean values; Working with numbers; Making random objects; Order of evaluation; Evaluation with do and reduce; The structure of a Red program; Summary; Questions; Further reading; Chapter 4: Code-Controlling Structures; Technical requirements; Getting input from the user
  • input and ask; Testing conditions; if ; unless; either ; Stopping a program
  • halt or quit; switch and case; catch and throw.
  • Structuring repetitionsRepeating a number of times
  • loop or repeat; Repeating with a condition
  • while or until; A number-guessing game; Handling errors; attempt and try; Using error?; Creating and catching errors; Checking types; Summary; Questions; Chapter 5: Working with Series and Blocks; Technical requirements; Series and blocks; Navigating and looping through a series; A step at a time
  • head, tail, index?, and next; Looping through a series
  • foreach and forall; Getting information from a series; Selecting an item
  • pick and /; Searching for an item
  • select and find; Sorting.
  • Changing a seriesChanging items
  • poke, replace, and change; Adding new items
  • append, repend, and insert; append; repend; insert; Deleting items
  • remove and take; Moving items
  • move and swap; Series as sets; Copying a series; Strings as series; Splitting a string
  • split; Turning a series into a string
  • form; Rejoining a block
  • rejoin; Clearing part of a string
  • clear and trim; Adding to a string
  • append and insert; Other useful tricks; Summary; Questions; Chapter 6: Using Functions and Objects; Technical requirements; A fauna of functions; The do word; The does word; The has word.