Please refactor your code.

HARSH VATS - Mar 18 '21 - - Dev Community

Try to refactor your code whenever you get time.

This is a very small post(actually my linkedin post) but very helpful.

If you don't have the habbit of refactoring your code, try now, this is going to be the best experience and learning for you.

How code refactoring would help???

  1. You will realize that there are some pieces in your code which are not at all being used. Now you can delete them. This gives immense pleasure 😅.

  2. You can apply your newly learned things. For me, I was never confident in object destructuring in javascript but in refactoring the code, I applied my learning and became more confident like giving initial value, renaming in destructing.

  3. As your code gets better and better and now that you have gone through it many times, you can now explain it to anybody about your project and how you did it. Most of the times, we are not able to explain our code just bcoz we left it after we realized that it's doing the required job and never cared to refactor it.

Doesn't matter if project is big or small, you need to refactor it now.

Let me know your thoughts in the comments.

That's it, have a good day dev 😊.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player