Radio Control App

Offen
#687 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
62/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
tooling

Rechercherichtung

Start with the coursework files in the linked types-stretch directory and read the existing classes, especially the __str__ method and Playlist. Run mypy as you work, then add your own test code as requested. Done means the requested dataclasses, Person and Podcast classes, generic playlist, and formatted durations are implemented and checked.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

🏝️ Priority Stretch 🐂 Size Medium 📅 Sprint 5 Core Module-Tools Optional Submit:PR
Link to the coursework

https://github.com/CodeYourFuture/Module-Tools/tree/main/types-stretch

Learning Objectives
  • Turn classes into dataclasses.
  • Make and use a generic class.
  • Use classes within a heirarchy.
  • Refactor a codebase using mypy.
Why are we doing this?

Sprint 5 Stretch - Radio Control App
This is part of an app that can be used to control an online radio station

Your task is to:

  1. Add type annotations where appropriate.
  2. Upgrade everything use dataclasses. Use frozen where appropriate.
  3. Observe how the given str method works, and add one to the other classes
  4. When the str method is called, have it print the duration in formatted mm:ss rather than just seconds
  5. Add a new class of Person - you can use your imagination what this includes, but it should have at least a string name
  6. Turn the fields for artists, host, and guest into Person classes
  7. Make a new class Podcast that extends the TalkShow class, with an extra string field for sponsor
  8. Finish implementing the class Playlist, and set it to takes a generic, e.g. either Song or TalkShow or Podcast
  9. As you implement, make sure to keep checking with mypy and add your own code at the end to test it works correctly
Maximum time in hours

1

How to get help

General advice on asking for help can be found on the curriculum pages.
You can always share your blockers in your class channel and get help from your colleagues.

Submission & Review

Fork the coursework repo to your own GitHub account.
Make regular small commits with clear messages.
When you are ready, open a Pull Request to the CYF repo. Make sure you fill in the PR template provided.
A volunteer will review your submission and send you feedback.

Vorherrschende Sprache
Shell
Sterne
0
Forks
116
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeYourFuture/Module-Tools

Alle Issues in CodeYourFuture/Module-Tools

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.