typelevel / typelevel/typelevel.github.com
Blog post: Why Type Classes?
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- HTML
- Star
- 42
- Fork
- 115
- Merge trung bình
- 5 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 7
Mô tả
Hypothetical blog post that might be quite helpful, for anyone who wants to pick it up.
Lay out the argument for why type classes are a helpful way to do things. Ideally, this should not waste much time getting into the nitty-gritty of what a type class is, just link to the details (where?). Instead, focus on why type classes are a good business decision -- how they help promote better, more maintainable designs via cleaner abstractions. Provide examples of various sorts of type classes from various TL libraries. Make the case that they are fine from an efficiency POV, and not nearly as complicated as some people make it sound -- they're just a different kind of interface.
In particular, emphasize the way that the type class approach promotes better flexibility down the road, and resists too much lock-in: by stating exactly your requirements, it allows you to use whatever components fit those requirements. Possibly say in as many words that a type class based approach to the IO level allows you to be flexible even about the main engine driving the applications, and thus resists lock-in. Be clear that this is why, while cats-effect has a world-class IO engine, we tend to think of the type classes as the most important part, so that the users have this long-term flexibility.
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.
Hướng nghiên cứu
Bắt đầu bằng cách xác định điểm bắt đầu của các bài đăng blog trên trang web và xem lại các bài đăng TypeLevel hiện có để nắm được cấu trúc cũng như các quy ước xuất bản. Bài đăng hoàn chỉnh nên giải thích những lợi ích thực tế của type class, sử dụng các ví dụ từ các thư viện TypeLevel, đề cập đến những lo ngại về hiệu năng và độ phức tạp, đồng thời liên hệ việc giảm lock-in với các IO engine linh hoạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- scala
- Lĩnh vực
- content
- Loại issue
- Tài liệu
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100