Limit search to available items
Book Cover
E-book
Author Ayouni, Mansour

Title Beginning Ring programming : from novice to professional / Mansour Ayouni
Published Berkeley, CA : Apress, 2020

Copies

Description 1 online resource (678 pages)
Contents Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Acknowledgments -- Introduction -- Foreword -- Chapter 1: Getting Started with Ring -- What You Will Learn -- Download and Installation -- Selecting the Appropriate Installer -- Discovering the Ring Installation Folder -- Launching Ring Notepad -- Your First Ring Program -- Organizing Yourself -- Asking Ring Questions -- From Date to Time -- A Ring Flower: timeList Function -- Making timeList Expressive -- Listening to Ring When It Complains -- Playing with Lists -- Expressiveness: First Round
Expressiveness: Second Round -- The Final Listing of the "Hello Ring!" Program -- The "Very Final" Listing: One More Adjustment! -- Documentation and the Help System -- Any "Hello, World!" Tutorial? -- Say Hello in the Console -- Say Hello in a Web Page -- Say Hello in the Window -- Say Hello on Your Mobile Phone -- Say Hello in a Game -- Say Hello in Plain Arabic -- Introductory Article by Mahmoud Fayed -- Dynamic Transformation of Types -- Using Lists During Their Definition -- Exiting from More Than One Loop -- Using the Ring Help System -- Three Ways to Access Ring Documentation
High-Level Overview of Ring Documentation -- Practical Use Cases of the Help System -- Frequently Asked Questions -- Other Resources on Ring -- Asking the Community -- Video Tutorials About Ring -- Critics and Reviews of Ring -- Summary -- Chapter 2: Data Types in Ring -- Nine Things You Will Learn -- How Ring Sees the World -- Types and Type System: A First Flavor -- Meet the Gang of Four -- Missing Members of the Gang -- A Little Bit of Magic -- Statics and Dynamics of the Ring Type System -- A Reference Architecture -- Checking Data Types -- Converting Between Data Types
User-Defined Data Types -- Implicit Conversion and Lexical Scoping -- Under the Hood: C Language Type System -- More on Data Types -- More on Numbers -- More on Strings -- More on Objects -- More on Lists -- Capturing the Potential of Dynamic Ring -- Summary -- Chapter 3: Inputs to Ring -- Nine Things You Will Learn -- Inputs in the Code -- Using Variables to Host Data in Code -- Avoiding Magical Numbers -- Mitigating Code Complexity -- Refactoring the Data Side -- Refactoring the Code Side -- Separating Between Concerns -- Using Global Variables -- Inputs in the Console -- Using the Give Command
Getting Arguments from the Command Line -- Inputs from the GUI -- Creating Windows in the Form Designer -- Understanding the Generated Files from the Form Designer -- Understanding Events -- Fabricating the User Interface -- Responding to User Events -- Enhancing the User Experience -- Three Values of MVC in GUI Design -- Code Reusability -- Code Testability -- Targeting of Multiple Platforms -- Inputs from Text Files -- Reading Data from a Text File -- Specifying the NorthAfrica App -- Seven Steps to the NorthAfrica App -- Creating Conventions and Configuration Files
Summary Gain a gentle introduction to the world of Ring programming with clarity as a first concern using a lot of practical examples. The first part lays the foundations of the language and its basic features (data types, control structures, functions, and classes). The unique way to rigorously structure Ring programs is also explained. Then, in the second part youll discover Ring inputs, outputs, and what is in between. Youll use the basic constructs of computer logic (sequence, selection, and iteration) to build simple and complex logic flows. Youll go over the common mistakes that lead to code complexity, by example, and cover several strategies to solve them (refactoring, code cleansing, and good variable naming). Then, youll see a visual illustration of how Ring deals with scopes at the local, object, and global levels. In part three, youll play with two artifacts vital to Ring programming: functions and objects. Youll learn how they can be composed to solve a problem and how advanced programming paradigms, such as declarative and natural, are beautifully implemented on top of them. As part of the discussion, youll also work on game programming. Youll learn how you design your game declaratively, in Ring code, just as if you were designing it in visual software. Finally, the author lays out how programming can be understood in a gamified context. You will be told the truth about how gaming can be a better metaphor to achieve mastery of Ring programming. This book is for those who are passionate about writing beautiful, expressive, and learnable code. It has been designed so you can enjoy a beginner-friendly set of knowledge about Ring, and benefit from a one-stop collection of lessons learned from real-world, customer-facing programming projects. You will: Get started with Ring and master its data types, I/O, functions, and classes Carry out structural, object-oriented, functional, declarative, natural, and meta programming in Ring Use the full power of Ring to refactor program code and develop clean program architectures Quickly design professional-grade video games on top of the Ring game engine
Notes Transforming Text Data into a Ring List
Includes index
Print version record
Subject Programming languages (Electronic computers)
Programming & scripting languages: general.
Computers -- Programming Languages -- General.
Programming languages (Electronic computers)
Form Electronic book
ISBN 9781484258330
1484258339