Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
PHP Programming

Zend Taking PHP In the Wrong Direction? 155

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."
This discussion has been archived. No new comments can be posted.

Zend Taking PHP In the Wrong Direction?

Comments Filter:
  • Comment removed (Score:3, Insightful)

    by account_deleted ( 4530225 ) on Wednesday February 16, 2005 @12:45PM (#11689601)
    Comment removed based on user account deletion
  • by sfjoe ( 470510 ) on Wednesday February 16, 2005 @12:47PM (#11689623)
    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.
  • Re:Bad writing (Score:3, Insightful)

    by drakethegreat ( 832715 ) on Wednesday February 16, 2005 @12:55PM (#11689718) Homepage
    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.
  • by drakethegreat ( 832715 ) on Wednesday February 16, 2005 @12:58PM (#11689747) Homepage
    My guess is that a lot of them are people who got into PHP because they ran a simple static site so they went to PHP to make it dynamic and they don't know what programming is. 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.
  • by Ieshan ( 409693 ) <ieshan@g[ ]l.com ['mai' in gap]> on Wednesday February 16, 2005 @01:05PM (#11689825) Homepage Journal
    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.
  • by Nos. ( 179609 ) <andrew@th[ ]rrs.ca ['eke' in gap]> on Wednesday February 16, 2005 @01:08PM (#11689859) Homepage

    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.

  • Re:Bad writing (Score:3, Insightful)

    by 0x461FAB0BD7D2 ( 812236 ) on Wednesday February 16, 2005 @01:08PM (#11689864) Journal
    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.
  • Some points... (Score:5, Insightful)

    by cmad_x ( 723313 ) on Wednesday February 16, 2005 @01:09PM (#11689872)
    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
  • by ignatzMouse ( 447031 ) <ignatzmouse&pobox,com> on Wednesday February 16, 2005 @01:12PM (#11689905) Homepage
    Exactly... and just as importantly it's easy to not use them if you don't want to. PHP used to have a pretty clunky object model. They improved it. So?
  • by sporty ( 27564 ) on Wednesday February 16, 2005 @01:14PM (#11689927) Homepage
    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?

  • PHP programmers (Score:5, Insightful)

    by InsaneCreator ( 209742 ) on Wednesday February 16, 2005 @01:15PM (#11689956)
    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#. ;-)
  • by JimDabell ( 42870 ) on Wednesday February 16, 2005 @01:32PM (#11690182) Homepage

    Well, it's writing code to invoke a responce.

    No it isn't. It's marking up text to describe the document structurally and semantically.

    An HTML tag is merely the start of a structure, it isn't an instruction to a browser. Think "this is a paragraph", not "leave a vertical space"; think "this is a heading", not "increase the size of the text".

  • by JimDabell ( 42870 ) on Wednesday February 16, 2005 @01:43PM (#11690333) Homepage

    So php is being pushed into an OOP direction

    That's just it - it isn't. PHP has made significant improvements to their object model in the 4.x and 5.x versions for those people that choose to use it. Everybody who doesn't like object-oriented programming can simply carry on using their own style and it doesn't affect them at all.

  • by Anonymous Coward on Wednesday February 16, 2005 @01:50PM (#11690434)
    Pointing out the different between a program and a document is hardly pedantry.
  • Re:I don't get it (Score:4, Insightful)

    by ERJ ( 600451 ) on Wednesday February 16, 2005 @02:16PM (#11690750)
    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.
  • by Fletch ( 6903 ) * <fletchNO@SPAMpobox.com> on Wednesday February 16, 2005 @02:31PM (#11690919) Homepage
    "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.


    The article says 93% listed it as a "primary language." Not, as a "primary programming language." You do know what the L in HTML stands for, don't you?
  • Re:I don't get it (Score:3, Insightful)

    by eyeye ( 653962 ) on Wednesday February 16, 2005 @02:42PM (#11691046) Homepage Journal

    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.


    Java is not only something that runs as an applet in your browser - its a programming language that can run server side too, ever heard of JSPs or tomcat?
  • Re:I don't get it (Score:3, Insightful)

    by 'The '.$L3mm1ng ( 584224 ) on Wednesday February 16, 2005 @03:01PM (#11691293)
    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.
  • Re:I don't get it (Score:3, Insightful)

    by caseih ( 160668 ) on Wednesday February 16, 2005 @04:16PM (#11692253)
    No you don't get it. When people say "java" they mean programming the web sites in java on the server, not using java in the browser. You probably have used many java-driven web sites without knowing it, since the java runs entirely on the server and simply serves up web pages. The arguement is over whether php's feature set is becoming too much like java and thus pushing us into java-style techniques and frameworks for app design.
  • Re:Some points... (Score:4, Insightful)

    by T-Ranger ( 10520 ) <jeffw@NoSPAm.chebucto.ns.ca> on Wednesday February 16, 2005 @05:07PM (#11692820) Homepage
    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.
  • Re:I don't get it (Score:2, Insightful)

    by CoolCat ( 594452 ) on Wednesday February 16, 2005 @05:29PM (#11693077)
    How the hell does serverside java make your browser load for 15 seconds??
  • Re:I don't get it (Score:3, Insightful)

    by angel'o'sphere ( 80593 ) <angelo,schneider&oomentor,de> on Wednesday February 16, 2005 @05:51PM (#11693301) Journal
    I don't get it either ....
    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.


    How can a browser be stopped for 15 seconds when you use Java on the server, like PHP?

    Ah, you probably mean Java as Applet on a client?

    But .... Java on the client and PHP on the server? Thats not the same league, granted .... but IMHO its not even the same game.

    angel'o'sphere
  • Re:I don't get it (Score:2, Insightful)

    by chaves ( 824310 ) on Thursday February 17, 2005 @12:39AM (#11696758)
    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

    Are you talking about Java applets (and the time the VM takes to be loaded by the browser)? Java applets play a *very* minor role in today's Java picture. Java is used much more often on the server side, running in the web server (generating web pages as PHP does), or in application servers (implementing business logic and doing database transactions). Java has got a lot of momentum in the last 5-6 years. Making PHP more easily integrated with Java will enable it to fit into that picture, probably being a better choice than using Java itself for generating web pages. Not mentioning the huge number of Java libraries (for every application you can think of) - if PHP could call Java code without compromising performance, all those libraries would be readily available for use in PHP scripts.

    --
    Lose your sig in two weeks - ask me how!

An authority is a person who can tell you more about something than you really care to know.

Working...