3 ms·
Not many write PHP code like this anymore, except for perhaps some small one off projects or legacy. The reason is that it gets incredible hard to maintain, an
by djxfade 4y ago
Not many write PHP code like this anymore, except for perhaps some small one off projects or legacy.
The reason is that it gets incredible hard to maintain, and almost impossible to test.
- hakre 4y agoif impossible to test certainly incredibly done wrong, yes and therefore to maintain. but I naturally know what you mean but its not that it must be that way. and at least there is still the one file for the entry-point. but not every entrypoint needs to have equally much bootstrapping code brought up just to process a request.