|Fig 1. Internet Jesus|
It's Friday today, and I thought I would take some time to share with you something we try to do at my place of work; probably the best use of Friday's you have ever heard of.
Refactoring FridayDuring the week, we carefully stitch, or recklessly smash together code; we are getting our job done. We've ticked off our tasks and moved on.
Except for Him, we all make mistakes, and we could all make good use of another hour on every task we have ever completed.
Soon, the intricate knowledge of what you have done this week will be gone from memory. In a surprisingly short amount of time, you will come across code you wrote this week and wonder why the world is the way it is, you will pray for a better world.
If you work in a shop with a million developers, or you work on your own. I encourage you to ask whoever calls the shots to leave Friday alone.
Make Refactoring Friday a thing; before every week ends, allow yourself to revisit the tasks you have completed and just ask the following questions:
- Have I violated any internal standards ?
- Have I violated any good programming practices ?
- Could this code be improved ?