Any use for OOP when programming in PHP? All it seems to do is add more code. I can see it's use when programming with C++, but with PHP it's fucking useless.
Python/Perl fags, fuck off.
Name:
Anonymous2007-09-14 20:55 ID:fggkLVht
NOPE
Name:
Anonymous2007-09-14 21:16 ID:COEO4IuX
Any use for conditional expressions other than the ternary operator when programming in PHP? All it seems to do is add more code. I can see it's use when programming with C++, but with PHP it's fucking useless.
Python/Perl fags, fuck off.
Name:
Anonymous2007-09-14 21:18 ID:XnLKbDzz
I use SINGLETONS and the like, because I am an ENTERPRISE PROGRAMMER.
Name:
Anonymous2007-09-14 21:19 ID:COEO4IuX
Any use for indentation when programming in PHP? All it seems to do is add more code. I can see it's use when programming with C++, but with PHP it's fucking useless.
Python/Perl fags, fuck off.
Name:
Anonymous2007-09-14 21:29 ID:COEO4IuX
Any use for iteration when programming in PHP? All it seems to do is add more code. I can see it's use when programming with C++, but with PHP it's fucking useless.
Any use for lisp when programming in lisp? All it seems to do is add more code. I can see it's use when programming with C++, but with lisp it's fucking useless.
no u. If you can't understand why OOP is useful for things like web development then you're obviously an idiot that's never done any serious programming before. GTFO.
Name:
Anonymous2007-09-14 22:24 ID:SvMlBAIL
>>11
I use PHP for ENTERPRISE web development (unfortunately).
I didn't say anything about OOP. Just that PHP sucks huge gaping assholes.
PHP does indeed suck, but its OOP feature are necessary to write semi-decent large-scale programs with it. I work as a PHP developer and deal with a variety of projects, some using OO and some not. The ones using OO are invariably cleaner and easier to maintain. If you can't make sure of what your language gives you (even if that language is shit), you're a worthless programmer.
lol @ php developers who've never coded anything more complex than a blog.
Name:
Anonymous2007-09-15 18:32 ID:PD2Jl2kh
>>1 Any use for OOP when programming in PHP?
Yes, the lack of closures and namespaces. It works around these sometimes. Also, if you need inheritance. When I'm not concerned about namespace pollution, don't need something resembling closures or inheritance, I don't use PHP objects. PHP's object model is a failure because they tried to copy Java bullshit instead of Python.