typelevel / typelevel/typelevel.github.com
Blog post: Why Type Classes?
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- HTML
- Estrellas
- 42
- Forks
- 115
- Merge medio
- 5 d 5 h
- PR fusionados (30 d)
- 7
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza localizando el punto de entrada de las publicaciones del blog del sitio y revisando las publicaciones existentes de TypeLevel para conocer su estructura y sus convenciones de publicación. El artículo terminado debe explicar los beneficios prácticos de las type classes, usar ejemplos de las bibliotecas de TypeLevel, abordar las preocupaciones sobre la eficiencia y la complejidad, y relacionar la reducción del lock-in con motores de IO flexibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- scala
- Área
- content
- Tipo de issue
- Documentación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100