Blog post: Why Type Classes?

Aberta
#596 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
scala
Domínio
content

Direção de pesquisa

Comece localizando o ponto de entrada das postagens do blog do site e revisando as postagens existentes do TypeLevel para conhecer a estrutura e as convenções de publicação. A postagem final deve explicar os benefícios práticos das type classes, usar exemplos das bibliotecas do TypeLevel, abordar preocupações sobre eficiência e complexidade e relacionar a redução de lock-in a mecanismos de IO flexíveis.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
HTML
Estrelas
42
Forks
115
Merge médio
5d 5h
PRs com merge (30d)
7

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de typelevel/typelevel.github.com

Todas as issues de typelevel/typelevel.github.com

Issues semelhantes

Mais issues de Content

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.