English version below.
Lernziele: Nach der Bearbeitung dieses Arbeitsblattes haben Sie:
|
Beachten Sie: Auch wenn es für dieses Blatt keine separate Abgabe gibt, ist es unabdingbar, dass sie es vor Freitag 20. 10. 23:59:59 bearbeiten, um einen Tutoriumsplatz zu erhalten und zukünftige Hausaufgaben bearbeiten zu können.
Website der Veranstaltung: https://se.informatik.uni-tuebingen.de/teaching/ws23/se/
Ziele:
|
Wir werden GitHub sowohl für die Abgabe der Hausaufgaben als auch zur Zusammenarbeit an Projekten während des Semesters verwenden. Wenn Sie bereits einen GitHub-Account haben, Ihre Logindaten kennen, und diesen für diese Veranstaltung verwenden wollen, können Sie dies tun und diese Aufgabe überspringen.
Achtung: Ein Account auf einer anderen git
-Hosting-Plattform (Gitlab, Bitbucket, ...) ist hierfür nicht ausreichend.
Tun Sie folgendes: Erstellen Sie einen GitHub-Account
Ziele:
|
Bitte bearbeiten Sie zunächst Aufgabe 1, da Sie für diese Aufgabe Ihren GitHub-Nutzernamen benötigen.
Wir werden das Forum unter https://ps-forum.cs.uni-tuebingen.de/ zur Kommunikation verwenden, z.B. werden wir dort Ankündigungen veröffentlichen und Ihre Fragen beantworten.
Tun Sie folgendes:
- Besuchen Sie https://ps-forum.cs.uni-tuebingen.de
- Klicken Sie auf "Registrieren", um sich Ihr eigenes Nutzerkonto anzulegen.
- Tragen Sie Ihre Benutzerdaten ein.
- Besonders wichtig sind die Felder
Benutzername
undPasswort
, die Sie für das Forum verwenden. Merken Sie sich diese. - Stellen Sie sicher, dass Sie Ihren GitHub-Nutzernamen (vgl. Aufgabe #1) unter
github
sowie Ihre Matrikelnummer untermatrnr
angeben.
- Besonders wichtig sind die Felder
- Klicken Sie auf "Benutzerkonto erstellen". Sie erhalten nun eine Bestätigungsemail mit einem Link, durch welchen Sie Ihr Konto aktivieren können.
- Wenn Sie Fragen bezüglich der Veranstaltung haben ist das Forum die erste Anlaufstelle. Zögern Sie nicht hierfür ein eigenes "Thema" zu erstellen.
Ziele:
|
- Besuchen Sie https://kamino.cs.uni-tuebingen.de
- Klicken Sie auf "Sign in with Github", um sich Ihr eigenes Nutzerkonto anzulegen.
- Erlauben Sie den Zugriff auf das GitHub-Konto, das Sie in Aufgabe 1 erstellt haben.
- Füllen Sie das Registrierungsformular mit Ihren Benutzerdaten aus.
- Der
Forum username
ist der Benutzername, den Sie für dasps-forum
gewählt haben, dieStudent email
ist die E-Mail, die Sie von der Universität erhalten haben (mit der Endunguni-tuebingen.de
)
- Der
- Klicken Sie auf der Hauptseite auf "✏️ New Vote", um für die Tutorien zu stimmen, die für Sie in Frage kommen, und klicken Sie auf "Submit".
Ziele:
|
Git ist eine Versionskontrollsoftware, über die Sie in der ersten Vorlesung sprechen. Sie wird auch verwendet werden, um Abgaben via GitHub zu tätigen und mit anderen Mitgliedern Ihrer Übungsgruppe an Projekten zu arbeiten.
Tun Sie folgendes:
- Installieren und einrichten Sie
git
- Erstellen Sie ein neues Verzeichnis
my-first-git-project
und öffnen Sie darin eine Kommandozeile. - Führen Sie den Befehl
git init
aus, um ein neues Repository zu erstellen - Erstellen Sie in dem Ordner eine Datei mit dem Namen
hello.txt
mit beliebigem Inhalt. - Führen Sie
git add hello.txt
aus, um die Datei zur Staging Area hinzuzufügen. - Führen Sie
git commit -m "My first commit!"
aus, um einen Commit zu erstellen.
Ziele:
|
Um mit git-Repositories auf GitHub arbeiten zu können, müssen Sie einen SSH-Schlüssel einrichten.
Achtung HTTP funktioniert zwar, um ein Repository zu clonen, wird aber für spätere Aufgaben nicht funktionieren; Sie benötigen zwingend einen SSH-Schlüssel.
Tun Sie folgendes:
- Richten Sie SSH ein, erstellen Sie einen Schlüssel und richten Sie diesen zur Benutzung mit Git und GitHub ein
- Öffnen Sie eine Kommandozeile
- Führen Sie
git clone git@github.com:se-tuebingen-exercises-ws23/helloworld
aus, um eine Kopie des Beispielrepositories zu erhalten - Das sollte ein neues Verzeichnis erstellen. Dieses sollte nicht leer sein, aber Sie müssen den Inhalt noch nicht verstehen
Ziele:
|
sbt
ist ein Buildsystem, das für Scala populär ist. Wir werden es für die Projekte verwenden, an denen Sie in dieser Veranstaltung arbeiten.
Tun Sie folgendes:
- Installieren Sie ein JDK und
sbt
- Öffnen Sie eine Kommandozeile in dem Ordner
helloworld
aus Aufgabe #4. - Führen Sie
sbt run
aus.- Dies sollte Sie in der Kommandozeile nach Ihrem Namen fragen. Geben Sie diesen ein und drücken Sie die Entertaste
- Sie sollten nun eine Meldung erhalten, dass Sie alle Dependencies korrekt eingerichtet haben.
Ziele:
|
Richten Sie sich eine Scala-Entwicklungsumgebung ein entsprechend einer der folgenden Anleitungen. Wählen Sie eine der folgenden IDEs und installieren Sie sie. Es ist nicht erforderlich, beides zu installieren:
- Empfohlene: Forumsanleitung für IntelliJ + Scala plugin
- Forumsanleitung für VS Code + Metals
Öffnen Sie das helloworld
-Beispielprojekt, um sicherzustellen, dass alles korrekt eingerichtet ist.
Deutsche Übersetzung oben.
Learning objectives: After finishing this homework, you will
|
Warning Although there will be no hand-in for this homework, it is vital that you complete it before Friday 20th 23:59:59 in order to get a tutorial slot and be able to do future homework.
Course website: https://se.informatik.uni-tuebingen.de/teaching/ws23/se/
Goals:
|
We will use GitHub both for handing in homework and to work on projects during the course. If you already have an account on GitHub, know your login data, and want to use it for the course, you can do so and skip this task.
Note An account on some other
git
hosting site (Gitlab, Bitbucket, ...) will not be sufficient.
Do the following: Create a GitHub account.
Goals:
|
Please do Task #1 first, as you will need your GitHub username for this task.
We will use the forum at https://ps-forum.cs.uni-tuebingen.de/ for communication regarding the lecture, e.g. publish lecture materials, make announcements and answer questions.
Do the following to register for the forum:
- Visit the forum at https://ps-forum.cs.uni-tuebingen.de/
- Click "Registrieren" to create a user account
- Fill out the form with your user data.
Benutzername
andPasswort
are especially important, make sure to remember them as they're needed for the forum, where we will publish lecture materials.- Also make sure to enter your Github username for
github
(see Task #1) and your matriculation number formatrnr
.
- Click "Benutzerkonto erstellen". You will now receive a confirmation email with a link to activate your account.
- You can use the forum to ask any questions regarding the SE lecture. Don't hesitate to create a new topic for it.
Goals:
|
Please do Tasks #1 and #2 first, as you will need your GitHub username and ps-forum username for this task.
We will use the dashboard at https://kamino.cs.uni-tuebingen.de/ to distribute the homework.
Do the following to register for the dashboard and tutorials:
- Visit the dashboard at https://kamino.cs.uni-tuebingen.de/
- Click "Sign in with GitHub" to create a user account
- Allow access to the GitHub account you created in Task #1.
- Fill out the registration form with your user data.
Forum username
is the username you selected for theps-forum
,Student email
is the email provided to you by the university (ending withuni-tuebingen.de
)
- On the main page, click "✏️ New Vote" to vote for the tutorials that would be possible for you and click "Submit"
Goals:
|
Git is a version control software that you learn about in the first lecture. It will also be used to hand-in assignments via GitHub and to work on projects with the other members of your tutorial.
Do the following:
- Install
git
and set-up yourgit
configuration - Create a new folder named
my-first-git-project
and open a terminal there. - Run
git init
to create a new git repository - Create a file named
hello.txt
in the folder and write something into it. - Run
git add hello.txt
to add the file to the staging area - Run
git commit -m "My first commit!"
to create a commit
Goals:
|
To work with Git repositories on GitHub, you will have to use SSH.
Warning Using http will work for cloning but will not work with later tasks, so you need to setup SSH.
Do the following:
- Set up SSH, generate a key and set it up for usage with git and github
- Open a terminal window
- Run
git clone git@github.com:se-tuebingen-exercises-ws23/helloworld
to get a copy of the example repository - This should create a new directory
helloworld
. It should be non-empty, but you don't need to understand the contents yet.
Goals:
|
sbt
is a build system popular for Scala development.
It will be used to build the projects you work on in the course.
Do the following:
- Install a JDK and
sbt
- Open a terminal in the folder
helloworld
created in Task #4. - Run
sbt run
.
- This will ask for your name on the terminal. Type in your name and press ENTER.
- Then, you should see a message saying that you have setup all dependencies correctly.
Goals:
|
Set up a Scala development environment as described in one of the following guides. Choose one of the following IDEs and install it. There is no need to install both:
- recommended: forum guide for IntelliJ + Scala plugin
- forum guide for VS Code + Metals
Then, open the helloworld
example project to make sure everything is setup correctly.