Guest User

Untitled

a guest
Sep 29th, 2018
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 KB | None | 0 0
  1. /*
  2.  * This is a warning to any poor soul who may have to deal with this code.
  3.  *
  4.  * I took over this criminal piece of chaos from a monkey named Joel who I
  5.  * assume had been given a typewriter by Mephistopheles himself. For reasons
  6.  * I have yet been unable to fathom, he decided to patch together this thing
  7.  * using a BaseX setup hardwired into an unfixably broken Manjaro VM, queried
  8.  * by a handwritten plate of uncommented PHP spaghetti fit to feed an army
  9.  * of people with a serious death wish, without any framework or CMS.
  10.  * The very long BaseX script, very long PHP presenter and very long XSLT
  11.  * stylesheet mostly perform the same heuristic document structuring for
  12.  * different components and are supposed to produce compatible results, but I
  13.  * bet they have mismatches somewhere.
  14.  * Since Prof. T just wanted a few small functional enhancements, I decided
  15.  * to just patch it and keep the general setup. Unless you were hired to
  16.  * correct some spelling mistakes, DO NOT FOLLOW IN MY STEPS. Putting up with
  17.  * this simulation of how a goldfish would design a system has literally
  18.  * given me CLINICAL DEPRESSION. This is not an exaggeration, I am writing
  19.  * this after a prolonged medical therapy - mostly successful, thanks for
  20.  * asking, but not fun. I wouldn't wish this code on anybody who isn't a
  21.  * manager at Oracle or Facebook, and therefore give you this sincere advice:
  22.  *
  23.  * Nuke this. Take the XSLT if you must, and then nuke the app and recreate it
  24.  * in Django or whatever works for you. I would do it myself, but I risked a
  25.  * relapse simply by opening this file again to write this comment.
  26.  * Dear brother or sister, I wish you all the luck and strength in the world
  27.  * and hope it will be enough.
  28.  * Farewell.
  29.  */
Add Comment
Please, Sign In to add comment