DEV Community 👩‍💻👨‍💻

Cover image for Refactoring in the kitchen?
Gabor Szabo
Gabor Szabo

Posted on

Refactoring in the kitchen?

Most people when they are cooking they create a lot of dirty dishes. They might even leave the dishes in the sink after dinner, but then in the morning they clean up everything because they know when they will want to cook again they need the clean dishes.

This is the same with programming.

You might be in a hurry to implement a feature or fix a bug and push it out to the customers, but then, once you are done you go back and clean up the mess you left because you know that next time you need to change this code you'd like to arrive to a clean environment.

To facilitate a safe refactoring environment you would write tests.

Top comments (2)

Collapse
 
colinforsyt profile image
ColinForsyt • Edited on

I live in my house since 2008, so I had to make some changes to my kitchen. To make it more modernized for 2021. My wife ordered a lot of new utilities like a coffee machine, blender, etc. I decided to search for a new worktop. I wanted so much a granite one because it's looking so sick. I've found what I've been searching for at Quartz Worktops Leeds. They have stunning and excellent worktops. They delivered it to me in 18 hours and also installed it for free. I am delighted with their service and the quality of my new worktop.

Collapse
 
ianr23 profile image
Ianr23

I am not a person that spends much time there, so for me is useless to make some changes.

🌚 Life is too short to browse without dark mode