DyaryRaoof / my-todo-list

"To-do list" is a tool that helps to organize your day. It simply lists the things that you need to do and allows you to mark them as complete. It is created with HTML , CSS , JS and webpack and NPM.
5 stars 0 forks source link

DRY, KISS, and YAGNI rules #5

Open DyaryRaoof opened 2 years ago

DyaryRaoof commented 2 years ago

Hi. To keep your code DRY Please reuse the code from these lines into a single reusable piece of code. line 19 line 36 line 68

Also these tow lines have same issue : line 103 and line 98

You could use a forEach here : line 196

Also In your styles your repeat margin : 0 and padding : 0 three times, try using a class and assign these values to it, then apply the class to relevant elements:

styles.css line 8 and line 18 and line 38