Radio Control App
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 62/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 0
- Fork
- 116
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeYourFuture/Module-Tools
-
Install a C# EnvironmentĐang mở📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CodeYourFuture/Module-Tools#712 ·
-
Complete the SDC starting surveyĐang mở🏕 Priority Mandatory 📅 Sprint 4 Core Module-Tools Submit:None 🦔 Size Tiny
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
CodeYourFuture/Module-Tools#581 ·
-
Mentored Pair ProgrammingĐang mở🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 📅 Sprint 4 Module-Tools Recurring Submit:None
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 58/100
CodeYourFuture/Module-Tools#544 ·
-
Install a JDKĐang mở🏕 Priority Mandatory 📅 Sprint 4 Core Module-Tools Submit:None
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
CodeYourFuture/Module-Tools#480 ·
-
Write a general CVĐang mở🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 4 Core Module-Tools Submit:Slack
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 45/100
CodeYourFuture/Module-Tools#137 ·
Tất cả issue của CodeYourFuture/Module-Tools
Issue tương tự
-
area: release enhancement good first issue size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
dhruvchawla2511/Friday#39 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
tldr-pages/tldr#25495 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
action-item bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getcommunityone/open-navigator#895 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted ready-for-triage triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
rh-pvsec/crypto-scanner-tasks#78 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ModelEngine-Group/nexent#4428 ·
Maintainer thường phản hồi trong vòng 1 ngày