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

Send for code review, team5!!#27

Open
akaren29 wants to merge 21 commits into
Laboratoria:masterfrom
CarmenXP:master
Open

Send for code review, team5!!#27
akaren29 wants to merge 21 commits into
Laboratoria:masterfrom
CarmenXP:master

Conversation

@akaren29

@akaren29 akaren29 commented May 2, 2020

Copy link
Copy Markdown

This is the good

@HectorBlisS HectorBlisS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Se nota el trabajo duro en su proyecto, es importante agregar profesionalismo con las variables totalmente en inglés, bien la separación de responsabilidades, pero puede hacerse aún mejor, BD | DOM | FILES, bien por el uso de promesas y los estilos muy bien.

Comment thread src/compenentes/pantalla1.js Outdated
import { registros } from './pantalla2.js'

let root = document.querySelector('#root');
export const login = () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Muy bien el uso de arrow functions

var credential = error.credential;
// ...
});
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bien la integración de los listener dentro de la función para render

Comment thread src/compenentes/pantalla1.js Outdated
import { registros } from './pantalla2.js'

let root = document.querySelector('#root');
export const login = () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

El nombre de las funciones debe ser camelCase mucho más descriptivas, esto parece un nombre de variable.

Comment thread src/compenentes/pantalla1.js Outdated

let bttn = document.querySelector('.logoG');
bttn.addEventListener('click', login);
function login (){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nombres de funciones en camelCase

Comment thread src/compenentes/pantalla1.js Outdated
}


let bttn0 = document.querySelector('.logoF');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

button0 es poco descriptivo, usen nombres más obvios cómo loginButton o homeButtonAction

Comment thread src/index.js
import { pantalla1 } from './compenentes/pantalla1.js';
import { registrar } from './compenentes/registro.js';
login();
pantalla1();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PÉSIMO EL USO DE ESPAÑOL DENTRO DEL CÓDIGO

Comment thread src/style.css
}

/*Estilos pantalla posts*/
.containtPub{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

EVITEMOS el camel case en clases de css, prefiramos contain-pub e intentemos ser más descriptivas

Comment thread src/compenentes/posts.js Outdated
Comment on lines +75 to +77
<button id="delete" value="${doc.id}" class="delete">Eliminar</button>
<button id="edit" name="${doc.data().texto}" data-id="${doc.id}" class="edit">Editar</button>
<button class="like" name="${doc.data().likes}" data-id="${doc.id}"> Me gusta </button> <p class="like" >${doc.data().likes}</p>
<button class="like" name="${doc.data().likes}" data-id="${doc.id}"> <p class="like" >${doc.data().likes}</p> Me gusta</button>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bien por la separación de las funciones para guardar datos en la BD pero siempre separar el DOM de la lógica.

Comment thread src/compenentes/posts.js
}else{
fileInput.onchange = e => {
let file = e.target.files[0]
firebase.storage().ref("images").child(file.name).put(file)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Igual, preferible separar el storage del firestore, para poder mantenerlo cundo el proyecto cresca

Comment thread src/style.css
@@ -430,10 +430,12 @@ body{
font-size: 20px;
}
p.like{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bien por el uso de especificidad, siempre evitando llegar a mas de 3 niveles.

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.

4 participants