Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on 35+ Techniques to enhance your php code.
There is almost no justification for any of these techniques and they don't come close to PHP best practices.
For example, "1. Do not use relative paths , instead define a ROOT path", what advantage does this provide? Use an autoloader. Furthermore:
define('ROOT' , pathinfo(__FILE__, PATHINFO_DIRNAME));
I'm going to stop there.. but just about every technique misses the point.
There are no comments on this comment yet.
There is almost no justification for any of these techniques and they don't come close to PHP best practices.
For example, "1. Do not use relative paths , instead define a ROOT path", what advantage does this provide? Use an autoloader. Furthermore:
Is completely redundant. If you move your file, you might as well just keep using your relative path.I'm going to stop there.. but just about every technique misses the point.