Posts tagged 〝cleaning〞
Five things to do to a script before handing it over to the next developer
February 7th, 2008 at 1:15 am
Refactor JavaScript before handover in five steps: move styling to CSS, fix speed issues, put labels in a config object, use readable names, comment and sign.
Simulating array_unique in JavaScript
August 8th, 2007 at 2:09 pm
Recreate PHP's array_unique() in JavaScript using an object as a hash table, keep values of different types apart, validate input and avoid a slow second loop.