4 ms·
Sure PHP had a lot of catch-up to do, but they're really on a fast pace these days.
by agumonkey 13y ago
Sure PHP had a lot of catch-up to do, but they're really on a fast pace these days.
- mildtrepidation 13y agoThis is true. However, in my opinion, moving quickly is less important than changing effectively. Effective change can happen quickly or slowly, depending on the change intended and the effort required, but it's a different metric than simply moving in some direction while retaining the previous state. PHP is painful to work with for a lot of reasons. It's also very easy to work with for a lot of reasons, but in my opinion, a lot of those -- despite being considered by some to be strengths of the language -- are used, and in many cases intended, to be shortcuts to functionality a more robust language would embrace explicitly. PHP suffers from many, many failures of design. It suffers further, and worse, from an ongoing and intentional failure to address almost all of these failures. It's Frankenstein's language. If it were sentient, it would rebel and run off into some cold and inhospitable place. A fast pace is velocity. They have that. What they don't have is a good direction, and without a good direction, a long vector is at best a roll of the dice.
- Mikushi 13y agoNot sure what you are into but PHP is anything but painful to work with. It's the easiest to get started, cheapest to run, and frankly when you actually use it for what it is intended, output web pages, I fail to find better. At the end of the day, if you keep it simple you can go far without ever needing to do much maintenance and scaling. Most failure to scale I've seen come from bloated code base and code written by people who are not PHP developers.
- agumonkey 13y agoFrom a distance PHP is splitting cells. People added tools to its eco system, and practices based on pseudo-Java OOP. See PSR code style that basically forbids PHP to be PHP, no inline formatting, split lib as side-effect free and 'main' .. The people behind this movement will probably have integrated the new language construct very soon. So instead of Frankenstein I see a two-headed organism.
- astrodust 13y agoIn ten years it might actually be a first-class language. It's going to take a ferocious amount of work to shed its reputation as a web-only scripting language.
- RobAley 13y agoI refer you to http://www.phpbeyondtheweb.com http://www.phpbeyondtheweb.com
- astrodust 13y agoThe subtitle for that book could be "Just because you can doesn't mean you should". Why would anyone write non-web code in PHP? It's completely out of its element. If your selling point is "not having to learn" you're not being very fair to developers that use PHP. If you can't learn, you've got a problem. New technology comes up all the time, and if you can't adapt, you'll get left behind. Would you recommend a PHP to JavaScript converter so you can do PHP in the browser and avoid all that painful "learning"? What about "bash beyond the shell"? It's possible. Would you want to write an application in bash? Please, do not. Everything that made PHP popular and versatile is now a massive liability. Perl went through the same cycle from saviour to relic and that community has been struggling to try and reinvent itself (Perl 6) in a manner that's in keeping with today's concerns. The level of change you'd have to introduce in PHP to make it current is so staggering you may as well write a whole new language. Even the relatively modest changes made to modernize Python have caused an enormous rift.
- maratd 13y ago> shed its reputation as a web-only What? It is web-only. That's the entire point behind it. It's not a reputation, it's the goal of the project.
- blister 13y agophp5-cli is pretty robust, to be honest. It is a fairly slick server-side scripting language to integrate processing tasks inside of a normal web environment.
- romanovcode 13y agoI don't think so. It just piles up all the futures on top of old futures which just makes it more spaghetti-like. Like their OOP and Namespaces - Sure, cool that PHP has those but compared to other languages like Ruby, C#, Java, etc.. PHP implements these futures horribly.
- wvenable 13y agoOOP in PHP is pretty much the same as most other languages. And the implementation of namespaces is literally the only choice when combined with all the other existing PHP features. If you're looking for mis-features, you need better examples than these.