Skip to content

Mconcoba/entry-challenge#8

Open
MConcoba wants to merge 12 commits into
corecodeio:masterfrom
MConcoba:MConcoba/entry-challenge
Open

Mconcoba/entry-challenge#8
MConcoba wants to merge 12 commits into
corecodeio:masterfrom
MConcoba:MConcoba/entry-challenge

Conversation

@MConcoba
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@LucasSolares LucasSolares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buen comienzo, soluciona los comentarios asignados aquí abajo! 😉

Comment thread src/client.ts Outdated
Comment thread src/client.ts Outdated
Comment thread src/client.ts Outdated
Comment thread src/client.ts Outdated
},
}

async function sendMyInformation(){
Copy link
Copy Markdown

@LucasSolares LucasSolares Jun 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ES8 incorpora async/await pero una función no debería ser async si no se esta usando la palabra await en ninguna parte en el cuerpo de la misma.

JavaScript async/await Hechale un vistazo a este link para más información. 👀

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LucasSolares procura utilizar este markdown cuando hablemos de código, como keywords, etc.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay entendido!

Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
import fs from "fs";
import schema from "./schema.json";
import server from "./server";
import { Request, Response } from "express";
Copy link
Copy Markdown

@LucasSolares LucasSolares Jun 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Estos imports no son necesarios en este archivo eliminalos por favor 😁

Comment thread src/client.ts Outdated
Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MConcoba vas por buen camino, por favor actualiza con los comentarios de @LucasSolares

Gracias Lucas, buen trabajo en los comments.

Comment thread package-lock.json Outdated
@@ -0,0 +1,1178 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MConcoba este file no debería estar en este PR. No hay necesidad de modificar el package.json. Además estamos usando yarn y éste genera yarn.lock.

@MConcoba
Copy link
Copy Markdown
Author

Gracias @LucasSolares y @netpoe por los comments

Comment thread src/client.ts Outdated
import { request } from "http";

import myInformation from "./data";
const password = process.env.PASSWORD_SECRET;
Copy link
Copy Markdown

@LucasSolares LucasSolares Jun 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El uso de variables globales en JS, no es una buena practica lo mejor es declararlas en el scope de la función donde se van a utilizar o en este caso como es una variable de entorno puedes simplemente usarla dentro de tu función donde la necesites. 👌

Comment thread .gitignore Outdated
/dist
/data
src/client.ts No newline at end of file
/pakage-lock.json No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No es necesario agregar el archivo package-lock.json solo borrarlo de tu carpeta ademas solo como dato importante los archivos lock nunca se agregan a un gitignore ya que estos mapean las librearías para que la instalación sea más rapida. 🐱‍🏍

Comment thread src/data.ts Outdated
},
}

export = myInformation; No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Algo que no es obligatorio, pero da buena estética al código es agregar una linea en blanco al final de los archivos de código, te recomiendo que lo hagas!

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MConcoba puedes instalar la extensión prettier en tu editor.

También puedes agregar esto a tus settings.json:

"editor.codeActionsOnSave": {
    "source.organizeImports": true
  },

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MConcoba ya estás muy cerca.

Por favor actualiza con los comentarios.

Gracias @LucasSolares

Comment thread src/data.ts
},
{
question: "code is poetry, because:",
answer: "Poetry is art, art is defined as a way to convey feelings creating something that is unique and original.",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown

@netpoe netpoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buen trabajo @MConcoba

Comment thread src/data.ts Outdated
},
}

export = myInformation;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este syntax no es muy claro, es mejor si hacemos:

Suggested change
export = myInformation;
export default myInformation;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants