mohamednaser / library

0 stars 0 forks source link

Improvement #2

Open Israel-Laguan opened 4 years ago

Israel-Laguan commented 4 years ago

First of all this a good project made with clean code!

It's hard to find great improvements, so I have to pinpoint style suggestions and not actual problems. So in the comments, I will put some suggestions.

JuanPabloGil commented 4 years ago

Great job! Especially with the Firebase!

https://github.com/mohamednaser/library/blob/4b67e36a4aaa29e542929be7a57cf54fd5ce4c44/JS/firebase.js#L59-L70 https://github.com/mohamednaser/library/blob/4b67e36a4aaa29e542929be7a57cf54fd5ce4c44/index.html#L153-L167

It's a good idea to validate all the inputs on the method createBook() It can prevent people from leaving fields blank, from entering too little or too much or from using invalid characters.

You can check this article for more info: JavaScript: Form Validation

Israel-Laguan commented 4 years ago