Open ahangarha opened 2 years ago
I have noticed some cases of not following best practices in JS. In most of the cases you have chosen good names which are both meaningful and also nicely written in camleCase. Yet in some cases variable names are not following the best practices:
https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/index.js#L7 https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/AddandRemove.js#L116
I think it would be better to use something like todoText or todoTitle or todoDescription. What do you think?
todoText
todoTitle
todoDescription
I also noticed edit method having typo in its name: https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/AddandRemove.js#L39
Also here, I think something like todo would be more descriptive than obj: https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/AddandRemove.js#L35
todo
obj
Also I noticed file name for AddandRemove doesn't follow the convention. I couldn't guess why. May you share if you had anything particular in mind?
AddandRemove
thanks for your review I will check that
I have noticed some cases of not following best practices in JS. In most of the cases you have chosen good names which are both meaningful and also nicely written in camleCase. Yet in some cases variable names are not following the best practices:
https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/index.js#L7 https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/AddandRemove.js#L116
I think it would be better to use something like
todoText
ortodoTitle
ortodoDescription
. What do you think?I also noticed edit method having typo in its name: https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/AddandRemove.js#L39
Also here, I think something like
todo
would be more descriptive thanobj
: https://github.com/brahimdidi/Todolist-App/blob/bebd482276901748dc0071a8652da2041f3ae123/src/AddandRemove.js#L35Also I noticed file name for
AddandRemove
doesn't follow the convention. I couldn't guess why. May you share if you had anything particular in mind?