RTD Training & Development

Programming with Ruby

Call us on +44 (0)1225 66 72 72 or send us a message

Programming with Ruby

Note: During the Covid-19 crisis, courses will only be delivered over the web

4 days hands-on £1,940+VAT

This course can be delivered over the web

Next scheduled date:
Monday February 3rd, 2025 Enrol Now!

Can't wait that long? It may be possible to deliver this course at an earlier date. Contact us if you're interested
Ruby essentials and overview of GUI and web development

Outline

The Ruby Environment

  • Running the Ruby interpreter
  • Ruby program structure
  • Integrated Development Environments
  • Documentation

Ruby Basics

  • Program input & output
  • Data types
  • Variables
  • Conditionals
  • Looping
  • Scalar operators & functions

Container Objects

  • Strings
  • Tuples
  • Lists
  • Dictionaries
  • Indexing & slicing
  • Iteration
  • Container operators & functions

Functions

  • Defining & calling functions
  • Local & global variables
  • Argument passing
  • Functional processing constructs

Modules

  • Files & modules
  • Namespaces
  • Scope
  • Packages

Regular Expressions

  • Simple regular expressions
  • Metacharacters
  • Character classes
  • Back-references
  • Capturing sub-patterns
  • Non-greedy qualifiers
  • Pattern matching
  • Substitution

Object-Oriented Programming

  • Classes and attributes
  • Instances and attributes
  • Binding and method invocation
  • Inheritance
  • Access control
  • Delegation

GUI Programming

  • Using TkInter
  • The Grid Layout Manager
  • Dimensions, fonts and colours
  • Basic widgets
  • Widget configuration
  • Command procedures
  • Menus
  • Standard dialogs

Error Handling

  • Exception processing
  • Standard exception classes
  • Exception specifiers
  • Raising exceptions
  • User-defined exceptions

Files

  • Manipulating files and directories
  • Reading and writing data

Network Programming

  • TCP/IP Overview
  • Client sockets
  • Server sockets

Web Programming

  • Writing web clients
  • HTML processing
  • Writing CGI scripts
  • Form processing

Overview

Ruby is an interpreted, interactive, object-oriented programming language with a simple syntax and cross-platform support. Ruby is extensible and new built-in modules are easily written in C or C++.

This course provides a hands-on introduction to Ruby. The workshops are based on real-world examples of Ruby applications.

Objectives

On successful completion of this course, participants will be able to:

  • Write, debug and execute Ruby code
  • Understand Ruby's powerful regular expressions
  • Use Ruby to manipulate files and directories
  • Write networked and web-enabled applications in Ruby
  • Create graphical interfaces with Ruby/Tk

Audience

This course is for programmers, testers, web developers and system administrators who wish to use the Ruby programming language in their environment.

Prerequisites

Participants are expected to be familiar with at least one other programming language and to have some knowledge of HTML.

share buttons
share on twitter
share on linkedin
share on facebook
share by email