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

155 comments

  1. I don't get it by digitalchinky · · Score: 2, Insightful

    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.

    1. Re:I don't get it by drdink · · Score: 2, Informative

      I believe the article is talking about the zoo of new OO features in PHP5. 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. Take a look at the object oriented parts of the PHP Manual.

      --
      Beware, Nugget is watching... See?
    2. 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.
    3. 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.

    4. Re:I don't get it by eyeye · · Score: 2, Insightful

      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?
      --
      Bush and Blair ate my sig!
    5. 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.

    6. Re:I don't get it by PickyH3D · · Score: 1

      What is your point? JSP is insanely slow compared to anything other than ColdFusion.

    7. Re:I don't get it by caseih · · Score: 2, Insightful

      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.

    8. 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
    9. Re:I don't get it by VultureMN · · Score: 1

      Bull. I've done a lot of PHP, and am currently doing a lot of Java (JSP, Servlets). Once the JSP is compiled for the first time, the response time is not noticably different than using PHP or Perl or anything else.

    10. Re:I don't get it by CoolCat · · Score: 2, Insightful

      How the hell does serverside java make your browser load for 15 seconds??

    11. Re:I don't get it by angel'o'sphere · · Score: 2, Insightful

      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

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    12. Re:I don't get it by Tet · · Score: 2
      Having to wait a couple of seconds everytime you make a change sucks.

      Just having a compiler installed on your public facing production machine is a huge faux pas in the first place. Yes, it's possible to procompile everything before you deploy it, but it's a pain in the ass...

      --
      "The invisible and the non-existent look very much alike." -- Delos B. McKown
    13. Re:I don't get it by digitalchinky · · Score: 1

      Thanks for all the replies, I did mean java applets - am now enlightened on the internal workings of PHP.

    14. Re:I don't get it by chaves · · Score: 2, Insightful
      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!
    15. Re:I don't get it by Anonymous Coward · · Score: 0

      Yes, it's possible to procompile everything before you deploy it, but it's a pain in the ass...

      Not on Websphere, where there's a simple checkbox for precompiling JSPs.

    16. Re:I don't get it by PickyH3D · · Score: 1
      Are you doing any data manipulation? I have never seen a JSP page perform as well as PHP, let alone ASP.NET pages in identically designed pages.

      If JSP's performance was to improve, then I would be one of the first to jump ship. Currently, PHP and ASP.NET hold my development interests because both are very fast with ASP.NET noticeablely faster and they can do everything I need done.

    17. Re:I don't get it by Anonymous Coward · · Score: 0

      i don't really understand why people think having a compiler on the box is such a bad thing.

      it might save the cracker a little bit of time but probablly not much once they are at the point they can run things like compilers they can almost certainly find a way to download one too.

    18. Re:I don't get it by nick-less · · Score: 1

      Are you doing any data manipulation? I have never seen a JSP page perform as well as PHP, let alone ASP.NET pages in identically designed pages.

      I've never seen a PHP page or ASP.NET performing as well as JSP in identically pages.
      And I bet, we both are right, each of the named languages can be very fast, if using in a right way and very slow if used a wrong way.
      Most things tend be complex these days, you know...

    19. Re:I don't get it by rjshields · · Score: 1

      JSP is insanely slow

      I call bullshit. The hotspot JIT VM runs java mostly as fast as C++ and faster in some cases. Can you say the same for PHP, an interpreted scripting language? I think not.

      --
      In this world nothing is certain but death, taxes and flawed car analogies.
    20. Re:I don't get it by PickyH3D · · Score: 1
      I won't say it of PHP in every scenario, but in every case I have seen and done, PHP has out performed JIT quite easily. Time and time again, I am amazed by the speed of which PHP not only parses files, but then interprets and executes them. Also, I do not believe the Java code is faster than the C++ code even with little benchmarks people like to run; I have never seen it in a real development environment. The native compilation may result in almost as fast as C++ code, but I would not put it in front of C++ code in terms of speed. Of course, speed is not the only judge of a good product or language, so do not misinterpret what I am saying here.

      I would put the Hotspot JIT VM against ASP.NET any day of the week. The idea of the Hotspot code generation is rediculous. The initial step was revolutionary, and well engineered to significantly increase performance (it executes the bytecodes WHILE it compiles to 'heavily optimized' native code for code it deems as heavily reused). However, the next step is that the VM monitors the code and then may possibly DISCARD the optimization and revert back to the bytecode execution. There are tons of scenarios where you will hit a cycle of user interaction that will require the regeneration of the code.

      Now, I accept the idea that it excecutes the bytecodes as it runs the native compilation, but many people are led to believe this in and of itself has no performance impact, when infact it does. Furthermore, the bytecode execution is slow by itself, let alone with the compilation stealing ticks away on its own little thread. Should this only ever possibly be done once, then it would be a more than acceptable issue to wait for, but to face a regeneration is just insane and wasteful.

      Ya, I agree, that was a waste of a rant.

  2. 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 drdink · · Score: 1

      The worst part was the What would Linus do? section. Apparently everybody now has to model their life and business model after Linus Torvalds.

      --
      Beware, Nugget is watching... See?
    2. 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.

    3. Re:Bad writing by Anonymous Coward · · Score: 0

      Maybe you should proofread your comments. That was awful.

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

    5. Re:Bad writing by musselm · · Score: 1

      Because content is far more important than grammar.
      But good content with excellent grammar is far superior to so-so content with lame writing.

      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.
      But when mistakes stand out so boldly, it would stand to reason that more proofing/editing could have helped.

      Humans are imperfect. Even Clippy can't help sometimes.
      Aha! That explains it: Clippy is an editor for Devshed and Slashdot!

    6. Re:Bad writing by 0x461FAB0BD7D2 · · Score: 1

      But when mistakes stand out so boldly, it would stand to reason that more proofing/editing could have helped.
      I suppose it has to do with getting the stories out asap.

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

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

      :)

    8. Re:Bad writing by gallen1234 · · Score: 1

      Bad grammar interferes with content. When I read a malformed sentence like the one mentioned by the grandparent it's jarring. Having to stop and try to recreate the author's meaning completely disrupts the flow of the content. If it happens repeatedly I usually end up not even finishing the piece.

    9. Re:Bad writing by Anonymous Coward · · Score: 0

      That reads more like English isn't the native language of the speaker. I run into that idiom a lot with non-native speakers (mostly latin-language speakers ... Russians and Japanese speakers have their own common grammatical errors).

      Don't get me wrong, the article is still trash, but that's not a very good reason why.

    10. Re:Bad writing by Anonymous Coward · · Score: 0

      agreed.

    11. Re:Bad writing by Anonymous Coward · · Score: 0

      When this site links to articles as badly written as this one, it makes lots of people feel bad.

      Isn't it supposed to be poorly written, instead of badly written.

    12. Re:Bad writing by Anonymous Coward · · Score: 0

      Because it has to match most of the poorly worded documentation in other php stuff like PEAR. I find that nothing diminishes my confidence in the quality of those sorts of libraries more than the poor grammar of the authors...irrational but true. Reminds me too much of the f*cking russians I used to work with.

  3. 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 drakethegreat · · Score: 2, Insightful

      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.

    2. Re:Popular direction != right direction by Leroy_Brown242 · · Score: 0

      Well, it's writing code to invoke a responce. So, in a way it's programming. But, yeah . . . .

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

    4. Re:Popular direction != right direction by JimDabell · · Score: 2, Insightful

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

    5. Re:Popular direction != right direction by Anonymous Coward · · Score: 0

      Why does it not surprise me that you have a livejournal?

    6. Re:Popular direction != right direction by Leroy_Brown242 · · Score: 0, Troll

      Main Entry: pedantic
      Pronunciation: pi-'dan-tik
      Function: adjective
      1 : of, relating to, or being a pedant
      2 : narrowly, stodgily, and often ostentatiously learned
      3 : UNIMAGINATIVE, PEDESTRIAN

    7. Re:Popular direction != right direction by Anonymous Coward · · Score: 2, Insightful

      Pointing out the different between a program and a document is hardly pedantry.

    8. Re:Popular direction != right direction by haluness · · Score: 1

      Actually its not pedantic - you might want to call it subtle. But markup is *quite* different from instructions.

      Essentially markup tells the browse what type of thing some text is - it says nothing as to what should be done with the text.

      Of course, you can call this some form of instruction, but that would muddy the definitions.

      Precision is nice

    9. Re:Popular direction != right direction by fm6 · · Score: 1

      I don't understand. PHP turns web pages into little programs. If you're not happy with that idea (I admit I'm not), why do you use PHP at all?

    10. Re:Popular direction != right direction by Leroy_Brown242 · · Score: 0

      "but that would muddy the definitions."

      Verbing weirds language!

    11. Re:Popular direction != right direction by Anonymous Coward · · Score: 0

      Main entry: inaccurate
      Pronunciation: 'lih-roy-braun-'too-foah-'too
      Function: adjective
      inaccurate
      1: not accurate
      2: not precisely accurate [syn: inexact]
      3: containing or CHARACTERIZED BY ERROR [syn: erroneous]

      Hint: words have meanings, and requesting people to use them with generally accepted meanings permits this wonderful thing called "communication". Using words with the wrong meanings causes an unpleasant thing called "misunderstandings". Calling something a programming language when it is not a programming language falls into this latter category.

    12. Re:Popular direction != right direction by haluness · · Score: 1

      Muddying is considered a transitive verb - but in general you're right :)

      Sorry for the nitpick

    13. Re:Popular direction != right direction by Fletch · · Score: 2, 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.


      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?

    14. Re:Popular direction != right direction by Khazunga · · Score: 1
      Well, it's writing code to invoke a responce. So, in a way it's programming. But, yeah . . . .
      Is it Turing-complete? No? Then it isn't a programming language in any way.

      Simple enough...

      --
      If at first you don't succeed, skydiving is not for you
    15. Re:Popular direction != right direction by sfjoe · · Score: 1

      The article says 93% listed it as a "primary language." Not, as a "primary programming language."

      The article is addmittedly poorly written, however, they do use the phrase, "primary programming language". From the 4th paragraph:

      "For example, with the ability to list three primary programming languages, only 18% of respondents named Java. It was named a primary programming language, on average, 18 times out of 300 possible chances. "

      No, I don't know what the 'L' stands for. Please tell me.

      --
      It's simple: I demand prosecution for torture.
    16. Re:Popular direction != right direction by MammyNun · · Score: 1

      IMHO there is a big difference between "language" and "programming language". And there is a reason its not HTPL instead of HTML, right?

    17. Re:Popular direction != right direction by Hard_Code · · Score: 1

      If one doesn't understand that idea then it's possible one isn't dissatisfied with it. I suspect a lot of PHP is isn't even by /programmers/ per se, but merely people who want a "dynamic web page" and discover they can add some PHP snippet and off they are on their programming careers.

      --

      It's 10 PM. Do you know if you're un-American?
    18. Re:Popular direction != right direction by fm6 · · Score: 1

      I guess I agree with your statement. But it does nothing to answer my question.

    19. Re:Popular direction != right direction by Anonymous Coward · · Score: 0

      Turing-completeness isn't a definition of a programming language, it's something a language can be. There are a lot of useful languages that aren't Turing-complete. For example, languages that are used in modelling for formal verification usually aren't, because some verification problems are unsolvable for Turing-complete languages.

    20. Re:Popular direction != right direction by aled · · Score: 2, Interesting

      I guess I'm going to flamed/modded down but...

      Isn't PHP the Visual Basic of this age? it's easy, it's dirty, it's quick to do simple apps.

      --

      "I think this line is mostly filler"
    21. Re:Popular direction != right direction by angel'o'sphere · · Score: 1


      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.

      Yo are right, but I dont think the post you refer to wanted that to imply. (The rest of your comment is quite fine as well)

      IMHO the poster ment: typical first step programmers (some guy with a computer and basic HTML knowledge) probably chooses PHP because he has heared it is dead simple.

      So, now consider one is writing a software to sell tickets for a collage sports stadium (football or something).

      Probably pretty easy to start in PHP, probable even manageable to get it set up that you can sell some 5000 tickets over a weekend.

      Now you have very likely a guy or team who abused everything they could to just get the work done, because they likely hav no clue about enterprise application design.

      But that is no problem so far.

      Imagine now the application is "successfull".

      Successfull means: it works, people like it, more people see it, more people want it, it spreads, It spreas into markets where it is not designed for, it fails. People want to adapt it and make it more successfull.

      Example, the whole NBA likes to buy the application and use it for their ticket selling. Wow, now yo have a problem ....
      Instead of some 500 or 5000 tickets every weekend (or over the week before) you have now probably some 10000 visitors every hour and some 5000 sells every hour.

      Now, the big question: what would YOU do now? Rewrite it from scratch in Java, Perl, Python? Stick to the PHP and redesign it or writing it from scratch?

      I think the ZEND people want you to stick to PHP. So they offer ways how you hopefully can evolve a "hacked" suit of scripts into an enterprise application.

      All people out there trashing about Java I only can say: In an enterprise application, like amazon.com, you have far more issues to think about than on your dynamic Star Treck fan site.

      Java simple is made by people who do "Enterprise Computing" on "hard iron" since 25 years.

      Definitely it has some "strange" areas in its design, but a lot of those areas are NEEDED because a lot of stuff is not that plain simple as you think.

      angel'o'sphere

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    22. Re:Popular direction != right direction by anarxia · · Score: 1

      I wonder why they didn't list XML or SGML? They have an 'L' in the end so they pass your programming language test unlike PHP, Java, C and several other so-called programming languages

    23. Re:Popular direction != right direction by ErikZ · · Score: 1

      I used PHP for my dynamic site because Perl is a pain in the ass unless you're a perl programmer. JAVA? I had no interest in picking up a book because all the people I taking JAVA classes were saying "I just can't get my program to work!"

      I picked up a book on PHP and had functional website in 3 days. Took me a year to make it look good though...

      --
      Democrats or Republicans. They are both taking us to the same place and they are not afraid of us anymore.
    24. Re:Popular direction != right direction by ErikZ · · Score: 1


      Are you trying to sell PHP? I'd label the first program "Ticketseller basic". If you want "Ticketseller Advanced" you'll have to pay me a lot more money. And with the experence I've gotten from writing the first program, the second one should be a snap.

      So, it looks like PHP is the gateway to riches, using your example.

      --
      Democrats or Republicans. They are both taking us to the same place and they are not afraid of us anymore.
    25. Re:Popular direction != right direction by ShieldW0lf · · Score: 1

      IMHO the poster ment: typical first step programmers (some guy with a computer and basic HTML knowledge) probably chooses PHP because he has heared it is dead simple.

      Was that a mistake or an insult?

      --
      -1 Uncomfortable Truth
    26. Re:Popular direction != right direction by hazah · · Score: 1

      Markup, not programming.

    27. Re:Popular direction != right direction by hazah · · Score: 1

      No, I can read PHP, Visual basic distracts me from my code.

    28. Re:Popular direction != right direction by drakethegreat · · Score: 1

      Thats why I didn't say all of them. I'm a PHP programmer as well. I can't really diss on PHP programmers and it shouldn't be insulting if some of them simply lack knowledge of other languages. Simply put people who know things like Python are more likely going to know other languages over people who know PHP. This doesn't mean everyone, there isn't any labeling here. This is a general sense so don't take offesnse :-)

    29. Re:Popular direction != right direction by Anonymous Coward · · Score: 0

      If you consider the design of an app, it's no more simple to write PHP than it is Java. For web apps, I don't acknowledge a great advantage in the construction of the Java language itself. Once you start to consider everything required to build a scalable application, you are probably going to use the same principles with PHP that the average Java programmer uses.

      Now, I'm not sure what your point is, but if your point is that writing in Java to begin with is the right way of doing things, you're overgeneralizing. If I'm writing a program for a college sports stadium, I'm not going to write it to be used by Ticketmaster. Most of the time a successful program fulfills its need for a few years with a few logic changes here and there. If I know that 100,000 people are going to be using the application every day, I'm going to take more time on the performance and scalability aspects. If not, I'm going to save resources by getting the development done as quickly as reasonably possible.

      You seem to understand this, contrasting Amazon and a typical fan site. Perhaps Java is a better fit for a massive app like Amazon. However, it may very well be awful for a small app where the goal is to get something done simply and quickly. The bottom line? Skilled people will use the right tool for the job and it may not necessarily be the same tool every time. If you never say "it depends," you're probably doing your organization a disservice.

    30. Re:Popular direction != right direction by bobbyjack · · Score: 1

      I'll agree with the two positives. Please explain the negative: in what way is PHP 'dirty'?

    31. Re:Popular direction != right direction by angel'o'sphere · · Score: 1


      Was that a mistake or an insult?

      Neither nor.

      Should I read up the thread to see wether you allready said something and I probably missinterpreted you?

      Or is you question a more general one?

      Or do you think I insulted the imaginary guy who has chosen PHP?

      Or did you want to say *I* made a mistake? If so which?

      I don't get you I think :D

      angel'o'sphere

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    32. Re:Popular direction != right direction by aled · · Score: 1

      In the way that newbies to programming usually do a "dirty" mess because don't know or care for good practices. Being easy to get started and all.
      That may be isn't a fault of PHP per se and can happen with any language but I think is common.

      --

      "I think this line is mostly filler"
    33. Re:Popular direction != right direction by ShieldW0lf · · Score: 1

      because he has heared it is dead simple

      I referring to this... thought you might be having a laugh at the expense of the guy who chose PHP and considered HTML a programming language.

      --
      -1 Uncomfortable Truth
    34. Re:Popular direction != right direction by HadenT · · Score: 1

      It's not dirty, but it's easier to write ugly code using PHP.
      I've done several rather big sucesfull projects using PHP - using OO design, templates etc. and it's suitable for such thing (you are missing many constructs, but then, you get lots of power because it's weakly typed).
      I thought for next web project I'm going to use Ruby, yet PHP5 attracts me too.

    35. Re:Popular direction != right direction by aled · · Score: 1

      It's not dirty, but it's easier to write ugly code using PHP.

      That's dirty ;-)

      --

      "I think this line is mostly filler"
    36. Re:Popular direction != right direction by Mr.+Slippery · · Score: 1
      It's not dirty, but it's easier to write ugly code using PHP.

      As opposed to, say, C++, where writing ugly code is somehow difficult? Riiiiight.

      There is not, not will there ever be, a programming language in which it is difficult to write ugly code.

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    37. Re:Popular direction != right direction by rjshields · · Score: 1

      It's Java, not JAVA. Java is a name not an acronym.

      all the people I taking JAVA classes were saying "I just can't get my program to work!"

      That's because there is a real learning curve with Java. You can't expect to know J2SE and J2EE within a couple of weeks of starting to learn it, because the subject matter is huge. That's also the reason Java programmers get paid more.

      --
      In this world nothing is certain but death, taxes and flawed car analogies.
    38. Re:Popular direction != right direction by rjshields · · Score: 1

      Who's pendantic now, then? :) Whoever smelt it dealt it, and all that.

      --
      In this world nothing is certain but death, taxes and flawed car analogies.
  4. 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?
    1. Re:I *like* the OO. by ignatzMouse · · Score: 2, Insightful

      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?

      --
      No artist tolerates reality. -- Nietzsche
    2. Re:I *like* the OO. by kawika · · Score: 2, Interesting

      PHP is seductive because it does let relatively inexperienced users generate dynamic content without too much of a learning curve. But from the description you give I think you are part of a very small minority of PHP developers at the other end of the spectrum.

      My own PHP experience is more like this. Perhaps that's because I had come from Perl, and as this comparison makes clear the two certainly don't have the same ideas about how builtin functions should be designed.

      As it evolves, PHP isn't solving the higher-level problems. It is merely reinventing functions, object models, and syntax. Zend's focus on things that real users don't care about may reflect that as well.

      For example, PHP makes it trivially easy to insert dynamic content here and there into a page. If you want to separate business logic from presentation, which is almost manditory on a large site, you will want some sort of templating package. You will have to write your own. This is a common need, why shouldn't the core language address it? Because they are too busy reinventing object oriented programming?

    3. Re:I *like* the OO. by JimDabell · · Score: 1

      If you want to separate business logic from presentation, which is almost manditory on a large site, you will want some sort of templating package.

      Not really. It's perfectly acceptable to put business logic in included classes and simply use simple PHP embedded in the page to do nothing more than output the results of that business logic.

      You will have to write your own.

      You're kidding, right? That is flat-out wrong. There are loads of template engines freely available to everybody. Nobody has to write their own.

      This is a common need, why shouldn't the core language address it?

      It does. PHP is a template language itself. Furthermore, there are PEAR packages that add additional capabilities.

    4. Re:I *like* the OO. by ClippyHater · · Score: 1

      Speaking of PEAR, would you know of a good site that delves into PEAR usage? I haven't found anything significant yet, so haven't made the leap into using it.

    5. Re:I *like* the OO. by Anonymous Coward · · Score: 0

      which is almost manditory on a large site

      "mandatory" (think "mandate").

    6. Re:I *like* the OO. by ciroknight · · Score: 1

      One of the reasons PHP doesn't integrate their own logic for building templates is very simple; it's a programming language, not a content designer.

      PHP has done everything within their power to make it easy for anyone to build their own templating engine; They've made it so prints can be inlined, they've made it so it has great database access including support for a core database (SQLite), they've made it so error reporting can be customized and everything can be sugar coated as deeply as you want.

      The fact is, when you add more to the language, you add to the bloat of the beast. This is one of the problems I have with Perl (though, I have many more significant problems with it); there is literally a module to do everything. And since the language has built in modules to do it, nobody bothers to write code anymore.

      I think PHP is still sans-template-engine out of the nature of it. Many companys thrive off of selling their PHP-page templates (Movable Type being the best example I can think of, also look at Invision Forums, etc), and this is how it should be. People should write the code so that it does what they want it, not have the language dictate how it should be done.

      As for PHP's move into Object Orientation, I embrace it. I think that in order for PHP to even be considerable as a language, it needs to have an Object subsystem so that it's easier to maintain and to allow programmers to quickly write programs that will last in the language. PHP once was "Scriptable C", which is great and fast and enough for 80% (arbitrary number, not quotable) of the users, and that's why those 80% still use PHP4, but for those who want/need OO, they've upgraded.

      So why are you bitching about not having some common facility in the language, and the fact the language is now OO? The two arguments counteract each other. The fact it's now OO makes it EASIER to design those facilities in the language, thus, keeping them out of the implementation of it.

      --
      "Victory means exit strategy, and it's important for the President to explain to us what the exit strategy is." G.W.Bush
    7. Re:I *like* the OO. by tehshen · · Score: 1
      I have felt some of the extensions and expansions they have added do not improve the language at all. For example, to put the contents of a directory into an array in PHP5, I can do this:
      $files = scandir("/tmp");
      However, scandir() is only in PHP5, so in older versions I must do this:
      $dir = opendir("/tmp");
      while (false !== ($filename = readdir($dir))) $files[] = $filename;
      sort($files);
      And to ensure backwards-compatibility I would have to check if scandir is a function and use the right method. Or I could just use the second method, not using scandir() at all, which is simpler.

      If you want more examples, see the changelog.
      --
      Guy asked me for a quarter for a cup of coffee. So I bit him.
    8. Re:I *like* the OO. by drdink · · Score: 1

      So? You will get this with any language, product, or service that evolves over time and adds features. You either say "My app only works with PHP5 and newer" or you support older PHP through compatibility tests. This is what programming is all about.

      --
      Beware, Nugget is watching... See?
    9. Re:I *like* the OO. by lphuberdeau · · Score: 2, Interesting

      They survey was open to public a few months ago. There were no requirements to participate. I guess anyone seeking around the PHP world at that time could have participated. Are the results representative? Maybe.

      With a better object model, PHP 5 does not only bring the capacity to do OOP, but also to have better interactions with other OO libraries and languages. Interoperability really is the keyword to remember for PHP's future and Zend is putting a lot of efforts that way. Other than the object model, the key features of PHP 5 are:

      • New XML library, fully DOM compliant
      • New SOAP extension
      • New XML-RPC extension
      • Unified database API (PDO)

      An extension to use Java object has been available for quite some time but it seems they are improving it and .NET extension is experimental too.

      These features sure don't aim the average PHP user who simply uses include and a few conditions. I don't think it means it's bad to have em. They simply bring PHP at a higher level and offer a more complete solution to the developpers.

      --
      Qui ne va pas à la chasse n'a pas de gibier
      PHP Queb
    10. Re:I *like* the OO. by Captain+Nitpick · · Score: 1
      For example, PHP makes it trivially easy to insert dynamic content here and there into a page. If you want to separate business logic from presentation, which is almost manditory on a large site, you will want some sort of templating package. You will have to write your own. This is a common need, why shouldn't the core language address it? Because they are too busy reinventing object oriented programming?

      Because PHP is a templating package. You just have to have the discipline to use it as such instead of slapping your database code willy-nilly into the HTML.

      --
      But then again, I could be wrong.
    11. Re:I *like* the OO. by Tablizer · · Score: 0, Troll

      Agreed. Nobody has presented a good cost/benefit and probability-of-change analysis of "separation". It appears to be a fad. I don't see the science.

    12. Re:I *like* the OO. by JimDabell · · Score: 1

      There isn't really anything you need to know except what objects are available and what their interfaces are. The documentation is good enough for that.

    13. Re:I *like* the OO. by Teach · · Score: 1

      I've never read the "PHP in Contrast to Perl" document before. Holy cow, I knew I hated PHP, but I couldn't quite put my finger on it. Thank you for this.

      --
      Graham "Teach" Mitchell, computer science teacher, Leander HS
    14. Re:I *like* the OO. by Tablizer · · Score: 0, Troll

      I have a question for the moderator that labelled the above "troll". Is it because I already mentioned it elsewhere? Should I have given a link instead?

    15. Re:I *like* the OO. by Knightking · · Score: 1
      if(!function_exists('scandir')) {
      function scandir($path) {
      $dir = opendir(path);
      while (false !== ($filename = readdir($dir))) $files[] = $filename;
      sort($files);
      return $files;
      }
      }

      $files = scandir("/tmp");
      Or just use PEAR:Compat.
  5. 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.

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

    2. Re:Some points... by chthonicdaemon · · Score: 1

      Since when is HTML a programming language?

      Actually, it is a non-touring complete declarative language. Not all languages need imperative style execution of the code from start to finish.

      --
      Languages aren't inherently fast -- implementations are efficient
  7. 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...
    2. Re:What's with the hate.. by sporty · · Score: 1
      While I appreciate the value of Python, I would hate having to use it. I'm not fond of indent based block languages. Space-to-tab conversions would drive me nuts. :) But hey, if you like it, more power to you.


      osCommerce has some ugly code if you are hunting.


      Ruby all the way. Or perl. Or java. ;)

      --

      -
      ping -f 255.255.255.255 # if only

    3. Re:What's with the hate.. by JimDabell · · Score: 2, Insightful

      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.

    4. Re:What's with the hate.. by Anonymous Coward · · Score: 0

      While I appreciate the value of Python, I would hate having to use it. I'm not fond of indent based block languages.

      Neither am I. I would love it if Python used curly braces and semi-colons instead of indentation. Using it in web development in particular drives me nuts because it doesn't cope well with the indentation already present for the HTML. But I still use it because I'm much more productive in Python than anything else. Give it a try.

    5. Re:What's with the hate.. by Anonymous Coward · · Score: 0

      I used to hate the indent thing, but you really do get used to it. It's still often a pain, but there are actually worse things about the language than the indent (brokenness of super(), schizophrenic "old-style" vs "new-style" object model, etc). Just use the proper editor modes in emacs or vim. If you're forced to use it without either present, you may find that idle was installed with python, or on Windows, pythonwin.

      To embed python inside web pages, however, is still madness. The indent thing will indeed drive you crazy. Infoseek did that, and it was horrible. However, most server-side python solutions use alternate syntaxes, either using brackets or if/endif for conditionals (webworks), or an outright new syntax (cheetah, which uses velocity syntax).

      Ruby's definitely nice. I'd still be partial to lisp if its stream syntax wasn't so damn verbose.

    6. Re:What's with the hate.. by Tablizer · · Score: 1

      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.

      The point of the article is that effort was wasted on OO upgrades when it could have been spent on other things that are more of concern to PHP developers. It would have been nice to take a survey and let PHP developers vote on priorities.

    7. Re:What's with the hate.. by afd8856 · · Score: 1

      Embed what? Python in html code? No way :)

      take a look at this example of using Zope Page Templates (available outside of zope also):

      There are special constructs tal:repeat tal:content (and others) that allow you to put content inside a tag (the zpt files are xml based). The python: statements are limited to one line so you can't do much in them. But this is a good thing as it limits what you can do in the template and forces you to put the logic inside your code.

      <tr tal:repeat="Row options/listaMateriale">
      <td><span tal:content="python: here.getFieldMaterial(Row[0], 'nume_material')" class="text"/>
      <input type="hidden" name="lista" tal:attributes="value python: Row[0]"></td>
      <td><span tal:content="python: here.getFieldCuloare(Row[1], 'nume')" class="text"/>
      <input type="hidden" name="lista" tal:attributes="value python: Row[1]"></td>
      <td><span tal:content="python: '%s %s' % (Row[2], here.getFieldMaterial(Row[0], 'unitate_masura'))" class="text"/>
      <input type="hidden" name="lista" tal:attributes="value python: Row[2]"></td>
      <td>
      <select name="lista">
      <option>.Selecteaza...</option>
      <option tal:repeat="Furnizor python: here.getListaFurnizori()" tal:attributes="value python: Furnizor[0]" tal:content="python: Furnizor[1]" />
      </select>
      </td>
      </tr>

      Also, easy to do "macros" and "slots'. So the page is "thin" and easily understandable.

      <html metal:use-macro="context/main_page_template/macros /page">
      <body >
      <span metal:fill-slot="body">
      Here comes your page
      </span>
      </body>
      </html>

      Extra plus that you can't have invalid xhtml code. Zope will not render the page if you have a missing </span> or </td>, for example.

      --
      I'll do the stupid thing first and then you shy people follow...
    8. Re:What's with the hate.. by Anonymous Coward · · Score: 0

      Sorry, I can't stand that, it just looks like an extremely messy hack.

      Extra plus that you can't have invalid xhtml code.

      That's an extra MINUS for me. Lots of people prefer to use HTML.

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

    1. Re:PHP programmers by Tablizer · · Score: 1

      people who mix HTML and SQL

      I have yet to hear a good justification for separation. It requires too much eye-ball hopping during code reads if you separate them. Nobody is going to swap out HTML for some other protocol. There would likely be too many differences anyhow. HTML is already a protocol. Why wrap a protocol with another protocol? You wrap implementation, not interfaces, unless a real good and immediate reason is found, not because "we might change the UI in 15 years". Why bloat the code up 60% now for something that MIGHT happen 15 years down the road? That violates the finance law of "future discounting", which as far as I can tell still applies to IT projects.

      Java is driven more by mantra than reality. It's mantra has not been tested beyond the anecotes of OO fanatics.

    2. Re:PHP programmers by mattpalmer1086 · · Score: 1

      It's not necessarily about swapping out protocols, or replacing HTML, or SQL. Although you are right to realise that it would be easier if they were seperate. Examples of this might be if you want to extend your application to mobile access, or to produce a web services interface for business partners to take advantage of. It's a lot easier if your business logic is not mixed up with specific presentation details.

      Let's take a slightly different example. Say you upgrade your application and need to change the underlying database structure to support some new requirements. Your way: go through all the code looking for bits that refer to those tables in the database, and update them all manually. The way preferred by the majority of software professionals: update the database code in one place only.

      You make your own decisions, of course, and I'm not saying that your decisions are wrong for the kinds of things you're doing. But I'm assuming that they're quite small scale projects, or that you are not responsible for ongoing maintenance issues.

    3. Re:PHP programmers by Tablizer · · Score: 1

      But is that alleged saved effort weighed against dealing with extra layers when reading code? Generated SQL tends to be intertwined with business logic in many cases. Either you embed that, or create complex interfaces that themselves have to be changed often. Indirection is not free. It seems one is trading extra effort on one part for extra effort on another.

      There are downsides to separation that are *not* insignificant. Comparing these to the upsides does not seem to be done with sufficient scrutiny. Where are the studies or careful analyses?

      As far as your mobile access example, I suspect that the needs of a tiny screen would be so different that mere swapping or polymorphism would be insufficient to deal with all the differences anyhow. The whole "flow" might need to be different. If you chase every "what-if" with your code design, then it becomes a complex mess. I don't agree with a lot of the XP movement, but watching out for premature featuritice is often a useful tip from that movement.

  9. Zend broke latest version of PHP by mabu · · Score: 2, Interesting

    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.

    1. Re:Zend broke latest version of PHP by gabe · · Score: 1

      That looks like a minor bug to me, and one that could be worked around by writing your own replacement for extract(), at least until the bug is fixed. What is insecure about PHP 4.3.10?

      --
      Gabriel Ricard
    2. Re:Zend broke latest version of PHP by mabu · · Score: 1

      I'm using extract to make all global variables accessible from within a function in PHP. If you know a way of doing this without using extract() (and not having to keep track of what globals are defined), I'm all ears!

      I have an application that requires a function to access globals as if it were not local. I wish there was some easy way to do that, but I have not found any.

  10. No, multiple choices by Anonymous Coward · · Score: 0

    Which fruits do you like?

    Apples
    Oranges
    Bananas

    You can choose all three, or two, or one or none.

    1. Re:No, multiple choices by adavies42 · · Score: 1

      Given the context, PEAR.

      --
      Media that can be recorded and distributed can be recorded and distributed.
      -kfg
  11. People Hate Java by mabu · · Score: 0, Troll

    People hate java 'cause it's overly verbose, but complain that languages like perl look like line noise.

    People hate Java because it's a language that was born of an advertising campaign and not a specific need in the technology field.

    People hate Java because the technology has been caught in the middle of several commercial interests and platform wars, which has crippled the promise of Java's stability and reliability.

    People hate Java because it's a lie. Java promised a new generation language that was to be cross-platform compatible, but it's actually less cross-platform compatible than C/C++.

    People hate Java because it's slow as molasses. Need an example? Take a look at Puzzle Pirates, a very clever multiplayer online game, that because the developers were foolish enough to use Java, runs ten times slower than it should and is painful to use as a result.

    People hate Java because it sucks. I'm sorry to those of you who are Java programmers and are finding less jobs, but no sane company wants to use this technology when there are other systems available that offer better performance, reliability and longevity.

    1. Re:People Hate Java by sporty · · Score: 1


      People hate Java because it's a language that was born of an advertising campaign and not a specific need in the technology field.

      People hate Java because the technology has been caught in the middle of several commercial interests and platform wars, which has crippled the promise of Java's stability and reliability.



      It's a language similar to cobol in purpose, w/o a lot of the features of cobol that make it harder to work with. One of the main purposes of java is to provide a more OOP like language, though it does fail in some resepects in comparisons to true OOP languages like python and ruby. It's very clear to read vs something like perl due to the simple language rules.


      Over the years, the 10 or so years, the language has become quite stable and what not. Scalability is an issue due to the garbage collector, but just like any language, you learn not to do things in an odd/bad way, you can work with it well.


      People hate Java because it's a lie. Java promised a new generation language that was to be cross-platform compatible, but it's actually less cross-platform compatible than C/C++.


      It's cross platform on the largely used platforms. Not as an excuse for sun. It's just so. It does suck. Uh.. the end :)


      People hate Java because it's slow as molasses. Need an example? Take a look at Puzzle Pirates, a very clever multiplayer online game, that because the developers were foolish enough to use Java, runs ten times slower than it should and is painful to use as a result.


      Don't go looking at the graphics aspect. It's an anomoly of slowness among the things it does fast. It's also slow in object creation. But it is fast on execution of code. Stuff like the HotSpot feature in JVM can optimize on the fly..

      People hate Java because it sucks. I'm sorry to those of you who are Java programmers and are finding less jobs, but no sane company wants to use this technology when there are other systems available that offer better performance, reliability and longevity.
      --

      -
      ping -f 255.255.255.255 # if only

    2. Re:People Hate Java by Anonymous Coward · · Score: 0

      People love Java because of Spring, Hibernate, Eclipse, JUnit and countless other open source tools and frameworks. Sure, there is a lot of ugliness surrounding Java, but there is a whole lot of good stuff that is getting used more and more these days.

    3. Re:People Hate Java by jilles · · Score: 1, Informative

      People who hate Java generally don't understand much of Java. You're an excellent example. You hate Java for the wrong reasons. That's dumb.

      There are actually quite a number of valid reasons to dislike Java and to prefer php. You don't list a single one. At least hate it for the right reasons. As to explaining why you are wrong is a waste of my time. Sorry, I'm not in the idiot reducation business.

      --

      Jilles
    4. Re:People Hate Java by curunir · · Score: 1

      Wow...you know nothing about Java, do you? I'd be willing to bet that you've never done any significant development in Java. As others have said, there's plenty of valid critiques of Java to be made, and you've made none of them.

      People hate Java because it's a language that was born of an advertising campaign and not a specific need in the technology field.

      This couldn't be more wrong. Java was created as a means for allowing platform-independant application development. Sun was doing fine in the server arena, but wasn't able to break into the desktop market because of the inertia that Microsoft had when it came to developers. We (developers) built software that ran on their (users) computers, and that was DOS/Windows. When it launched, Sun marketed it like crazy for obvious reasons, but that doesn't in any way mean that it wasn't addressing a specific technical need.

      People hate Java because the technology has been caught in the middle of several commercial interests and platform wars, which has crippled the promise of Java's stability and reliability.

      No, people hate applets because of Microsoft's successful resonse to Sun's attempt to position its product between developers and MSIE. Microsoft's non-compliant JVM and the resultant incompatabilities essentially killed applets (which weren't the greatest idea to begin with), but they did nothing to kill Java's prospects as a whole.

      People hate Java because it's a lie. Java promised a new generation language that was to be cross-platform compatible, but it's actually less cross-platform compatible than C/C++.

      Really? I find that I rarely have to make *any* modifications to the wars I develop for them to be deployed on whatever platform I'm switching to. Far more often, the modifications I have to make are due to deploying on a different AppServer. When I develop desktop applications, it's trivial to make them work on any platform supported by Java. Oh, and I don't have a single #ifdef in my code. Since I can't think of a single type of program that would be difficult to program in way that the jar file would run unedited on any of Java's supported platforms, would you mind providing an example?

      People hate Java because it's slow as molasses.

      Umm...1999 called, they'd like their argument back. Seriously though, for most of the desktop apps I write, users have no idea that its written in Java. Swing is a bit slower than native widget calls since it renders each component itself. But Java GUI != Swing. SWT apps are almost indistinguishable from native apps speed wise. People who judge SWT by Eclipse's performance ignore the fact that Eclipse is a huge application which introduces a ton of bloat above the SWT level.

      In the server arena, there's just nothing better suited for building large, enterprise-scale web applications. .NET may emerge as a worthy competitor, but all the scripting languages are poor substitutes that perform significantly slower than Java.

      Need an example? Take a look at Puzzle Pirates, a very clever multiplayer online game, that because the developers were foolish enough to use Java, runs ten times slower than it should and is painful to use as a result.

      Ooh...a single example of a (probably) badly-coded java game. That really shows that Java is slow. I've got Azureus running right now and it doesn't seem slow. I must have just proved that Java is fast, right?

      People hate Java because it sucks. I'm sorry to those of you who are Java programmers and are finding less jobs, but no sane company wants to use this technology when there are other systems available that offer better performance, reliability and longevity.

      Ok, name one. Make the argument that it is better suited for a certain purpose than Java. Aside from game programming and perhaps AI or number crunching type applications, I can't see how you'd be all that successful. And if you want to believe th

      --
      "Don't blame me, I voted for Kodos!"
    5. Re:People Hate Java by aled · · Score: 1

      People hate Java because it's a language that was born of an advertising campaign and not a specific need in the technology field.
      Wrong. It was born to a specific need (to be used in settop boxes) but it overgrown it quickly.
      Actually it fits very nicely in my work for a good language, safe, portable, binary compatible, with lots of libraries and high level.
      If you have other requeriments good for you. Lots of people find it useful.

      People hate Java because the technology has been caught in the middle of several commercial interests and platform wars, which has crippled the promise of Java's stability and reliability.
      Lots of people use it without stability problems. Do you have any actual, real problem?

      People hate Java because it's a lie. Java promised a new generation language that was to be cross-platform compatible, but it's actually less cross-platform compatible than C/C++.
      Do you use a platform that doesn't have a Java implementation or are you just trolling?

      People hate Java because it's slow as molasses. Need an example? Take a look at Puzzle Pirates, a very clever multiplayer online game, that because the developers were foolish enough to use Java, runs ten times slower than it should and is painful to use as a result.
      While some Java applications, usually desktop, may be slower than native ones, server applications don't. In my P4 PC I don't really see any difference between native and Java.

      People hate Java because it sucks. I'm sorry to those of you who are Java programmers and are finding less jobs, but no sane company wants to use this technology when there are other systems available that offer better performance, reliability and longevity.
      "suck" is not an argument. Most probably means that you are a troll.

      --

      "I think this line is mostly filler"
    6. Re:People Hate Java by aled · · Score: 1

      It's a language similar to cobol in purpose, w/o a lot of the features of cobol that make it harder to work with.

      What?? do you have any idea of Cobol and Java or you just trolling?
      Let me ask:
      a) What features of Cobol does suposedly Java has?
      b) why do you say they are similar in purpose?
      c) harder to work than what?

      --

      "I think this line is mostly filler"
    7. Re:People Hate Java by sporty · · Score: 1
      1. Simplicity of language. The constructs are simple and straight forward. I don't know cobol in depth, but i can read it easier than /some/ other lanuages. ruby and python use a lot of dingbats in interesting ways, but i'd have to learn them.


      2. They are more business like languages than practical languages for other purposes.. i.e. C for OSs and embeded systems, glue/expressive languages like perl, ruby and what not. This is not to say that languages like ruby and perl can't be used for other reasons, they can work well for other things.


      3. OO has its strengths, and its the way the world is headed for business like function. It's not the end all of everything, but people like OO. Java also has a huge backer, Sun. c++ came in between somehow, but people are moving away from c++. due to the pointer stuff you can do? due to writing more hybrid stuff? the lack of standards for c, the underlying language? who knows. But it's great to be able to blame someone when something goes wrong. Sun is a good company to blame and have support contracts with.. at least it used to be...

      --

      -
      ping -f 255.255.255.255 # if only

    8. Re:People Hate Java by aled · · Score: 1

      1. I programmed a little cobol a couple of years and I can assure you there isn't the least similarity about the two. In fact Cobol (and RPG) programmers usually choke on Java, is very alien to them. Take a look at the syntax, it's based on C.

      2. Java is a general language that found it's way into enterprise systems because of its features (platform independence, standard database api, binary compatibility, etc). It was originally developed for embedded systems and is based on C/C++. It was supossed to be a better C++ than C++, without all the clutter, no pointers, no templates (at least until 1.5), etc.
      There are imaging system, databases, compilers, interpreters (like a python interpreter), games, editors all made in Java.
      It fullfiled it original purpose somewhat because of its common use in cellphone, mainly for little games.
      Exercise for home: Try to do a game in Cobol.

      3. I don't really understand your point. You don't like business, OO, Sun?
      Java is used to replace C/C++ in apps than don't require low level access. For example: why do I need to manipulate pointers to make a webpage? clearly java, php, even vb are better suited to the task. Is personal taste what one is more productive with. That doesn't meant that other options are bad.

      --

      "I think this line is mostly filler"
    9. Re:People Hate Java by sporty · · Score: 1

      I don't hate sun, java or oo. m'thinks you are preaching to the choir :)

      --

      -
      ping -f 255.255.255.255 # if only

    10. Re:People Hate Java by aled · · Score: 1

      as I sayed may be I really didn't understand your point ;-)

      --

      "I think this line is mostly filler"
    11. Re:People Hate Java by mabu · · Score: 0, Troll

      Wow...you know nothing about Java, do you? I'd be willing to bet that you've never done any significant development in Java. As others have said, there's plenty of valid critiques of Java to be made, and you've made none of them.

      I guess the level of my experience with Java would be dependent upon how you define "significant development". I've done quite a bit, but ultimately we abandoned the use of Java for large-scale, mission critical applications. Your mileage may vary... I understand some of you spent lots of good money and time in college to base your cirriculum around Java and it's painful to entertain the possibility you might as well have been studying Old English. Don't take it out on me.

      The reason why there are different computer languages is because different languages have different specialities. The problem I have with Java is that it really IMO, doesn't have any specialty. PHP, Perl, Cobol, C, C++, etc., are languages that offer specific advantages in specific areas. Java was introduced as a corporate marketing tool more than a language designed to address a specific need in any specific field of technology. Most of the reasons Java sycophants cite for Java's usefulness could just as easily be implemented via add-on libraries to other languages such as C/C++, so I see no good reason to jump on the Java bandwagon.

      You can mod my post a troll all you guys want. But it won't be my fault that Java is a dying language that will never have the longevity of its peers. Save room in your closet, next to the Amiga, for your Java manuals.

    12. Re:People Hate Java by Anonymous Coward · · Score: 0

      dude your kinda dumb, all the large scale high priced developer jobs are for J2EE , I love php , but there isn't many jobs for it outside of small time stuff

    13. Re:People Hate Java by mabu · · Score: 1

      all the large scale high priced developer jobs are for J2EE

      See: basic rule of supply and demand.

    14. Re:People Hate Java by curunir · · Score: 1

      ...you might as well have been studying Old English.

      Linguistics, but I'll give you points for being close.

      The problem I have with Java is that it really IMO, doesn't have any specialty.

      Ok, so what would you suggest for a large-scale, server-side programming environment. PHP/Perl just aren't able to allow you to tackle the complexity that Java allows. .NET is still unproven, but might eventually prove to be a viable alternative on Windows servers (which I still just don't feel comfortable using in a production environment.) Like it or not, J2EE works really well in this context. There are so many frameworks and tools that are easy to integrate that building complex application logic becomes quite easy. For example, I just don't see how you'd easily emulate the functionality of something like the Spring Framework as an add-on library to C++. Don't get me wrong, it could be done, but it wouldn't be nearly as easy as it is in J2EE.

      And before you pigeon-hole me as being a Java-only kind of programmer, I should tell you that I did plenty of programming in C while in college and I've had jobs where I programmed primarily in C++ and I'm fluent in Perl and PHP since I use them to program sites at hosting providers (Java and J2EE just don't work in a shared context like the one provided by most webhosting providers.) I like Java because I enjoy programming in it more than any other environment. It takes care of all the mundane details well leaving me to only have to worry about the logic I'm implementing. The only other language that comes close is Python, but it's really hard to find work as a Python programmer.

      --
      "Don't blame me, I voted for Kodos!"
    15. Re:People Hate Java by Anonymous Coward · · Score: 0

      The only other language that comes close is Python, but it's really hard to find work as a Python programmer.


      Yeah.. I'm sad about this.. A recent search in monster.com reveals that Python is not used very much compared to: Perl,PHP,Java,C,C++,or C#.

      Not much of a market at all.

      I also like Smalltalk as a language..

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

  13. The Driving Force by Ridgelift · · Score: 2, Interesting

    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?

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

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

    1. Re:The Driving Force by sribe · · Score: 2, Funny

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

      I for one do not want to program in a language that feels like having my beard waxed ;-)

      (I am about to take a look at ROR myself, but your analogy made me cringe and cover my face with my hands.)

    2. Re:The Driving Force by pjay_dml · · Score: 1

      [quote] (I am about to take a look at ROR myself, but your analogy made me cringe and cover my face with my hands.) [/quote]

      Quite the contrary with me! I was like "Thought so, now I know I'm switching". And I believe you missed the point. It is not about a waxing procedure (that would be nothing but an advanced PHP solution).

      Ruby is a genetherapy, that makes sure, you will never have to shave again, by removing the folicals from the facial area. The best, you can even choose, if you want to keep the hair on the top of your head, or if you want to keep those handy eyebrows.


      I have also started to look at Ruby and Railz, and I have been 'dreaming' ;) about creating my own CMS with it, as I haven't seen any project yet, that cought my attention. Any one know of any ?

    3. Re:The Driving Force by NullProg · · Score: 1

      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.

      You could not be closer to the truth.

      Recently, our proffesionally paid VB programmer turned PHP wannabe copied and pasted the XML parser samples from php.net into our supposedly proffesional product. Needless to say, it got past QA, clients started using it. When they added additional XML entities not tested by QA, the Web Server crashed (this is an embedded Linux Box).

      When I finally traced down the problem, I went to said VB/PHP programmer and asked what he was doing in the section of code in question (He was accessing a child array/tree that didn't exist in the XML file which caused a memory leak). He couldn't answer and looked at me dumbfounded. That led me to the documentation on php.net for the function call and low and behold. He copied the source line by line from the sample code.

      For the same product, I've written a parser/validator in 'C' from scratch, but this guy doesn't have the brains or talent to understand XML/PHP or what it takes to be a proffesional programmer. I didn't say anything to the Boss. But it makes you wonder about ethics, and the lack of design/learning skills of the people coming out of universities these days.

      As far as Ruby? When it's an ANSI or ECMA standard product provided by more than one vendor then come talk to me. As of now, its not cross platform or vertical (Java is, handhelds to Mainframes).

      Good post,
      Enjoy.

      --
      It's just the normal noises in here.
    4. Re:The Driving Force by Anonymous Coward · · Score: 0

      There's nothing amazing about Ruby. Without Rails, it's just another OO language. How about comparing Rails to a PHP framework? Tony Marston published an elegant one under the LGPL at http://www.tonymarston.net/php-mysql/sample-applic ation.html and I'm sure there are several others. Comparing frameworks to raw languages is simply not useful. You can bet that professional PHP developers have their own frameworks along with the JSP guys. When you see complete apps built with web frameworks, they all look about the same. There are the same challenges to overcome because the apps are doing the exact same types of things!

      There is a wide variety of packages out there that accomplish the same goals (the calling card of OSS); programmers, those who understand how to design systems and not merely bang out code all day, have always had their own tools to make their lives easier. I'm not sure whether it's a good or bad thing that the general public will be able to use these frameworks and build apps with even less knowledge of what's going on behind the scenes. Anyway, another point of view for you.

    5. Re:The Driving Force by Tablizer · · Score: 1

      However, that same approach to building the language has led to a rat's nest of functions, without a whole lot of consistency.

      I would like to specific examples that OO or the OO upgrade fixes. Some OO proponents don't know how to use functions or databases right, and blame the paradigm instead.

    6. Re:The Driving Force by gabe · · Score: 1

      "Give 'em the razor, then sell 'em the blades" That's PHP and Java.

      Except there are free alterantives to Zend's products.

      Of course Zend is trying to make money. They're a company. Companies exist to create products and make money. Do you get on MySQL AB's case for selling commercial licenses?

      --
      Gabriel Ricard
  14. Ruby on Rails by parvenu74 · · Score: 1

    Is there really that much of a chance that Zend will offend enough PHP'ers that this could be a big boost for Ruby on Rails or any other open source alternative to PHP?

    Also, would it be accurate to presume that ASP.NET on MONO is not something of interest to PHP developers, but more of an alternative to J2EE folks?

  15. i think so by pizza_milkshake · · Score: 1

    i used to be big into php4, i used it as my primary programming language for over 4 years. i don't like where zend is taking the language and have never used nor am i interested in 5. instead of making the language better they're just adding more junk onto it.

    1. Re:i think so by Anonymous Coward · · Score: 0

      Nothing's stopping you from continuing to use PHP4.

      Try learning a real language sometime. You'll be amazed what simple things like modules can do for you.

    2. Re:i think so by Anonymous Coward · · Score: 0

      I cringe when people like you post statements like yours.

  16. 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
    1. Re:FUD by Xenna · · Score: 1

      Diligently?

      Explain how adding a 'replace' parameter to the header() function from one version to another and making it default TRUE (when it used to be implicitly FALSE) is *not* going to break scripts that depend on consistent behaviour?

      Well, hopefully they learned since then, but for me each PHP upgrade remains a little scary...

      It's also not really pleasant to have your scripts dependent on the correct settings of php.ini.

    2. Re:FUD by Anonymous Coward · · Score: 0

      Wow...it sounds like you are upgrading core software like PHP on a production site without having tested it with a staging area. I know, it's probably just your personal site, but I hope other readers don't do this on more important sites.

      Now, about php.ini, did you know that you can override relevant settings with an .htaccess file so you don't even have to include boilerplate code in your PHP? I don't like php.ini, but it is easy enough to override its settings (and if you deploy scripts on more than one machine, you should always explicitly declare those settings).

      This is the unfortunate reality; we are blaming systems for things that can easily be worked around by a skilled user. After all, IT people should know what they are doing. Blaming Windows for making the default user an administrator? That may not be optimal, but we are supposed to be able to set up systems correctly, not use the defaults. The same is so very true when it comes to languages. A lot of whining about tools that are almost all capable of getting the job done right, and not enough insight on how to do the job right.

  17. PHP: Now with room to Grow. by danielDamage · · Score: 1

    I write PHP for a living, and started out as a basically 100% incompetent scripter who just knew HTML. I took a couple of programming classes at a community college (including a Java class) and then leveraged my minimal programming training to use PHP to do useful things with my weblog.

    I went from being able to hardly even be able to put together a minimal Java program, to being able to do a huge amount in PHP. It was great, I got to write little referrer aggregators and blog quizzes, I even used register_globals! Ahhhh, those were the days.

    Now I write some fairly robust applications in PHP, and sometimes it's useful for me to take a portion of the most complex business logic and have a more feature-rich object model to create it in. No options have been taken away from me, however, and there's not a single thing I can't do in PHP5 that I used to be able to do in PHP4.

    Only now I have some things I always wanted: a better XML handling library, file and directory iterators, try/catch if I want it...

    In a way, PHP was ALWAYS modeled after a C/Java-like syntax, and for me it felt very natural for it to move a little more in this direction. I can't understand what direction people would be hoping it went in? Perl?

    --
    Slices, dices, eats your lunch.
  18. Funny this should come up by rnd() · · Score: 1


    The one thing that I think PHP needs is optional typing and type checking (like Visual Basic on Objective C) and a consistent exception model (right now only PHP5 classes throw exceptions (the rest just make errors or return false), and there is no way to automatically turn all of the old PHP error situations into handlable exceptions (heck, even a single PHPException type would work!).

    PHP is at a crossroads, and the best way to go is to an optional strict typing and exception handling approach such as the one used by Objc and VB. It would retain backward compatability while allowing for significant optimization. It would also prevent a ton of dumb errors that result from variable scope related semantic errors and other semantic errors that should be syntax errors.

    --

    Amazing magic tricks

  19. Some valid points by lux55 · · Score: 1

    I have to say it: This guy makes some valid points. There, I feel better now. Seriously, while I don't agree entirely with his article (not by a long shot), I also don't agree with any of the posts so far either (which could all be summed up as "he disagrees with us, don't listen to him!").

    He makes very valid points about PHP's current weak points, which no one actually responded to in their comments, especially his mention of Unicode support. Proper date support is another biggie. A unified DB abstraction layer should have been added a long time ago. These are basics I had years ago when I used to write in Perl. Not only are they still outstanding issues in PHP, the core of PHP is too busy adding nifty little OOP features, ignorant of the real needs of the community. This is a VALID complaint! (The fact that these could all be solved by looking more closely at Java is a point I find slightly ironic, given the pro-Java/anti-Java polarity around here)

    PHP finally getting a real OO system is dandy and all, but PHP's API has started to stink like an old dog. Function naming and parameter ordering inconsistencies could have been fixed for PHP5, with the backwards-compatible functions being marked "deprecated" so that by PHP6 they could be retired for good. PDO or something similar (just give us the basics -- add the gravy later!) should have been a much bigger priority. PHP's Unicode support is shameful. SimpleXML is a good start, but it still only puts PHP at runner-up (maybe we'd be a leader if it came 2-3 years ago).

    I hate to say it, but there's a jealousy that rises in me when I look to languages like Ruby and projects like Rails, and I'm unable to join due to my coding activities being tied to 100,000's of lines of PHP code. I'm even more jealous of them after seeing the reaction of the community at a legitimate complaint.

    Now to defend Zend for a moment: Of course a business has their profitability to consider when steering the software they rely on. That's not unethical, and as a user you should be aware that that's the case. However, it's not Zend's responsibility to single-handedly create PHP -- we all do it together. And doing it together means that we, the community, dropped the ball.

    PHP has not been innovative for a number of years now. Projects like Ruby on Rails and Perl's Maypole, they are.

  20. Java is NOT proven superior by Tablizer · · Score: 0, Troll

    Your response implies that Java is somehow a superior language. Well, some of us disagree. Here are some talking points:

    * OOP has not been proven objectively better, and Java does not make non-OOP programming very easy.

    * Java is staticaly-typed, and some feel that dynamic typing, or even type-free, makes one more productive and the code more readable. Even many OO fans will agree that OO is not always the right paradigm for some cases.

    You might like Java personally, that is fine. But please don't imply that it is scientifically better.

  21. Re:Java is NOT proven superior (correction) by Tablizer · · Score: 1

    I accidently put some of the OO issue in the wrong bullet point (dynamic typing). These are generally orthogonal issues. Sorry about that.

  22. A Completely Misguided Analysis by Anonymous Coward · · Score: 0

    1. You only have to look at PHP code repositories to see that people very often use OO programming, even when it is not helpful to do so.

    2. PHP4's object model was poor - lacking encapsulation, for example. It needed improvement.

    What should PHP's developers have done? Invent their own object model, or copy a successful one from elsewhere? Thankfully, they did the latter. PHP5 objects will be familiar to those who work on JSPs; and most PHP4 code will run with few, if any, changes. Best of all, those of us who do most of our PHP without ever using an object can continue in that mode.

    What more does the author want?

    If Zend really did ignore PHP users, as the author suggests, the users would fork PHP - that's the beauty of open-source.

  23. Bad programmers give good programmers credibility by Anonymous Coward · · Score: 0

    If you consider yourself 'good', be glad there are bad programmers or you would be mediocre.

    Cleaning up code is a pain, but at least when word gets out that a 'real' programmer is in the midst, you have job security.

    My experience, at least.

  24. Named Parameters by Tablizer · · Score: 1

    I keep hoping that PHP would add named parameters, and also provide optional parameters without warning messages popping up. (You can disable the warning messages, but it affects other things also in unwanted ways.)

    I would rather PHP focus on adding named parameters rather than twinking its OO model.