Skip to content

code-star/scala101-full-course

Repository files navigation

Scala 101 - an introduction to Scala, SBT, and ScalaTest

Student notes

Preparations for attending the course:

  1. Install SBT
    • brew install sbt (or use your personal preferred way to install software on your Macbook)
    • Check if you can use sbt by doing an sbt --version
  2. Set up an IDE of your choice. IntellIJ is recommended, VSCode is possible too
    • IntellIJ
      • IntellIJ has support for scala and sbt through the Scala plugin provided by JetBrains
        • Install the plugin via IntellIJ->Preferences... and then go to Plugins>Marketplace and search for Scala
        • sbt commands can be run from the IDE, or from the command line
    • VSCode
      • VSCode supports scala via an extension from Scalameta, called scalameta language server, or Metals
      • No sbt built-in
        • sbt commands are run from Terminal instead
  3. Clone this repository

More resources

Instructor notes

To see the slides:

  • open a command line
  • cd to the slides folder
  • python3 -m http.server
  • Open a browser tab and navigate to localhost:8000

When working on the slides, make sure you disable cache in your browser and reload the slides whenever you saved changes, otherwise you may not see the most recent version of the slides.

Working on the slides

To make authoring the documentation easy, you should add some plugins and setup to IntelliJ. This will help working with PlantUML diagrams (you see live results on diagram edits in IntelliJ, and a File Watcher takes care of updating the png versions of all modified diagrams).

  1. Install the PlantUML plugin and follow their instructions on setting up PlantUML and Graphviz
  2. Install the File Watchers plugin
  3. Add a File Watcher to watch the slides folder and process puml files in these folders:
    File Watcher
  4. Create a custom scope to limit the file watcher:
    Documentation Scope

Automatically generate .png results from changed .puml files:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published