Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Chilengue/c17f0c349ecd38e70d91f0c51ab7dacb to your computer and use it in GitHub Desktop.

Select an option

Save Chilengue/c17f0c349ecd38e70d91f0c51ab7dacb to your computer and use it in GitHub Desktop.

Revisions

  1. @fdaciuk fdaciuk revised this gist Oct 4, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Live Node.js + TS com Programação Funcional.md
    Original 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
    https://gothinkster.github.io/realworld/docs/specs/backend-specs/introduction

    ## Talks

  2. @fdaciuk fdaciuk revised this gist Sep 9, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Live Node.js + TS com Programação Funcional.md
    Original 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/master/api
    https://github.com/gothinkster/realworld/tree/main/api

    ## Talks

  3. @fdaciuk fdaciuk revised this gist Aug 7, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Live Node.js + TS com Programação Funcional.md
    Original 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
  4. @fdaciuk fdaciuk revised this gist Jul 5, 2021. 1 changed file with 15 additions and 15 deletions.
    30 changes: 15 additions & 15 deletions Live Node.js + TS com Programação Funcional.md
    Original 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
    **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
    **Haskell para programadores JavaScript (como programar de forma puramente funcional em JS):**
    - https://www.youtube.com/watch?v=pUN3algpvMs

    Functional Architecture (Arquitetura Hexagonal):
    https://www.youtube.com/watch?v=US8QG9I1XW0
    **Lazy evaluation do Haskell aplicado em JS:**
    - https://www.youtube.com/watch?v=E5yAoMaVCp0

    Functional Design Patterns:
    https://www.youtube.com/watch?v=srQt1NAHYC0
    **Functional Architecture (Arquitetura Hexagonal):**
    - https://www.youtube.com/watch?v=US8QG9I1XW0

    From Dependency Injection to dependency rejection:
    https://www.youtube.com/watch?v=cxs7oLGrxQ4
    **Functional Design Patterns:**
    - https://www.youtube.com/watch?v=srQt1NAHYC0

    Typed Functional Programming in TypeScript with fp-ts
    Video: https://www.youtube.com/watch?v=UwCLmHQOWoY
    Slides: https://noti.st/robinpokorny/eayxlR/slides
    **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

    ---

  5. @fdaciuk fdaciuk revised this gist Jul 5, 2021. 1 changed file with 25 additions and 0 deletions.
    25 changes: 25 additions & 0 deletions Live Node.js + TS com Programação Funcional.md
    Original 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
  6. @fdaciuk fdaciuk revised this gist Jul 2, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Live Node.js + TS com Programação Funcional.md
    Original 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
  7. @fdaciuk fdaciuk renamed this gist Jun 25, 2021. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions README.md → ...Node.js + TS com Programação Funcional.md
    Original 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
  8. @fdaciuk fdaciuk revised this gist Jun 24, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original 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

  9. @fdaciuk fdaciuk created this gist Jun 24, 2021.
    37 changes: 37 additions & 0 deletions README.md
    Original 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>>
    ```