Giter Site home page Giter Site logo

juandiegoguerra / awesome-books Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 118 KB

"Awesome books" is a simple website that displays a list of books and allows you to add and remove books from that list. By building this application, you will learn how to manage data using JavaScript. Thanks to that your website will be more interactive. You will also use a medium-fidelity wireframe to build the UI.

License: MIT License

HTML 24.03% JavaScript 50.34% CSS 25.64%

awesome-books's Introduction

๐Ÿ’ซ About Me:

๐Ÿ”ญ Iโ€™m currently studying in Microverse
๐Ÿ‘ฏ Iโ€™m looking to collaborate on learning projects
๐Ÿค Iโ€™m looking for help with front-end development skills
๐ŸŒฑ Iโ€™m currently learning front-end development
๐Ÿ’ฌ Ask me about Java or C+
โšก Fun fact - I'm a gamer and I never give up until I beat the boss!

๐ŸŒ Socials:

Discord Facebook Instagram LinkedIn Stack Overflow Twitter YouTube

๐Ÿ’ป Tech Stack:

Java HTML5 Oracle Angular ANDROID MicrosoftSQLServer MySQL Figma CSS3 C++

๐Ÿ“Š GitHub Stats:



๐Ÿ† GitHub Trophies

โœ๏ธ Random Dev Quote


๐Ÿ’ฐ You can help me by Donating

PayPal

awesome-books's People

Contributors

fdezcaminero avatar juandiegoguerra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

awesome-books's Issues

Excessive and Unnecessary CSS Tag Usage

You have been doing an amazing job so far. However we got few aspects you can improve and work on:

Currently, your CSS codebase contains a significant number of unnecessary tags, resulting in increased complexity and potential performance issues. This issue aims to address the problem and optimize the usage of tags within our CSS files.

The CSS code currently employs numerous unnecessary tags, such as descendant selectors, overly specific class selectors, and repeated tag selectors. These redundant selectors bloat the codebase, making it harder to understand, modify, and optimize.

Suggested Solution:

  • Perform a comprehensive review of our CSS codebase to identify and document instances of unnecessary tag usage.
  • Refactor the CSS code by removing redundant tags where possible, while ensuring the desired styles are preserved.
  • Consolidate and optimize styles by utilizing more efficient and concise selectors.
  • Conduct thorough testing to verify that the changes do not introduce any visual regressions or functional issues.

Morning session

Peer-to-peer review

Juan Diego, you have done a good job so far! โœ”๏ธ

  • The design is clear and nice, and functionality wise is doing what is intended to

Although there are some changes that can be made to improve your project

  • I kindly suggest using DOMContentLoaded event instead of 'load', here are more references to the event.

Actual code

image

Suggested code

window.addEventListener('DOMContentLoaded', loadBooks());
  • Also is a good practice to document your code so is easy to read and understand by other people.

Actual code

image

Suggested code

// Remove book function

  removeBook(index) {
    this.books.splice(index, 1);
  • Remember that in order to help the readability of your code it is recommended to put all the variables at the top of your JS file, I kindly suggest making this change.

Actual code

image

Suggested code

const newTitle = document.getElementById('new-title'); 
const newAuthor = document.getElementById('new-author');
const addButton = document.getElementById('add-button');
const localbooks = localStorage.getItem('books');
const superLibrary = new Library();
const listLink = document.getElementById('list-link');
const addLink = document.getElementById('add-link');
const contactLink = document.getElementById('contact-link');

Keep up the good work, these are minor changes that can help your code shine โญ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.