News for hackers. Stuff that matters.
Re:An Exceptional Change in PHP 7.0 by oldmanjay on Monday October 05, 2015 @05:50PM (#10335245)
I just don't get why, of all the OO systems out there to inspire an engineer, the PHP people picked Java.
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.
Re:An Exceptional Change in PHP 7.0 by e12e on Monday October 05, 2015 @08:20PM (#10335975)
You could say that PHP == "static language", even if you maybe can't say PHP === "static language"?
Re:An Exceptional Change in PHP 7.0 by wvenable on Monday October 05, 2015 @10:35PM (#10336445)
That's a disturbingly clever way of putting it. :)
Re:An Exceptional Change in PHP 7.0 by vruiz on Monday October 05, 2015 @06:06PM (#10335356)
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?

Re:An Exceptional Change in PHP 7.0 by oldmanjay on Monday October 05, 2015 @07:33PM (#10335747)
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.

Re:An Exceptional Change in PHP 7.0 by durrrrrrr on Monday October 05, 2015 @08:21PM (#10335979)
Same thing as before, you've stated it's ugly, but haven't given any specific examples of why you think this.
Re:An Exceptional Change in PHP 7.0 by betenoire on Monday October 05, 2015 @08:23PM (#10335994)
do we really need to see bad java examples to understand his opinion?
Re:An Exceptional Change in PHP 7.0 by smt88 on Monday October 05, 2015 @08:46PM (#10336082)
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. :)
Re:An Exceptional Change in PHP 7.0 by durrrrrrr on Tuesday October 06, 2015 @07:35PM (#10343171)
Yes. Just some general points or examples.
Re:An Exceptional Change in PHP 7.0 by wvenable on Monday October 05, 2015 @06:19PM (#10335429)
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.

Re:An Exceptional Change in PHP 7.0 by debacle on Monday October 05, 2015 @09:50PM (#10336320)
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.

Re:An Exceptional Change in PHP 7.0 by agumonkey on Monday October 05, 2015 @07:14PM (#10335674)
Indeed, a few years ago Paul Biggar (CircleCI) tried to compile PHP extensively and said it was far too dynamic to do "good" compilation (I'm distorting his words a lot here).
Re:An Exceptional Change in PHP 7.0 by vpkaihla on Monday October 05, 2015 @09:57PM (#10336335)
Because it was familiar to them and they didn't bother to research more. That applies to a lot of decisions the PHP folks have made in the past.

Who knows, perhaps it's one of the biggest reasons they're so successful, however much we who know better dislike that.

Re:An Exceptional Change in PHP 7.0 by kodablah on Monday October 05, 2015 @06:10PM (#10335372)
It has been picked for a long time now, so it is hard to put yourself in the heads of the designers at that time. Having said that, PHP OO (like C#, ActionScript, etc at that time) was probably inspired by Java for pragmatic reasons.