Ruby Grundlagen

Weiterbildung

4-Wochen-Kurs

Ruby ist eine der wichtigsten Programmiersprachen im Bereich der Webentwicklung. Sie ist die Grundlage des Rails-Frameworks, auf dem einige der wichtigsten Websites im Internet basieren. Ruby ist eine vollständig objektorientierte Sprache. Die Kombination der Mächtigkeit einer rein objektorientierten Sprache mit dem Komfort einer Skriptsprache macht Ruby zu einem beliebten Werkzeug für Programmierer, die Dinge schnell und sauber erledigen wollen. In diesem Kurs lernen Sie die wichtigsten Standardbibliotheksmodule, eingebauten Klassen und Module. Der Kurs umfast alle neuen und geänderten Syntax und Semantiken, die durch Ruby 3.2 eingeführt wurden, einschließlich Pattern-Matching und Ractors, und beschreibt die Sprache bis Ruby 3.2.

Inhalt

  • More with Less: Code the Way You Want
    • Get Ruby
    • Use Ruby
    • Math operations and comparisons
    • Variables
    • Method arguments
    • The opposite of “if” is “unless”
    • Loops
  • Methods and Classes: Getting Organized
    • Defining methods
    • Parameters
    • Return values
    • Designing a class
    • Attribute writers and readers
    • Errors—the “emergency stop” button
  • Inheritance: Relying on Your Parents
    • Defining a subclass
    • Adding methods to subclasses
    • Overriding methods
    • The “super” keyword
    • The Object class
    • Overriding the inherited method
  • Initializing Instances: Off to a Great Start
    • An Employee class
    • Division with Ruby’s
    • Formatting numbers for printing
    • Call other methods on the same instance with “self”
    • Inheritance and “initialize”
  • Arrays and Blocks: Better Than Loops
    • Accessing arrays
    • Blocks
    • Blocks and variable scope
  • Block Return Values: How Should I Handle This?
    • Opening the file
    • Safely closing the file, with a block
    • Blocks have a return value
    • Making one array based on another, using “map”
  • Hashes: Labeling Data
    • Hashes
    • Normalizing hash keys
    • Using hashes as method parameters
  • References: Crossed Signals
    • The heap
    • Aliasing
    • Hash default blocks
  • Mixins: Mix It Up
    • Using modules as mixins
    • Mixins and method overriding
  • Comparable and Enumerable: Ready-Made Mixes
    • the Comparable mixin
    • Constants
    • The Comparable mixin
    • The Enumerable module
  • Documentation: Read the Manual
    • Ruby’s core classes and modules
    • Documentation
    • Listing available classes and modules
    • Arguments and locks in call signatures
    • Class method documentation
    • Where Ruby docs come from: rdoc
  • Exceptions: Handling the Unexpected
    • Using “raise” to report errors
    • Exceptions: When something’s gone wrong
    • Ruby’s search for a rescue clause
    • Exception classes
  • Unit Testing: Code Quality Assurance
    • Automated tests find your bugs before someone else does

Zielgruppe

Web-Developer

Voraussetzungen

Englisch in Wort und Schrift

Förderung

Kompletter Kurs förderfähig
z.B. mit Bildungsgutschein, über Berufsförderungsdienst (BFD) oder bei Kurzarbeit

Nächste Termine

  • Mo, 06.05.2024
  • Mo, 03.06.2024
  • Mo, 01.07.2024
  • Mo, 05.08.2024

Anfrage

Kursnummer: LS23.267

zur Übersicht