Slashdot Mirror


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."

19 of 155 comments (clear)

  1. Bad writing by musselm · · Score: 5, Informative

    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

    1. Re:Bad writing by drakethegreat · · Score: 3, Insightful

      Exactly. For a good example, take spreadfirefox.com for instance. Currently there is an article about cnet's take on IE 7 and Firefox and Asa asks people to state their opinions for the media or others who might be reading this to get an idea about what the Mozilla Community is like. Well I was reading most the comments and every single one had a HUGE grammatical mistake. Now in most situations I don't proof read my comments such as a case like this but when someone tells me my comments will be read by a great number of people and influence the way Firefox looks to others then I would be a little bit more serious.

      Neways ya PHP is nothing like Java. I've been using it for 7 years and if they mean by OOP that its more like java then they aren't too clever because PHP isn't making OOP the required way of programming or anything. They are simply providing people with more options to program and they still allow people to choose what they want. People still find OOP scary it would seem and although there are arguments for an against it, I think its up to the individual if they want to use it and that seems to be the way the PHP development is taking it.

    2. Re:Bad writing by 0x461FAB0BD7D2 · · Score: 3, Insightful

      Because content is far more important than grammar.

      In any case, for those mistakes that have been corrected, you wouldn't know about them. It's only the mistakes that stand out, which skews the viewpoint.

      Humans are imperfect. Even Clippy can't help sometimes.

    3. Re:Bad writing by musselm · · Score: 3, Funny

      Clippy is an editor for Devshed and Slashdot!
      If that were true, all news articles would be in the form of letters.


      "It looks like you're trying to bitch about grammar on slashdot again! Do you want some help?"

      :)

  2. Popular direction != right direction by sfjoe · · Score: 5, Insightful

    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.
    1. Re:Popular direction != right direction by Nos. · · Score: 3, Insightful

      Thats my take but I wouldn't expect the php community (at least not the development part of it) to know what true programming is like. Well at least not a majority of it for sure.

      I don't think categorizing a group of people's knowledge of programming based on a language they use is fair or in any way accurate. I know a lot of people who use a lot of different languages, including PHP. Just because someone uses PHP to create a dynamic webpage does not imply that they are not capable of writing incredibly complex and bug free programs in PHP and/or other languages. I could make a statement that C programmers don't program with security in mind since we've seen so many buffer overflows. It doesn't make it accurate or even remotely true.

  3. I *like* the OO. by drdink · · Score: 4, Interesting

    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?
  4. Zend wants to make money? by Ieshan · · Score: 4, Insightful

    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.

  5. Some points... by cmad_x · · Score: 5, Insightful
    In the Zend survey, 93% of respondents listed PHP as a primary language and 69% listed HTML.

    Since when is HTML a programming language?

    why would they put so much effort into making PHP a complex, object-modeled 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.

    As a matter of fact, 85% of PHP users were running Windows as their desktop operating system.

    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.

    A hypertext preprocessor doesn't require an object model as complex as Java, especially when hardly any members of the community use Java

    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 would Linus do?

    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
    1. Re:Some points... by T-Ranger · · Score: 3, Insightful

      HTML == Hypertext Markup Language
      The question diddnt ask for "primary programming language" it asked for "primary language". There are (apparently, from the survey) pleanty of web designers whose primary langage is HTML who use PHP. Or, there are pleanty of PHP users whose primary system is HTML. The point is that a large chunk of the userbase of PHP are not "programmers", but web developers. Making PHP more like Java makes PHP easier to pick up and use for Java developers. Which is great, if you a Java developer, but most of the PHP users are first HTML hackers.

  6. What's with the hate.. by sporty · · Score: 3, Insightful
    People hate java 'cause it's overly verbose, but complain that languages like perl look like line noise.


    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

    1. Re:What's with the hate.. by afd8856 · · Score: 3, Interesting

      I nice choice is python. Really easy to learn, really powerfull, runs on jvm (jython), has extremely powerfull web development tools (zope & plone, that's what I'm using, but there are more), is a general purpose language, meaning you won't get stuck to just webdevelopment, and is "mainstream" enough to have bindings to any major library.

      I love it, so I fully recommend it. Actually, I was programming PHP for my websites until I've realized that my knowledge and experience of PHP will not be usefull in most other cases. So I've switched to python & zope and now I'm already on my 3d contract (I work for myself) using these tools. I didn't knew about drupal or xoop back then and I was dizgusted with postnuke and phpnuke (I don't remember which one is supposed to be GPL but you're not allowed to remove the credits at the bottom. Haha!)

      So, if you're doing webdevelopment, do yourself a favor and visit plone.org . It might be tough learning it the first 2-3 months, but from there life is easy :)

      Sorry for my "Engrish", I'm not native speaker.

      --
      I'll do the stupid thing first and then you shy people follow...
  7. PHP programmers by InsaneCreator · · Score: 4, Insightful

    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#. ;-)

  8. Re:I don't get it by hey! · · Score: 3, Interesting

    Unless you have or would like to have OO code, you really don't notice it other than some of the PHP internal functions being moved into classes.

    Yes, this article struck me as a relgious rant. For example:

    Zend has maneuvered PHP so that other companies who are in the enterprise software business consider it a legitimate language...

    Surely, this is a good thing for PHP users, at least for their employment prospects. In any case, it sounds to me like they're following the "make simple things simple, make complicated things possible" philosophy.

    WRT to Java, I'm not sure at all what the author's dislike of Java has to do with anything at all. It seems to me that having PHP as a presentation layer choice for hypertext processing in a Java system would also be a good thing.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  9. Something to consider by Laxitive · · Score: 4, Funny


    If a piece of shit flies west at 60 miles per hour, is it going in the wrong direction?

    -Laxitive

  10. Re:I don't get it by ERJ · · Score: 3, Insightful

    without stopping any browser for 15 seconds (java) while it does its thing.

    Just to clear up what seems to be a more common misconception then it should.

    The author of the article is not referring to client side java (applets) but instead to server side java (jsp, servlets, j2ee). Server side java returns html just like php, perl, asp it just uses java as the processing language.

  11. Re:I don't get it by 'The+'.$L3mm1ng · · Score: 3, Insightful

    Once compiled, a JSP may actually respond faster than PHP without a compiler cache. A delay should only occur when the file is accessed for the first time. Which is usually done by the developer, though that surely makes me favour PHP over JSP. Having to wait a couple of seconds everytime you make a change sucks.

  12. Re:I don't get it by snorklewacker · · Score: 3, Informative

    > Having to wait a couple of seconds everytime you make a change sucks.

    Solution: use jikes instead of javac to recompile your JSPs. It's blazing fast. I know resin makes this dead simple, but it should be doable on tomcat. Heck, resin will even automatically recompile your servlets and EJBs, deployment descriptors and all (if you use xdoclet for them). You hardly ever have to manually rebuild. It's almost as nice as using ASP.NET.

    --
    I am no longer wasting my time with slashdot
  13. FUD by gabe · · Score: 4, Interesting

    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