![]() |
Should I drop PHP for Java?
I've been working for a dot com company for over a year now. The main website is java based and I realized alot of big companies out there also use java. I guess I'm looking for insight - career wise and for personal application.
I think Yahoo uses PHP (not entirely sure) but I know that Yahoo! Bookmarks uses the symfony framework (php). I also know that there are far more web hosts that offer apache w/ php than there are web hosts that offer tomcat w/ java/jsp/etc. But i guess that relates back to what kind of solution people are looking for or actually need. I guess I'm looking for advice if I should drop PHP and start learning Java instead. I read a lot of old articles from slashdot regarding Java/PHP and majority of the commenters stated that Java is superior in terms of scalibility and business logic but those articles were dated fairly old. Does PHP5 change any of that? And I guess the upcoming PHP6, will php ever surpass java? Any insight would be great guys. |
Java is 100% object oriented, big companies love it because it is scalable, the code is easier to mantain and you can use it for SOA (Service Oriented Architecture) which is the ultimate separation between business logic and programming logic.
I don't think you should totally drop PHP and forget about it, but learning Java won't hurt. Since you already know the concepts of web programming, Java won't be that hard to pick up. About PHP vs Java, it really depends on the point of view. As I said, Java is 100% OOP while PHP is more or less hacked together.. some parts of it are OOP while others are not. Java is a mature language while PHP is still growing, look at namespace support for example, it's being added now in PHP 5.3 while Java has had it for ages. |
Personally i havn't seen a company that uses Java anymore and while i learnt it at college my tutor said it wasnt as widely used anymore. Personally i prefer PHP. Thats my opinion though. I wouldn't totally drop PHP that would be a bad idea.
|
I agree, i think java is better suited to its original use I.E. desktop programming, PHP (in my optinion) was and is a web scripting language from conception hence why there was no native support for OOP and the support we have now had to be added later, where-as java is fully OOP aware because it has to contend with langauges such as C++.
I dunno really i have never used Java in a web scripting role before (only ever briefly used it for desktop programming) so i may be wrong. |
Quote:
|
Quote:
Javascript is heavily used and is being used more and more. AJAX is javascript. Most of your special effects on websites these days are javascript. |
Quote:
|
He's not talking about JavaScript, he's talking about the "real" Java and Java Server Pages (JSP) :-)
I have to disagree with Rendair a little. Java is still widely used at least in bigger companies and for bigger projects. Java and .NET are among the most requested languages nowadays, Microsoft created .NET to compete directly with Java. Here at my University they have this huge system that let's you signup for courses, check your grades, print some documents and a lot of other stuff, it's all JSP. Most of the research projects around here will also ask for some Java experience. |
Side tracking a bite - DeMo can you recommend a book for Java? If so, which one?
|
The Deitel series of books is very good.
I have the C++ one but a friend of mine has the Java one and it is as just as good. Take a look: Java: How to program It's a huge book (1500 pages) and also very expensive, but it's one of those books that you buy today and use for life. It covers a lot of ground, starting with classes and OOP concepts and down to Java fundamentals, APIs, GUI applications, databases, web programming and a lot lot more. |
@wGEric: I can't wait until the next ECMAScript specification where they do the 'official rename'.
@DeMo (and others): consider taking a look at Bruce Eckel's Thinking In Java, especially the free versions available online. In general, I only buy used books from Amazon vendors or trade on BookMooch. The other day I nabbed a nice O'Reilly book on C from BookMooch and I actually paid $2.96 for a (like-new) book on Hacking Google Maps from Amazon. I just can't justify going into a book store and plunking down $50.00 for a two year old text. I'll only do it if the book is VERY recent and has enough info to make it worth my while. O'Reilly's Safari site is good also, I've belonged to that for awhile. As to the OT and topic at hand, I personally recommend going for it and working with Java / JSP. It's not like PHP is going to be out of your grasp as a tool (which is what these languages are). |
PHP is a good starter language, it teaches you about programming languages and whatnot. Java is a good professional language to wrap your head around.
If you are sticking with web programming, PHP will rarely get you into a big company. Languages such as ASP.net or JSP are where it is at for positions like that. The websites I work on at my job get millions of hits a day (around 9 get over 10 million a day, and a couple dozen more get several hundred thousand a day), all without so much as a hiccup. When a company is dealing with millions of users, PHP simply can not compete with a compiled langauge. There are a few of them out there, of course (I believe facebook runs on PHP) Remember, life as a programmer will lead you through many languages. Don't really worry about learning a particular language, worry about understanding how programming works and similarities between languages. Any good programmer can pick up a new language pretty quickly, and most houses will let you ease into the job a bit, to give you time to learn the langauge. Once you learn a few major languages, it will get easier and easier. |
| All times are GMT. The time now is 11:15 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0