typelevel / typelevel/typelevel.github.com
Blog post: Why Type Classes?
还没有人认领这个 Issue。
- 主要语言
- HTML
- 星标
- 42
- 派生
- 115
- 平均合并
- 5 天 5 小时
- 30 天内合并 PR
- 7
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位该网站博客文章的入口点,并查看现有的 TypeLevel 文章,了解其结构和发布约定。完成的文章应解释类型类的实际优势,使用 TypeLevel 库中的示例,回应对效率和复杂性的担忧,并将减少锁定与灵活的 IO 引擎联系起来。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- scala
- 领域
- content
- Issue 类型
- 文档
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100