How to Write Effective Code in 3 Simple Steps

Make it work, make it right, and make it fast.

Quote by Kent Beck

Kent Beck's quote is so effective and useful in almost any aspect of coding, from writing small programs to large projects; if followed properly, it will change the way you code.

1. Make it work.

When trying to solve a coding problem, first of all, we need to develop a working solution without thinking too much about writing 100% clean code. This process will help you focus on the core solution.

2. Make it right.

After writing your first working solution, you need to refactor the code by making it clean, maintainable, readable, and applying the best practices to make it robust and bug-free.

3. Make it fast.

The final step in this whole process will be to optimize the code to make it faster. This process will indirectly improve the user experience.

Following this framework will not only help in writing clean code, but it will also make you a better programmer.