Course Repositories

Course Repositories

We maintain public repositories of source code shown in lectures. The following projects are available:

  • courses: a full application (console and desktop), with issue lists, documentation etc.
  • kotlin-language: a single Kotlin project, with language examples. Used in lectures.
  • sample code: smaller, limited applications usually to demonstrate specific functionality e.g., database connections, UI dialogs. Grouped into desktop/android folders based on platform.
  • templates: project documents e.g., meeting minute templates.

To get a copy, git clone the URL for the repository that you want to open. This command, for instance, would create a copy of the kotlin-language project in a directory of the same name.

$ git clone https://git.uwaterloo.ca/cs346/kotlin-language.git

The sample code folder contains code to accompany the lecture slides. You can build and execute these projects directly in IntelliJ:

  • File > Open and navigate to the top-level directory of the project, containing a build.gradle.kts file. Do NOT open a specific file, just the directory. Click Ok.
  • Click on the Run button in either IntelliJ or Android Studio to run the project.

IntelliJ with Gradle window open

Final Word

XKCD Compiling
https://xkcd.com/303