| |||||||||||
| |||||||||||
PHP v Java
Question to me yesterday: "Do you have a chart that compares the strengths and weaknesses of the various languages that you teach ...." to which I had to answer "Sorry, no". That's partly because it's like trying to compare apples and oranges, and partly because there are so many different scenarios and ifs and buts that it would be pretty tough to come up with a definitive and easy to follow document. But what I [i]can[/i] do is offer a number of insites, snippets, pieces of evidence that will help provide pointers.
For example: I saw a demonstration yesterday of a web site, running on two browser windows on the same computer. The two windows looked identical, but were pointed to different test servers. One was pointing to a version of an application written in Java, and the other to a version written in PHP. The gent running the demonstration clicked on a link on the Java version, moved to the PHP version, and clicked on the same link on that window. The PHP version can back to him (and completely redrew the window) before the Java version had even started. Upon questioning, I learnt that both servers were test machines that were very lightly loaded indeed, that the link ran some fairly compute-intensive code, and that the Java server was a higher spec machine than the PHP server. Their own benchmarks (run more scientifically) showed a 3:1 improvement in performance when switched from Java to PHP. Conclusion: That you 're likely to need more compute power if you're going to write your application in Java rather than in PHP. Conclusion about the language to choose: No definitive conclusion. For some projects (such as those with a large number of junior staff involved in a relatively secure big system development), Java may be a strong contender. But don't rule out PHP for some of the "traditionally Java" roles - especially with the private, protected, abstract, interface and final enhancements added at PHP 5 which allow for enforcement of encapsulation. Object Oriented PHP has really come of age in version 5 - and we're seeing a much more rapid update for applications that run on dedicated servers that I would have dared forecast. (written 2004-11-20 08:52:21) Associated topics are indexed under H101 - Introduction to PHPH108 - Objects in PHP J601 - Java Introduction A504 - Web Application Deployment - Java - Terminologes, Technologies and releases.
Some other Articles
Technical Weekend / GeekmasConversion and coercion in Java Feedback shows the tip of an iceberg Staff theft PHP v Java Short underground journeys and a PHP book Passing arrays to procs in Tcl Fair and Simple Good early morning PHP course. Come by train. 1638 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||