3 ms·
Using PHP is a giant step towards the past. PHP will never fully be utilized as an OO language by the vast majority of its user base due to its syntactically t
by kaiuhl 17y ago
Using PHP is a giant step towards the past.
PHP will never fully be utilized as an OO language by the vast majority of its user base due to its syntactically terrible standard library and history as a functional language.
As such, this addition makes plenty of sense.
- youngian 17y agoFunctional language? Did you mean to say procedural language? I can assure you that PHP is not a functional language (despite all my efforts to make it one).
- noodle 17y ago1) its only a step backwards if you're currently using a better language. its a step forward for other people who are way behind, or for people who have no web development experience and want to get started. it a decent and very popular learning language. if someone starts writing about goto in their php tutorials for beginners, we'll have a problem. 2) php is procedural, not functional. (edit: whoops, beaten to this punch)
- ars 17y agoPHP will never fully be utilized as an OO language because it's a stupid idea to write web pages with an OO language. Web pages are just not suited to OO. Encapsulation can be done via functions - adding OO to it gets you nothing except longer code. Making things more complicated does not make them better.
- randallsquared 17y agoI almost agree with this. I'm experimenting with Kohana for my latest code, and even though this is supposed to be the lean, fast OO framework, there's a LOT of boilerplate associated. Less than a third of my code is actually get-things-done code, as opposed to more than two thirds last time I was using a home-grown, not-especially-OO framework. Maybe some other framework does this better, though.