Back to School Code Cleanup

Whether working on projects with a fast change cycle or something that has not been changed recently – it is always a good idea to step back and review your code from time to time. Generally most people put it off for when “things slow down” or do not do it because “if it works don’t fix it” mentality.

When working with something like PHP, CSS, etc – you develop the best you can at the time you develop the code. If you simply leave everything as is – you risk incompatibility/security issues, etc because nothing is constant (browsers, PHP versions, etc). While it might not seem like the best way to spend your time at first – it will definitely help you down the road and at the very least make you realize how much you have learned since you initially wrote the code.

After working with a number of open source projects (WordPress, Drupal, XOOPS, etc) – I realized while that ignoring code cleanup is not an option and am going to from now on delegate September as my code cleanup month in which I will designate 2 days a week to spend exclusively on reviewing code and looking for ways to optimize it, get rid of any depreciated functions/etc. There are projects where code reviews happen more frequently – but for those that do not have reviews built in – this will be the catch all month.

Everyone writes code they are not proud of from time to time – the difference is there are some people who just let it slide vs. others that take the extra step to fix it. Time to review the jappler.com site 😉