Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

NW6 | Sabella Fisseha | JS2 | To Do List | WEEK 3 #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sabella-8
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for cute-gaufre-e4b4e5 ready!

Name Link
🔨 Latest commit 4892dbd
🔍 Latest deploy log https://app.netlify.com/sites/cute-gaufre-e4b4e5/deploys/65ae9a049b80420008e6fea2
😎 Deploy Preview https://deploy-preview-214--cute-gaufre-e4b4e5.netlify.app/week-3/todo-list
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

<link rel="stylesheet" href="style.css" />
<link
Copy link
Member

@JayMayer JayMayer Jan 24, 2024

Choose a reason for hiding this comment

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

In the end I don't think you used a custom font, so this <link> tag can be removed. We want to make sure that the site loads quickly for users and doesn't download unnecessary files, so removing this is an easy performance win! 💯

Copy link
Member

Choose a reason for hiding this comment

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

In this file, there's two large chunks of code that are very similar, inside the populateTodoList and addNewTodo functions. Generally, we don't want to re-use code (a concept called DRY - Don't Repeat Yourself). Repeating code can make it difficult to make a change in the future - it's nice to only have to update code in one place

As a starting point - maybe some of the repeated code could be extracted into its own function? Both seem to be creating a new todo element, so maybe a function called createTodo or similar would be a good place for the code

Copy link
Member

@JayMayer JayMayer left a comment

Choose a reason for hiding this comment

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

Wow! This is great work Sabella! You've hit all the requirements and completed the advanced challenge!

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