Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

validation was performed#30

Open
castillojessica wants to merge 2 commits into
Laboratoria:masterfrom
castillojessica:master
Open

validation was performed#30
castillojessica wants to merge 2 commits into
Laboratoria:masterfrom
castillojessica:master

Conversation

@castillojessica

Copy link
Copy Markdown

No description provided.

@reloadercf reloadercf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Me agrada la Logica que implementaste, puedes mejorar lo siguiente:
1)la indentation de tu código y la definición del nombre utilizado en variables y funciones,
2)Si vas a documentar tu código se en ingles y solo utiliza palabras clave
3)Saber de manera concreta donde implementar console.log() y donde utilizas el mensaje de la respuesta.
4)Te recomendaria utilizar de forma activa GitHub, para plasmar el proceso de construcción
En general lo que más rescato es el pensamiento para abordar el problema y las soluciones propuestas.

Comment thread .gitignore
@@ -0,0 +1 @@
node_modules/ 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.

Esta genial discriminar la carpeta node_modules/ te recomiendo excluir el archivo package-lock.json

Comment thread README.md
@@ -1,355 +1,10 @@
# Markdown Links
# Hola amiguitos

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tus comentarios del readme tienen que ser más formales

Suggested change
# Hola amiguitos
# Bienvenidx a la libreria....

Comment thread README.md
- [Comprendiendo Promesas en Js](https://hackernoon.com/understanding-promises-in-javascript-13d99df067c1)
- [Pill de recursión - video](https://www.youtube.com/watch?v=lPPgY3HLlhQ&t=916s)
- [Pill de recursión - repositorio](https://github.com/merunga/pildora-recursion) No newline at end of file
[Modificación de link](https://www.youtube.com/wach?v=fBNz5xF-Kx488) 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.

recomiendo que tu Readme tenga recursos para el usuario final y el propósito de estos recursos sea ayudar en la instalación de la librería y tener una mejor documentación

Comment thread app.js
Comment on lines +1 to +3
const fs = require('fs')
const fetch = require('node-fetch')
const colors = require('colors')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Esto esta genial, el uso de const para las variables que el valor no muta

Comment thread app.js
Comment on lines +7 to +14
function getContentString() {

let index = process.argv.indexOf("--file")
if (index < 0) return console.log("You need to use a valid uri flag --file")
let uri = process.argv[index + 1]
let string = fs.readFileSync(uri, 'utf8')
return string
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

La definición de tus funciones debería contestar a la pregunta ¿qué hace la función?

Suggested change
function getContentString() {
let index = process.argv.indexOf("--file")
if (index < 0) return console.log("You need to use a valid uri flag --file")
let uri = process.argv[index + 1]
let string = fs.readFileSync(uri, 'utf8')
return string
}
function getContentStringArgv() {
let index = process.argv.indexOf("--file")
if (index < 0) return console.log("You need to use a valid uri flag --file")
let uri = process.argv[index + 1]
let string = fs.readFileSync(uri, 'utf8')
return string
}

Comment thread app.js
//console.log("las promesas de tu ex: ", promises)
};

let main = async() => { // la encargada de controlar lo que pasa en el programa (imperativo ó programacion imperativa)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Esto esta genial

Comment thread app.js
Comment on lines +81 to +84
if (shouldShowTotals > -1) {
// contar
// muestro results
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Esto no tiene sentido, si shouldShowTotals > -1 NO HACE NADA

Suggested change
if (shouldShowTotals > -1) {
// contar
// muestro results
}
if (shouldShowTotals > -1) {
// contar
// muestro results
}

Comment thread cli.js
@@ -0,0 +1,3 @@
#!/usr/bin/env node

let { main } = require("./app.js") 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.

Suggested change
let { main } = require("./app.js")
const { main } = require("./app.js")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cuando el valor no muta debería de ser const

Comment thread package.json
{
"name": "mdlinks",
"version": "1.0.0",
"description": "## Preámbulo",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

mejora la descripción y te recomiendo que fuese en ingles

Comment thread package.json
"mdlinks": "cli.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

La sección de scripts debe contener las herramientas como Jest

Suggested change
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants