3 ms·
and yet it moves PHP is a product of evolution. It's not nice but it's incredibly well adapted. Instead of complaining about how ugly it is people should be r
by scotty79 15y ago
and yet it moves
PHP is a product of evolution. It's not nice but it's incredibly well adapted.
Instead of complaining about how ugly it is people should be researching why it flourished and make sure that they introduce the same qualities in their designed systems.
I have few guesses what might these qualities be.
- Script serves one request and dies. Problems are limited in time and range. They most likely won't bring your app down.
- You have universal data structure, ordered dictionary with lots of functions that operate on it and some additional features for numeric keys.
- you have php.net/name_of_the_function which gives you description of the function and it's parameters, return values with comments and examples of use from the users.
- getting things sent by browser is extremely easy, sending stuff to browser is even easier.
- if you want to do something, functions that will help you are there because someone needed that before you and just added them there. And it's not in some obscure package that you have to download from God knows where. It's in the core and it's most likely only one of it.
You can dissect a rat and complain how ugly it is but it will still eat your lunch.
All the elegance of other languages are not that important.
99% of software development is not architectonic cathedrals. It's telling your slave what you want from him.
Also 78% of the statistics are bogus including this one.