September 05, 2022
PHP: by idiots, for idiots!
PHP: by idiots, for idiots!
Recently, I have figured out PHP's motto. It is in the title. When a project's goal is to write all possible boilerplate code so that idiots will not have to, it is clearly an idiotic project. Take for example the following function:
substr_replace( array|string $string, array|string $replace, array|int $offset, array|int|null $length = null ): string|array
Instead of allowing users of fringe cases to write a simple foreach() loop they created a mess. They are terminal cases of retardation.
Their other motto is: We have a function for that! Indeed, they have intdiv(int $num1, int $num2). Facepalm.
Posted by: LinuxLies at
01:20 PM
| No Comments
| Add Comment
Post contains 106 words, total size 1 kb.
14kb generated in CPU 0.0101, elapsed 0.0564 seconds.
35 queries taking 0.0491 seconds, 127 records returned.
Powered by Minx 1.1.6c-pink.
35 queries taking 0.0491 seconds, 127 records returned.
Powered by Minx 1.1.6c-pink.