gaerfield / 2020-01_ktws

Koans for a kotlin-workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2020-01_ktws

Koans for a kotlin-workshop

further self-studying kotlin-links:

After succesful start of the app, you can visit:

Exercises

model the following Domain with kotlin

Artist: An individual or group who creates music

  • name: The name of the artist (e.g., “The Beatles”)
  • members: A set of other artists who comprise this group (e.g., “John Lennon”); this field might be empty
  • origin: The primary location of origin of the group (e.g., “Liverpool”).

Track: A single piece of music

  • name: The name of the track (e.g., “Yellow Submarine”)

Album A single release of music, comprising several tracks

  • name: The name of the album (e.g., “Revolver”)
  • tracks: A list of tracks
  • musicians: A list of artists who helped create the music on this album

Create some new REST-Services

We have Movie-Database and want to gather some trivial infos. Create some new Services in "MovieService", and collect for example:

  • movies group by score (0-1, 1-2, 2-3, etc.) and give a count of movies within this groups
  • top 10 studios by number of productions
  • directors grouped by number of productions with top 3 by average score, i.e.:
directors with 5 movies:
  Steven Spielberg (avg-score: 5.2), Francis Ford Coppola (avg.-score: 6.1)
directors with 4 movies: ..
  • do the previous task with least average score instead
  • which persons (actors, writers, directors) have acted in multiple roles for the same or for different movies, i.e.:
Woody Allen:
    Writer: Scoop, Midnight in Paris 
    Actor: Scoop
    Director: Scoop
...

About

Koans for a kotlin-workshop

License:Apache License 2.0


Languages

Language:Kotlin 100.0%