Re:An Exceptional Change in PHP 7.0
by wvenable on Monday October 05, 2015 @06:00PM
(#10335313)
PHP is much more of a static language than a dynamic one. Therefore it has more in common with Java/C++ than with Python, Ruby, or JavaScript. It's also a very pragmatic choice for an OO system.
[ Parent
| on HN ]
You could say that PHP == "static language", even if you maybe can't say PHP === "static language"?
That's a disturbingly clever way of putting it. :)
PHP wasn't always what it is now, that's OPs point. They are where they chose to go. Probably in the search of legitimacy, they chose to follow the most enterprisey language.
Re:An Exceptional Change in PHP 7.0
by Someone1234 on Monday October 05, 2015 @06:11PM
(#10335377)
But you, like the OP, fail to communicate exactly WHY this is a bad thing. You just take it for granted that your point stands on its own without an explanation.
Why NOT Java?
Java is a fairly ugly OO system, basically. It's purely my opinion, of course, but not an uncommon one.
Since I don't have to use PHP I'm not too upset. I was really just lamenting the state of the world.
Same thing as before, you've stated it's ugly, but haven't given any specific examples of why you think this.
do we really need to see bad java examples to understand his opinion?
Just because a language is used to write bad code doesn't mean the language design itself is bad.
Re:An Exceptional Change in PHP 7.0
by KennyCason on Monday October 05, 2015 @09:39PM
(#10336279)
Exactly. I've seen beautifully written Java and I've seen (and written) ugly Java. The language syntax is by far the least contributing factor to the 'prettiness' of the code. With the exception of BF. :)
Yes. Just some general points or examples.
I personally feel like PHP OOP is much more like C++. It's just not surprising that two high-level languages based on C++ end up near the same place.
PHP is heavily based on C so choosing to make it's OOP features like C++ isn't a big leap.
Plus PHP is still far less enterprisey than Java so maybe the OO model isn't the real issue.
Yeah I really miss the good old days of PHP3.
/s
Zend has made a lot of good decisions (and a few painful but livable bad ones) over the last decade.