Radio Control App
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 62/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Add type annotations where appropriate.
- Upgrade everything use dataclasses. Use frozen where appropriate.
- Observe how the given str method works, and add one to the other classes
- When the str method is called, have it print the duration in formatted mm:ss rather than just seconds
- Add a new class of Person - you can use your imagination what this includes, but it should have at least a string name
- Turn the fields for artists, host, and guest into Person classes
- Make a new class Podcast that extends the TalkShow class, with an extra string field for sponsor
- Finish implementing the class Playlist, and set it to takes a generic, e.g. either Song or TalkShow or Podcast
- 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.
- Lingua principale
- Shell
- Stelle
- 0
- Fork
- 116
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeYourFuture/Module-Tools
-
Install a C# EnvironmentAperta📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
CodeYourFuture/Module-Tools#712 ·
-
🏕 Priority Mandatory 📅 Sprint 4 Core Module-Tools Submit:None 🦔 Size Tiny
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
CodeYourFuture/Module-Tools#581 ·
-
Mentored Pair ProgrammingAperta🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 📅 Sprint 4 Module-Tools Recurring Submit:None
Difficoltà 1/5 1-3 ore Idoneità per principianti 58/100
CodeYourFuture/Module-Tools#544 ·
-
Install a JDKAperta🏕 Priority Mandatory 📅 Sprint 4 Core Module-Tools Submit:None
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
CodeYourFuture/Module-Tools#480 ·
-
Write a general CVAperta🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 4 Core Module-Tools Submit:Slack
Difficoltà 2/5 Mezza giornata Idoneità per principianti 45/100
CodeYourFuture/Module-Tools#137 ·
Tutte le issue di CodeYourFuture/Module-Tools
Issue simili
-
area: release enhancement good first issue size: S
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
dhruvchawla2511/Friday#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
tldr-pages/tldr#25495 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
action-item bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
getcommunityone/open-navigator#895 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted ready-for-triage triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
rh-pvsec/crypto-scanner-tasks#78 · 2 commenti ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ModelEngine-Group/nexent#4428 ·
I maintainer di solito rispondono entro 1 giorno