Ruby – Basics of Programming (RUBY1)

Programming, Programming - other

This course introduces the scripting language Ruby to complete beginners and to developers from other languages. You will install a local development environment, run the classic Hello World, and practice basic syntax and debugging.

The lessons mix concise theory and hands-on tasks: learn to work with variables, files and objects, use external gems, and call web APIs. By the end you'll be ready to script solutions or move on to Ruby on Rails.

THIS TRAINING COURSE WILL HELP YOU:

  • Write basic Ruby scripts to automate tasks
  • Work with variables, files and regular expressions
  • Use gems and call web APIs from Ruby
  • Prepare to build web apps with Ruby on Rails

WHO SHOULD ATTEND?

  • Complete beginners curious about programming
  • Developers coming from other programming languages
  • QA engineers and sysadmins automating tasks

COURSE LOCATION AND AVAILABLE DATES



Public courses are usually delivered in Czech, but this course is also available in English. We can arrange private training for your team online, at your premises or in our classrooms, and tailor the content to your needs.

For groups of around 4 or more participants, private training can already be comparable in price to booking individual places on a public course. Send us your requirements and we’ll recommend the best format and provide an exact quote.

Request training in English

Course content:

Hide details
  • Introduction to Ruby
  • Installing the environment
  • Hello World
  • Language features
  • Working with numbers
    1. Calculator
    2. Operators and precedence
  • Playing with strings
  • Variables 1
  • Summary of part 1
    1. a = (x = nil or 3)
  • Scopes and visibility
    1. Global scope and variables
    2. Environment-defined global variables
    3. Local scope and variables
  • Inputs
  • Naming conventions
  • Functions / methods
    1. Calling functions and methods with _? and _!
    2. Defining your own function
  • Summary of part 2
  • Advanced string handling
    1. How to find available methods?
    2. Operators on strings
    3. Even strings are not always simple
  • Basic constructs
    1. Conditionals
    2. Loops
  • Blocks in Ruby
  • Summary
  • Variables 2
    1. Arrays
    2. Ranges
    3. Symbols
    4. Hashes
    5. Random numbers
  • Working with files
  • Summary
  • Regular expressions
  • Classes and objects
    1. Defining methods and "method_missing"
    2. Inheritance
    3. Overloading / overriding
  • Summary
    1. Practical example: How to bulk rename files
  • Exceptions
    1. Catching exceptions
    2. Raising exceptions
    3. Custom exceptions
  • Logging
  • Time and date in Ruby
  • Summary
  • Gems and Ruby libraries
  • Calling services via API
    1. Practical example: Fetching data from ARES using company ID
Prerequisites:
Knowledge of any programming language helps but is not required.
Schedule:
2 days (9:00-17:00)

Training and learning environment