About middleware and the reinvention of wheels.
Using existing wheels can be good or bad. I don't advocate reinventing wheels all of the time. For instance reinvented HTML filtering code makes the same mistakes over and over again, see his complaint about cross-site scripting attacks. OTOH poorly thought-out middleware is the cause of a lot of problems. So don't throw out the baby with the bathwater, but do consider carefully what wheels you will reuse.
Cheers,
Ben