1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP or Java?

Discussion in 'Programming' started by charlesbrown678, Feb 9, 2012.

  1. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #81
    It depends on what apps and where they'll be running.
    SEMrush
    Java is good for multi-platform development - write once, run many. It's useless for system programming. It's useless for most scientific apps. It's useless for apps that will run on i-devices (iPhones, iPads, etc.) It's almost totally useless for communications apps. All-in-all, it's useful for FAR fewer classes of apps than it's useless for. It's basically for situations in which you can't be bothered to have a multi-platform development team. IOW, it promotes bad programming habits.
     
    Rukbat, Mar 26, 2012 IP
    SEMrush
  2. michal26

    michal26 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #82
    Java is the best and remain be the best.
     
    michal26, Mar 26, 2012 IP
  3. Saad Host

    Saad Host Greenhorn

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #83
    I think java is the best
     
    Saad Host, Apr 5, 2012 IP
  4. DerickThomas

    DerickThomas Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #84
    I think Java is better than PHP, because of following points:
    1.Java is more of an industry standard, whereas PHP seems to be popular among hackers and hobbyists.
    2.Java provides better separation of layers - key for testability. PHP has all the code embedded in the page, so you have to run it through a browser to test if database connections work (for instance).
    3.Java is more scalable.
    4.More for-profit organizations use it.​
     
    DerickThomas, Apr 6, 2012 IP
  5. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #85
    Oh god, that is wrong on so many levels

    look-at-him-and-laugh.jpg
     
    GMF, Apr 6, 2012 IP
  6. CodeBeast

    CodeBeast Well-Known Member

    Messages:
    462
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    105
    #86
    Guys,you just don't know JAVA and you're trying to prove that php is safe...There is no way to make php safer and better than java.

    As I love to say: Haters gonna hate. ;)
     
    CodeBeast, Apr 6, 2012 IP
  7. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #87
    Buddy just because you know a certain programming language doesn't mean that it is superior to another. Do you even know what PHP is for? Do you?To be honest, I don't know much about Java, but saying something like "PHP is the best, nothing can beat it" is just plain and outright stupid. I think I wrote it before, but PHP and JAVA have total different applications. It's like comparing a plane and a boat.
    This forum is written in PHP (vBulletin)
    Wordpress is written in PHP
    MediaWiki is written in PHP (Wikipedia uses it)
    Facebook uses PHP
     
    Last edited: Apr 6, 2012
    GMF, Apr 6, 2012 IP
  8. www.seotest.com

    www.seotest.com Well-Known Member

    Messages:
    77
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    118
    #88
    for strictly web solutions is better PHP
    for desktop/mobile or with combination with web is JAVA better
    but i mean better then JAVA is python
     
    www.seotest.com, Apr 7, 2012 IP
  9. jhony king

    jhony king Member

    Messages:
    460
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #89
    You should learn both because both language use for different function so don't concentrate on 1 language get knowledge about both.:)
     
    jhony king, Apr 10, 2012 IP
  10. raspms

    raspms Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #90
    Java is the best..
     
    raspms, Apr 10, 2012 IP
  11. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #91
    facepalm.png

    These bots man, these bots...
     
    GMF, Apr 11, 2012 IP
    sarahk likes this.
  12. zeekhaa

    zeekhaa Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #92
    It depends actually, Java suits for different and PHP for different.
     
    zeekhaa, Apr 12, 2012 IP
  13. jaxon28

    jaxon28 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #93
    If you want a web application with user interface, Java suits that idea best. PHP is best for server side manipulation of data.
     
    jaxon28, Apr 15, 2012 IP
  14. hoangvu

    hoangvu Greenhorn

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #94
    I like Php than java, It's simple and make websites easily
     
    hoangvu, Apr 16, 2012 IP
  15. war_machine

    war_machine Active Member

    Messages:
    1,322
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    53
    #95
    PHP is built specifically to serve HTML to a browser. It became popular because it worked very well, was easy to pickup, and had excellent documentation early on. It's a very "scrappy" language focused on getting things done. And I personally work on PHP.
     
    war_machine, Apr 24, 2012 IP
  16. lamino

    lamino Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #96
    Java and PHP don't play in the same level

    PHP is for web programming

    Java is for everything else...

    JSP is the Java equivalent of PHP
     
    lamino, Jun 27, 2012 IP
  17. Neelk

    Neelk Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #97
    Java is a lot itself without any doubt..it can be use for every type of application but PHP is used for web application only..
     
    Neelk, Jul 6, 2012 IP
  18. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #98
    Except client-side web development, operating system development, embedded controller development ...

    IOW, there are more things Java can't be used for than there are things it can be used for. It has one specific application, it's not a universal programming language.
     
    Rukbat, Jul 6, 2012 IP
  19. NetStar

    NetStar Notable Member

    Messages:
    2,464
    Likes Received:
    539
    Best Answers:
    21
    Trophy Points:
    245
    #99
    You will find out that for 95% of Web Development it is quite irrelevant which server side language you use. The *majority* of web sites that require programming are generally just applications that validate form data and interact with a database and that is all. Sophisticated websites will most likely use a framework or helper tools that are widely available for all programming languages. Still in the end it's a web site the merely validates and creates/retrieves/updates/deletes entries in a database.

    Personally I would recommend PHP for most of your web programming needs. It's easy, widely supported and gets the job done usually hassle free and quickly. But someone with a Java background may feel more comfortable using Java.

    If you want to easily distribute scripts PHP is the right tool for the job.

    If you want to develop a desktop application Java is the right tool for the job.

    If you need a programming language that is easy to interact with a database PHP is the right tool for the job.

    If you want to develop for the Android mobile phone Java is the only tool for the job.

    If you want to use a language that was made specifically for the web PHP is the right tool for the job.

    If you want to develop applets that run via your web site Java obviously has to be used.....but Flash would be more supported and acceptable.
     
    NetStar, Jul 6, 2012 IP
  20. SEO Magician

    SEO Magician Greenhorn

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #100
    The advantage of Java is code libraries. Chances are, someone's already done whatever it is you'd like to do with Java, and some diligent searching should turn up a code library that does what you need done. True, there are repositories of PHP, but they're far less comprehensive. Also, the IDEs for Java are more sophisticated, as the language has been around longer. True, the learning curve is steeper, but if you're building a robust application, it may be that Java is the best tool for the job.

    Hope this helps.

    Jon
     
    SEO Magician, Jul 6, 2012 IP