13 ms·
That article misses the point: PHP OO is a HORRIBLE IDEA. if you're doing OO PHP, shoot your other foot right now and go learn PHP before using it java-style.
by ludovicurbain 14y ago
That article misses the point:
PHP OO is a HORRIBLE IDEA.
if you're doing OO PHP, shoot your other foot right now and go learn PHP before using it java-style.
Why is it that every time somebody on HN explains that a technology is not suitable for a use case, it gets downvoted by fans of said technology ?
- theunraveler 14y agoWhy is PHP OO a horrible idea?
- ludovicurbain 14y agoPHP OO is broken in many ways (of which you can find a list in the blog post "php a fractal of bad design" PHP is naturally (due to it's C libs) non-OO and will thus only implement OO "that" far. Lastly, OO is not a silver bullet and is best used only in front-end, and languages that were designed with it in mind.
- theunraveler 14y ago> PHP OO is broken in many ways (of which you can find a list in the blog post "php a fractal of bad design" Agreed. Although the problem is more that PHP in general (not just its OO features) is really broken. > PHP is naturally (due to it's C libs) non-OO and will thus only implement OO "that" far. I have no idea what you mean here. AFAIK, there is nothing about C that prevents PHP from properly implementing OO principles. In fact, Ruby is written mostly in C and is completely OO. > is best used only in front-end What? > and languages that were designed with it in mind Sure, I guess...
- shakesbeard 14y agoWell, OOP in PHP seems to work rather well for thousands of large projects out in the wild - making your argument invalid.
- ludovicurbain 14y agoWell, smoking cigarettes seems to work rather well for millions of successful people out in the wild - making your argument invalid. It IS possible to make "business good" software in brainfuck, that's just not a reason to call it "not broken". See, this is about science, logic, and whether or not a feature is properly supported by a language, not about whether or not somebody managed to build and sell a solution while using that feature.
- deleted 14y ago[deleted]