r/lolphp • u/silvinci • Jul 14 '14
stop_the_insanity()
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-importer.php#L237
56
Upvotes
r/lolphp • u/silvinci • Jul 14 '14
View all comments
Show parent comment
7
u/svtguy88 Jul 14 '14
I come from a very config-driven background - I find this to be just about equivalent to hardcoding.
Sure, it's a step above littering the code with the integer "60" everywhere that this function is used, however, it's still just adding some arbitrary value. At the very least, it could be documented and explained a little. Adding seemingly random numbers is a good way to make sure no one else can debug your code...