Zend Taking PHP In the Wrong Direction?
dvanatta writes "Is Zend taking PHP in the wrong direction? Ian Felton asks 'Why is PHP become more like Java, when the PHP developer community seems to
want anything but that to happen? What is Zend thinking?'" From the article: "Data from a Zend survey completed in June 2003 (when PHP5 was still in major development) showed that the characteristics of the PHP community didn't necessarily match up with what was developed in PHP5. For example, with the ability to list three primary programming languages, only 18% of respondents named Java."
I use PHP across a whole bunch of websites, including version 5 - how is it anything like java? Maybe I'm missing the obvious, but all the 'old' scripts I have still work pretty good - without stopping any browser for 15 seconds (java) while it does its thing.
(I did read the article too)
The future isn't here yet. It might not be all gloomy.
Come on.. ...):
FTFLOTFA (From the first line of the
"Why is PHP become more like Java..."
Give me a break. When this site links to articles as badly written as this one, it makes lots of people feel bad. Why can't devshed and other sites (including this one) do any damn proofreading or editing?
Thanks!
Andrew
In the Zend survey, 93% of respondents listed PHP as a primary language and 69% listed HTML.
People who think HTML is a programming language really have no business setting the direction of PHP.
It's simple: I demand prosecution for torture.
This article was a bit vague on the survey used to justify the entire article. Who were the people surveyed? Are they just people throwing up private websites, or are they people designing applications and featureful sites in PHP? I have written and currently maintain a fairly large project that uses PHP5's OO features quite extensively. The object oriented features are what makes PHP5 so great. It is easy to design and reuse code. I look forward to it being extended and expanded, assuming it maintains compatibility.
Beware, Nugget is watching... See?
I'm always puzzled by technology "insiders" writing about groups that are "destroying products" that "mainstream developers" want to use.
Reality check: "Mainstream developers" are people who a) pay nothing to use the software and b) have no product alliegiance whatsoever.
People are using PHP because it's useful and it's free. But being free doesn't help Zend in any way. They're changing the direction of the product slowly so that they'll eventually make some profit off of either PHP itself or PHP-addons using their server language / server engine.
My Philosophy: Unless you're paying for a product, or actively developing for the product, don't bitch when the people who *do* need money because they're the ones making the product decide they want to change it.
By the way, I use PHP quite a bit, and haven't really noticed that much of a difference from PHP4 to PHP5. Some small things, but nothing earth shattering.
Since when is HTML a programming language?
I haven't written anything in PHP5 yet, but from what I've seen, I wouldn't call it "complex". If they find it "complex", they should just stick to HTML.
Yeah, they may run Windows as their desktop OS, but that doesn't stand for anything. Sure, they might usually check out their newest scripts in their desktop, but they all pretty much end up in their server, which is probably running some *NIX.
So? As long as the engine doesn't become slow or very resource hungry, more features are always welcome; the new OO model might help someone write better (e.g. cleaner) PHP code. If you don't like the new OO model, then just don't use it.
What does Linus have to do with PHP? Why would be care what Linus would do, seriously? Also, about that section mentioning all Zend people driving fancy cars and stuff, and the company trying to profit. Of course it's trying to profit; it's a company! I don't know of any companies that don't have profit in mind. They make a good engine, so PHP is based on it. Are you telling me that that shouldn't have happened because Zend is a company? Think again..
My $0.02
People hate OOP, but complain about organization of code.
People hate writing the same things over an dover again themselves, but java has APIs for lots of things, so you don't have to do so.
So php is being pushed into an OOP direction, not a clean implementation, the APIs are being provided, ugly as they may be, and things were never unverbose/cryptic... so what's the problem again?
-
ping -f 255.255.255.255 # if only
Why is PHP become more like Java, when the PHP developer community seems to want anything but that to happen?
;-)
That's because most of the PHP programmers are uneducated writers of throw-away code. They are people who use PHP because they can make dynamic pages without needing to really learn anything; people who mix HTML and SQL; people who never bother to check for errors; people who think register_globals was a great idea, because they didn't have to type "complicated statements" like echo $_POST['somevar']; and the list goes on and on.
The most common argument I hear against PHP becoming more like Java is that now there are so many new things you need to learn. But this is not due to changes in the language making it harder to write crappy code - that's just as easy as it was before. The main reason for needing to learn new stuff seems to be the increasing number of competent programers in the PHP community who put pressure on the incompetent ones, who in turn pound their little fists on the table and cry that PHP is acquiring too many features from other languages. I'm sorry, but knowing the difference between "if" and "for" statements does not make you a programmer.
Ripping off Java is probbably the only real chance for PHP to be taken more seriously in the business world. After all, it worked for C#.
When we upgraded to the latest version of PHP, which also required a Zend upgrade, several of our applications wouldn't work. I have reason to believe there's a serious bug in the Zend engine which has crippled some functionality of PHP. We're still waiting for a fix so we can upgrade to a more secure version of PHP.
If a piece of shit flies west at 60 miles per hour, is it going in the wrong direction?
-Laxitive
If such a small number of PHP users were involved with Java, what was the motivation to mimic Java's object model and move toward making PHP coupled to Java?
/. article. I'd be lying if I said it's been easy to learn. It hasn't. I'm not used to object oriented programming, and Ruby is pure OO. But even I can see at this stage of the game that Rails apps will be far easier to develop, maintain and make changes than similar code in Java or PHP. Rails still has performance hurdles to get over, but it's developing so fast that I'm sure it will match Java & PHP's speed (the framework's only been around for less than a year). Because Rails takes full advantage of the Ruby language, it's not something that will be ported to PHP or Java.
The Answer: MONEY.
PHP has become popular because it's easy to get started. Just cut and paste some scrap code in your HTML and you're in business. However, that same approach to building the language has led to a rat's nest of functions, without a whole lot of consistency. Although PHP's got one of the best documentations free on the web, in the long run if you scale your applications up you're going to need to put in a lot more elbow grease to make changes and maintain your code. Zend will be creating a market where maturing web applications will need the performance gains of their products.
So what's the alternative? I've been learning Ruby and the webframe work Ruby on Rails after reading a recent
"Give 'em the razor, then sell 'em the blades" That's PHP and Java. Magically remove facial hair so you never have to shave again, that's Ruby and Ruby on Rails.
Ruby on Rails Screencast
This article is FUD, pure and simple.
Everything added in PHP 5 has no effect at all on the casual or professional PHP programmer. They can go about writing their code exactly as they did with PHP 4, and PHP 3. That's because the PHP Group (the folks that develop the PHP product, not Zend) work very diligently (to some peoples' dismay) on ensuring as much backwards compatibility as possible.
All of the (very useful) OOP technology added in PHP 5 will help to push PHP into the enterprise market and allow business to build large apps using PHP. It's certainly not everything the enterprise will need, but it's a start. NONE of these additions make it any more complex for a PHP 4 user. ALL of the additions help make it possible to create well-designed web applications, though.
I used to have some respect for devshed.com because they always had interesting articles. The articles were a useful resource and quite helpful. I just don't understand why they're posting whining rants like this which do not help anyone in any way. Let this guy post it on his blog and be ignored like he should be.
Sadly, this is not the first time Mr. Felton has written an article like this.
Gabriel Ricard