Java Or PHP ?

Discussion in 'Programming' started by abdelmomen, Oct 14, 2009.

  1. #1
    i just want to learn programing language but i dont know how to start ?

    is the php is the best way to start or java because it is more powerful ?

    i appreciate your help

    thanks
     
    Last edited: Oct 14, 2009
    abdelmomen, Oct 14, 2009 IP
  2. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it depends entirely on what you want to program

    both languages have similar syntax, php is a little less strict, but you should learn what you need
     
    Kyosys, Oct 14, 2009 IP
  3. seocopycat

    seocopycat Peon

    Messages:
    33
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It depends on your goals. I think php is more conventional and standard ... for instance you write a website in java and you want to sell your code or website, the pool of buyers interested in java source would be significantly less. You want to host your server ... less options if you need java hosting. If your company expands and you need to add on new employees to help program, you're not going to find java programmers as easily as you'll find php programmers. The learning curve may be less with PHP (honestly I don't know JSP that much).

    About 10 years ago I was at this position, I was trying to decide between PHP, ASP and (at the time) Allair's Cold Fusion. I picked PHP because I deemed it was the most standard, cheap (free), I would be more employable with the skillset, and the sites I designed would be more maintainable by others.

    My goals nowadays are designing (for the most part) my own websites, keeping costs low. My sites typically don't average over 100k pages, and I still think PHP is the best choice for those goals.

    On the other hand, if you want to work for a fortune 500 company, you're looking for big cash salary, you want to be virtually irreplaceable at your job, you're going to be working on huge projects that require superior enterprise architecture, java may be for you. I'm certain there are proponents of java out there, I'm also certain there are fewer of them than PHP proponents.
     
    seocopycat, Oct 14, 2009 IP
  4. ronyraskhit

    ronyraskhit Active Member

    Messages:
    137
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #4
    if yor are new in programming then i think php is better.
     
    ronyraskhit, Oct 14, 2009 IP
  5. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #5
    Depend on whether you want to work on application programming(application running on pc, mobile phones,etc) or web programming(application running on web server ) ?
     
    it career, Oct 14, 2009 IP
  6. jainsumit

    jainsumit Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    JAVA is Far far better than PHP. php is server side scripting language. not good for application program. Like mobile games,windows tools. Etc.

    But Php is very simple and good for earn money quickly....

    but if you want to take good taste of programming. then go with java.
     
    jainsumit, Oct 14, 2009 IP
  7. phones2me

    phones2me Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Java if you want to be a programmer

    PHP if you want to build websites quickly
     
    phones2me, Oct 14, 2009 IP
  8. Martin

    Martin Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It's better to start with JAVA language, because it will be much easier for you to test and debug your programs. I recommend you to download JDK from http://java.sun.com/javase/downloads/index.jsp and NetBeans IDE from http://www.netbeans.org/downloads/
     
    Martin, Oct 14, 2009 IP
  9. pneulameiro

    pneulameiro Peon

    Messages:
    440
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Maybe I should add a third option: pascal.it is a very good and simple language to start, and you will learn all the points that you need to learn in every programming language (ok, maybe not a functional language).
     
    pneulameiro, Oct 14, 2009 IP
  10. phones2me

    phones2me Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    good for learning - not good for much else
     
    phones2me, Oct 14, 2009 IP
  11. abdelmomen

    abdelmomen Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    thanks for all of you ,
    You are really very cooperative
     
    abdelmomen, Oct 14, 2009 IP
  12. organicCyborg

    organicCyborg Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #12
    It doesn't matter. If you want to build web apps, use PHP (but you can also use Java). If you want to build desktop apps, use Java (but.. you could use PHP if you were so inclined).

    People are going to tell you what their favorite language is, so you're not going to get any objective answers.

    Pick a language, any language (ok.. almost any language), find some tutorials, and write some code. That's how you learn. :)

    Don't get stuck in the process of picking a language. It's not as big of a deal as people let it on to be. It just seems that way because people stand by their favorite tools with such fervor.
     
    organicCyborg, Oct 14, 2009 IP
  13. superdav42

    superdav42 Active Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #13
    I personally learned them in this order. C, C++, Java, PHP, Ruby ...
    If I started with PHP first I probably would have learned nothing of real programming concepts such as Object oriented or abstraction and that sort of thing. When using PHP the temptation is just to make something that works and not care about style re-usability or anything else. So I would suggest you learn java first unless you want to start building website right away. With java you are forced to use classes and interfaces and that kind of programming style. For starting to learn java I suggest you purchase a good java book and download bluej It's a simple IDE for beginners. Let me warn you though it is really simple once you've stated to master Java you want to switch to a real IDE like netbeans.
     
    superdav42, Oct 14, 2009 IP
  14. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #14
    Both languages are quite profitable, but PHP is easier to learn.
     
    buldozerceto, Oct 14, 2009 IP
  15. Flux

    Flux Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    For beginner like you, I suggest you learn php first, after you get familiar with programming stuff you can move on to learn java
     
    Flux, Oct 15, 2009 IP
  16. stevestuff

    stevestuff Well-Known Member

    Messages:
    631
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    185
    #16
    For web design, go with PHP - maybe I'll hire you.
    BTW: WordPress (popular as h@ll) is mostly done with PHP
     
    stevestuff, Oct 15, 2009 IP
  17. phones2me

    phones2me Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    another thing to bear in mind is the cost - java hosting is considerably more expensive than php
     
    phones2me, Oct 15, 2009 IP
  18. abdelmomen

    abdelmomen Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    yes php hosting is almost free
     
    Last edited: Oct 15, 2009
    abdelmomen, Oct 15, 2009 IP
  19. KsNitro

    KsNitro Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #19
    As a few others have said, it depends on what you want to do. Both languages are tools to build some sort of solution or application. Pick the right one for the job.

    Depending on what your interests are, learning the fundamental concepts such as data structures and OOP are more important. Once you learn the concepts with a language you can migrate to other languages. Java will be a better learning language. In terms of web apps php is standard in most free software (wordpress, joomla, phpbb forums, etc..).
     
    KsNitro, Oct 15, 2009 IP
  20. dwayne12

    dwayne12 Well-Known Member

    Messages:
    184
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #20
    Java is crap, and PHP isn't too far behind it. I still love PHP, but Python is much better. I'd suggest teaching yourself Python and then learning Django or something.
     
    dwayne12, Oct 15, 2009 IP