Ruby - Mentorship
General
English
This is a guide for doing a mentorship. It is based on ruby, currently 2.7 The lessons will build on top of each other.
Before you start with lesson 1 now, have a look at this video. How to make a sandwich. You get a funny introduction about how a computer works and that the computer will only (literally) do what you tell it to do. :)
Resources
- The lessons are loosely based on http://ruby-for-beginners.rubymonstas.org
- You can look up methods and their documentation on https://rubyapi.org/2.7
- We are using the following website for the start: https://replit.com/languages/ruby
Advanced Setup
Editor
We recommend to use the Atom editor as it allows for collaboration and runs on all major platforms.
You can find instructions to set it up here: Editor.
Docker
Docker allows you to execute Ruby code independently from your operating system, so that every participant gets to use the same commands.
German
Dies ist ein Guide(Anleitung) zum Durchführen eines Anfängerkurses. Er basiert aktuell auf der Rubyversion 2.7. Die verschiedenen Stunden bauen aufeinander auf.
Bevor du mit der ersten Stunde anfängst, schaue dir doch einmal dieses Video an. How to make a sandwich. Du bekommst eine lustige Einführung wie ein Computer funktioniert und ein Computer nur (wortwörtlich) tut was du ihm sagst. :)
Ressourcen
- Die Lessons basieren lose auf http://ruby-for-beginners.rubymonstas.org
- Du kannst dir die Methoden und ihre Dokumentation unter https://rubyapi.org/2.7 anschauen
- Wir benutzen die folgende Webseite für den Anfang: https://replit.com/languages/ruby
Erweitertes Setup
Editor
Es wird der Atom Editor empfohlen, da er es erlaubt Dateien gemeinsam zu bearbeiten und auf allen gängigen Plattformen verfügbar ist.
Eine Anleitung zum einrichten ist hier zu finden: Editor
Docker
Docker erlaubt es euch Ruby Code unabhängig von euerem Betriebssystem auszuführen, damit alle Teilnehmer die gleichen Befehle benutzten können.
Lesson 1 - Variables / Variablen
We are explaining what variables are and how to use them:
Wir schauen uns an was Variablen sind und wie man diese benutzt:
Example: Ruby - Variables
Lesson 2 - Methods / Methoden
We continue looking into data types and start with methods.
Wir schauen uns weitere Datentypen an und fangen mit Methoden an.
Lesson 3 - Blocks and Loops / Blöcke und Schleifen / ⬛ & ➰
We learn how to iterate as well as what blocks are
Wir lernen wie man ein Array durchläuft und was Blöcke sind
Lesson 4 - Practice / Übung
We learn about hashes and practice what has been covered so far.
Wir lernen Hashes kennen und üben das bisher gelernte.
Lesson 5 - Write and use files / Schreiben und Benutzen von Dateien
We learn how to write and use files.
Wir lernen das Schreiben und Benutzen von Dateien.
Lesson 6 - Another round of practice / Eine weitere Runde üben
We recap and practice what we learned a bit more.
Üben, üben, üben.
Lesson 7 - Revisiting Strings and Hashes / Wiedersehen mit Strings und Hashes
We learn about String interpolation and symbols.
Wir lernen etwas über String Interpolation und Symbols.
Lesson 8 - Organizing Code in Files / Code in mehreren Dateien
We learn how to use code from different files together.
Wir lernen wie man Code aus verschiedenen Dateien zusammen benutzt.
Lesson 9 - Object orientation / Objektorientierung
We learn what classes and objects are and how to use them.
Wir lernen was Klassen und Objekte sind und wie man sie benutzt.
Lesson 10 - Version control / Versionskontrolle
We learn what version control is, what it is good for and some basic use cases.
Wir lernen was es mit Versionskontrolle auf sich hat und grundlegende Anwendungsfälle.