Forked from fdaciuk/Live Node.js + TS com Programação Funcional.md
Created
April 21, 2023 11:11
-
-
Save Chilengue/c17f0c349ecd38e70d91f0c51ab7dacb to your computer and use it in GitHub Desktop.
Revisions
-
fdaciuk revised this gist
Oct 4, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Repositório do projeto: https://github.com/fdaciuk/conduit-api Especificação da API: https://gothinkster.github.io/realworld/docs/specs/backend-specs/introduction ## Talks -
fdaciuk revised this gist
Sep 9, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Repositório do projeto: https://github.com/fdaciuk/conduit-api Especificação da API: https://github.com/gothinkster/realworld/tree/main/api ## Talks -
fdaciuk revised this gist
Aug 7, 2021 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,6 +31,9 @@ https://github.com/gothinkster/realworld/tree/master/api - Video: https://www.youtube.com/watch?v=UwCLmHQOWoY - Slides: https://noti.st/robinpokorny/eayxlR/slides **Teoria das categorias** - https://www.youtube.com/watch?v=I8LbkfSSR58&list=PLbgaMIhjbmEnaH_LTkxLI7FMa2HsnawM_ --- ## Live #002: Tipos do fp-ts -
fdaciuk revised this gist
Jul 5, 2021 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,28 +8,28 @@ https://github.com/gothinkster/realworld/tree/master/api ## Talks **Lidando com valores opcionais no React com fp-ts:** - https://www.youtube.com/watch?v=kf0Ny1xsbBI **Haskell para programadores JavaScript (como programar de forma puramente funcional em JS):** - https://www.youtube.com/watch?v=pUN3algpvMs **Lazy evaluation do Haskell aplicado em JS:** - https://www.youtube.com/watch?v=E5yAoMaVCp0 **Functional Architecture (Arquitetura Hexagonal):** - https://www.youtube.com/watch?v=US8QG9I1XW0 **Functional Design Patterns:** - https://www.youtube.com/watch?v=srQt1NAHYC0 **From Dependency Injection to dependency rejection:** - https://www.youtube.com/watch?v=cxs7oLGrxQ4 **Typed Functional Programming in TypeScript with fp-ts:** - Video: https://www.youtube.com/watch?v=UwCLmHQOWoY - Slides: https://noti.st/robinpokorny/eayxlR/slides --- -
fdaciuk revised this gist
Jul 5, 2021 . 1 changed file with 25 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,31 @@ https://github.com/fdaciuk/conduit-api Especificação da API: https://github.com/gothinkster/realworld/tree/master/api ## Talks Lidando com valores opcionais no React com fp-ts: https://www.youtube.com/watch?v=kf0Ny1xsbBI Haskell para programadores JavaScript (como programar de forma puramente funcional em JS) https://www.youtube.com/watch?v=pUN3algpvMs Lazy evaluation do Haskell aplicado em JS: https://www.youtube.com/watch?v=E5yAoMaVCp0 Functional Architecture (Arquitetura Hexagonal): https://www.youtube.com/watch?v=US8QG9I1XW0 Functional Design Patterns: https://www.youtube.com/watch?v=srQt1NAHYC0 From Dependency Injection to dependency rejection: https://www.youtube.com/watch?v=cxs7oLGrxQ4 Typed Functional Programming in TypeScript with fp-ts Video: https://www.youtube.com/watch?v=UwCLmHQOWoY Slides: https://noti.st/robinpokorny/eayxlR/slides --- ## Live #002: Tipos do fp-ts -
fdaciuk revised this gist
Jul 2, 2021 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,9 @@ Repositório do projeto: https://github.com/fdaciuk/conduit-api Especificação da API: https://github.com/gothinkster/realworld/tree/master/api --- ## Live #002: Tipos do fp-ts -
fdaciuk renamed this gist
Jun 25, 2021 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,10 @@ # Links Repositório do projeto: https://github.com/fdaciuk/conduit-api --- ## Live #002: Tipos do fp-ts ```ts -
fdaciuk revised this gist
Jun 24, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ ## Live #002: Tipos do fp-ts ```ts // Lazy é só uma função que retorna alguma coisa. type Lazy<A> = () => A -
fdaciuk created this gist
Jun 24, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ ## Live #002: Tipos do fp-ts ``` // Lazy é só uma função que retorna alguma coisa. type Lazy<A> = () => A // usamos Option quando temos tipos de dados possivelmente nulos. type Some<A> = { _tag: 'Some' value: A } type None = { _tag: 'None' } type Option<A> = Some<A> | None // usamos Either quando temos algum valor síncrono que possivelmente vai disparar um erro type Right<A> = { _tag: 'Right' right: A } type Left<E> = { _tag: 'Left' left: E } type Either<E, A> = Right<A> | Left<E> // usamos Task para funções que retornam uma promise que nunca quebra type Task<A> = Lazy<Promise<A>> // usamos o TaskEither para funções que retornam uma Promise que possivelmente dispara um erro type TaskEither<E, A> = Task<Either<E, A>> ```