I don't understand why people are dissing this. It does what it's designed to do, and fills a specific need for one website. It's not there as a teaching aid, nor is it meant to be shared for other people to use elsewhere. Not everything has to be gold-standard code full of perfect variable names, extensive comments and good whitespacing. If you have a day job that isn't primarily writing code, and/or you are likely…
> As long as the code works, anything else is just gravy.
How did you end up with this opinion? That's an unpopular opinion even when considering the qualifiers you've listed in the paragraph above.