Re: I couldn't understand why PHP is so popular. The PHP code looks so horrible compared with Java.



tenxian schreef:
Could you put up with the horrible PHP code?

Dear Mr. Troll,

I expect you mastered both Java and PHP before spitting your wisdom?
Is that correct?

I coded a few years in both languages, and can only say I need LOADS of time to get things done in Java (J2EE/tomcat).
My honest estimate is that I code around 3-4 times faster in PHP, and I produce readable code.

In Java, you needs to have intimate knowledge of all classes interfaces you use, even to get the most modests tasks done.
Personally, I don't see the advantage of Java above PHP when it comes to serverside programming.
For me PHP is easier to read, easier to understand, and easier to maintain. Above that: PHP is less errorprone since you don't need to know hundreds of classes/interfaces to do basic stuff.

Now I wonder, what made you post this?

Regards,
Erwin Moller
.



Relevant Pages

  • Re: HTML "scrape" causes loss of query string in URL
    ... >> in PHP with several PHP scripts interacting with one Java servlet, ... >> which interacted with several Java classes. ... > process to go from PHP to JSP. ...
    (comp.lang.java.help)
  • Re: e-commerce portal
    ... haven't had a single site that sees a need for this sort of hardening. ... Java anymore. ... PHP is a technology that has gotten a harsh rap due to large security ... Marketing at its worse, eh? ...
    (comp.databases.pick)
  • Re: [PHP] Semi-ADVERT, not really spam, sorry for it
    ... I appreciate your position but you need to understand that freelance PHP developers charge what they do because that's what the market will pay. ... I've recently taken on 2 PHP contractors and even though there's only 20 GBP difference in their daily rates one is miles better than the other, to the point where I'm having to check everything the slightly cheaper one is doing and I've found a number of killer bugs that would have caused major issues had they gone live. ... Email Java tutor needed! ... I thought that I might also utilize similar help against humble payments. ...
    (php.general)
  • Re: Security - PHP Vs Java
    ... against PHP and suggested Java. ... Their concern was that PHP could not ... be trusted to handle the security of the data adequately. ... My team have become fairly adept PHP programmers, ...
    (comp.lang.php)
  • Re: PHP security (or the lack thereof)
    ... But in the 1990s, Java was created. ... That PHP is relatively new with respect to computing ... PHP-CGI: .28 million hosts ... average "experience level" of each developer is equal, ...
    (Bugtraq)