3 ms·
The naming styles, the structure of the logic, the single line if statements with ternary returns, the lack of "use", the globals. Altogether it just gave me a
by ragnaruss 3y ago
The naming styles, the structure of the logic, the single line if statements with ternary returns, the lack of "use", the globals.
Altogether it just gave me a clear feeling of this isn't a person who has written a lot of modern PHP but has probably written a lot of python.
- huqedato 3y agoProbably you consider "modern PhP" is just OOP, right ?
- ragnaruss 3y agoNo, I don't. I consider modern PHP being fully typed in all places possible, tests, clear and readable code, avoid globals, and avoiding clever tricks like reflection to extract function names to autowire up routes. The reality is this is a fun toy, and great job to the developer to making it work, but presenting it as anything but that is silly. There is very little benefit to using this over individual functional php files, and certainly more foot-guns.