Ruby Training

Ruby Training Overview

Download PDF

Ruby is a language distributed through multi-platforms. It is also a pure object-oriented language that derives many of Smalltalk’s features. Yukihiro Matsumoto (aka ‘ Matz ‘) invented the Ruby language, and it was first published in 1995. In this hands-on Ruby training course, you will learn about the Ruby language its syntax OOP in Ruby its libraries (gems) testing and much more.n

Ruby Training Objective

  • Setup the Ruby development environment
  • Learn the fundamentals of the Ruby language
  • Learn about the built-in Ruby libraries and APIs
  • Learn the principals of object-oriented programming (OOP) in Ruby
  • Built-in data types: Using them and inheriting from them in classes you design.
  • Scheme for creating and using libraries and packages.
  • Learn how to use external libraries with Ruby Gems
  • Write Ruby code with confidence

Ruby Training Audience

  • Anyone who wants to add Ruby Programming skills to their profile
  • Teams getting started on Ruby Programming projects. 

Ruby Training Prerequisites

Familiar with fundamental programming concepts, such as conditionals, loops, functions/methods, etc.

Ruby Training Outline

  • What is Ruby?
  • What is it used for?
  • History
  • The Command Prompt
  • Installing Ruby
  • Running Ruby
  • Ruby Documentation: RDoc and ri
  • Ruby Is an Object-Oriented Language
  • Some Basic Ruby
  • Arrays and Hashes
  • Symbols
  • Control Structures
  • Regular Expressions
  • Blocks and Iterators
  • Reading and Writing
  • Structure of statements and comments.
  • Variables and constants.
  • Operators.
  • Assignments and calculations
  • Integer, float and string formats.
  • Single and double quotes
  • Here documents, general strings
  • Blocks and the if statement.
  • Writing conditions.
  • Comparative, boolean and range operators.
  • Conditionals – if, unless, case, etc.
  • Loops – while, for in, until, etc.
  • break, next, retry and redo.
  • defined? and ternary operators.
  • What is a collection?
  • Arrays and hashes.
  • Constructing an array.
  • Nesting arrays. Hash keys, iterators, etc.
  • History – unstructured and structured code.
  • Introduction to object oriented programming.
  • classes and methods.
  • Static and nonstatic.
  • Instances, constructors and destructors.
  • Accessing members of a class.
  • Loading and using classes.
  • Direct access to variables.
  • Encouraging class use.
  • Objects, classes and methods.
  • Constructors and attributes.
  • Instance and class variables.
  • Class and object methods.
  • Including files – load and require.
  • Public, private and protected visibility.
  • Singletons and defs.
  • Inheritance mixins, and super.
  • Destructors and garbage collection.
  • Namespaces and modules.
  • What Regular Expressions Let You Do
  • Ruby???s Regular Expressions
  • Anchors, literals, character groups and counts.
  • Matching in Ruby.
  • Modifiers i, o, x and m.
  • Pattern matching variables.
  • Digging Deeper
  • Pattern-Based Substitution
  • Advanced Regular Expressions
  • ARGV, $0 and friends – the command line.
  • Other special variables from $: through $$ to $Environment variables. – – Pseudo-variables. – – Reserved words in Ruby. –
  • begin and end (and a mention of BEGIN and END).
  • raise and rescue.
  • throw and catch
  • Using Ruby/DBI to connect to MySQL
  • Database connectivity: introducing the DBI module
  • Origins of DBI, the database interface module
  • DBI architecture
  • Overview of available DBDs (database drivers)
  • Setting up and configuring DBI and DBDs
  • Sending the SQL statement to the database for execution
  • Displaying a single value returned from the database
  • Displaying multiple rows of data returned from the database
  • Handling errors
Skills

Register

[miniorange_social_login shape="longbuttonwithtext" theme="default" space="4" width="300" height="50" color="000000"]