Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PHP 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.



I 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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: