Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   JAVA or PHP ? (https://www.warriorforum.com/programming/884400-java-php.html)

lukewright 27th December 2013 12:43 AM

JAVA or PHP ?
 
Java or PHP is best for web application?

softwarewarden 27th December 2013 01:55 AM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by lukewright (Post 8817350)
Java or PHP is best for web application?

it depends on you. I think php is the one that's more wildly used. but java/jsp is used by some big companys.

sheikmd 27th December 2013 04:40 AM

Re: JAVA or PHP ?
 
Php is Best. It Easy to use. Java is also used in php for advanced functions.

brutecky 27th December 2013 09:23 AM

Re: JAVA or PHP ?
 
Neither. PYTHON baby!

shahriyar 28th December 2013 10:14 PM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by lukewright (Post 8817350)
Java or PHP is best for web application?

Simple put, Java is more difficult to learn and much less used than PHP. PHP is easy to learn and has more jobs in the market.

Java can be used to develop software, website (JSP), web applets etc. etc. (a lot more!)

PHP is 'mainly' used for websites.

MONEX BANK 29th December 2013 06:20 AM

Re: JAVA or PHP ?
 
it depend on your need

I this PHP is more simple than JAVA...
There are many sources and tutorial of PHP if find dificult in coding

if you working on software enginer maybe JAVA is the right choice

nettiapina 29th December 2013 08:11 AM

Re: JAVA or PHP ?
 
Depends on the project, your skillset, integrations, and tech that is in place already. We need more context.

AdnanMahmud 29th December 2013 08:45 AM

Re: JAVA or PHP ?
 
PHP is best for now a days but Javascript is getting popular after coming node.js

lukewright 30th December 2013 02:13 AM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by sheikmd (Post 8817681)
Php is Best. It Easy to use. Java is also used in php for advanced functions.

Hi sheikmd,
how java is used in PHP language? Its possible

nettiapina 30th December 2013 02:57 AM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by AdnanMahmud (Post 8822477)
PHP is best for now a days but Javascript is getting popular after coming node.js

Javascript is getting more popular, but it has nothing to do with the topic.

Shopitpress 30th December 2013 06:38 AM

Re: JAVA or PHP ?
 
i would select php. because it's easy and cheap to implement. loads of developers are there. java development will be much more expensive.

buysellbrowse 30th December 2013 01:54 PM

Re: JAVA or PHP ?
 
As a sysadmin, I prefer php over java applications anytime on my servers. Java apps are memory-hungry and take far more system resources to run than the equivalent php code.

aravindkumar 3rd January 2014 07:26 AM

Re: JAVA or PHP ?
 
PHP is more easy to implement than Java. But many Enterprise applications are developed by Java.

efka 3rd January 2014 09:35 AM

Re: JAVA or PHP ?
 
It depends on you mate! Think of time you want and can invest into programming. Java is more complicated and will take the hell of the time to learn it, and PHP is more simpler.

And also depends what you want to do later with it. If you'll be looking for a job, earnings with JAVA would be higher than with PHP (in most cases). So there are some things to consider before jumping on any chosen programming language. Also there are many other languages like C++ and previously mentioned Python and etc.

stufftheme 3rd January 2014 01:28 PM

Re: JAVA or PHP ?
 
php is good if you want a website
but java is used where you want more security and reliability

TechEx 3rd January 2014 01:49 PM

Re: JAVA or PHP ?
 
I think PHP is best, it's easy to use...

TimothyEyton 3rd January 2014 08:22 PM

Re: JAVA or PHP ?
 
You have to be careful as some people on this thread might get you confused. Javascript has nothing to do with Java and is a completely different language.

Now that we've cleared that up, my opinion would be that you start with learning PHP, but then eventually learn both languages.

Yes, PHP is a lot easier to learn. It's used in almost every website, especially since everyone seems to be using Wordpress. That makes it a bit hard for Java to compete with.

Java has a lot going for them though. We're in the mobile era these days. There's cellphones and tablets everywhere you look. The funny thing is... Java is heavily used on mobile devices. Especially since most of them don't even support flash. You can make mobile apps, games, etc. This makes Java very valuable to learn. I've even seen big companies around here hiring experienced Java Programmers and paying in the 6 figures.

But anyways, they're both great. But you may have an easier time learning Java after you have mastered some other programming languages.

Luca tall 4th January 2014 06:09 AM

Re: JAVA or PHP ?
 
It depends on developer interest.PHP and JAVA both are best for web development .
In my opinion, PHP is best because of its simplicity, easy to use and implement. but for game development Java is better than other language.

estpog 6th January 2014 02:15 PM

Re: JAVA or PHP ?
 
Php is simpler to learn than Java

jsr1969 6th January 2014 04:48 PM

Re: JAVA or PHP ?
 
Generally speaking, PHP is best for most web applications, as most web applications are fairly simple, small scale data capture, data manipulation, and data presentation programs.

Java is a more complex language that is used primarily for intranet application development; that is to say, applications that are designed specifically for use in a limited or restricted access network, generally in a corporate setting. Most Java applications are designed to have a significant or even the primary bulk of their operations running on the client, a.k.a. the user's computer rather than on the host, a.k.a. provider's computer.

PHP programs run on the host, a.k.a. provider's computer or web server, with the client (user's) computer running a browser with comparatively limited memory and computing power. It is true that web browsers on clients (users) machines regularly use small java applets, ad-ons, or widgets. This is typically for the presentation of special kinds of content that the browser is not able to run natively, such as PDF documents, Flash animations, which require additional computing power for manipulation that cannot be easily provided by the host machine or browser.

So the question of which is best for a web application can only accurately be answered with further clarification as to the size, scale, and overall computational requirements of the web application you have in mind. The more computationally complex, the more likely you will need to use Java, the more simple and straight forward, the more likely PHP will be your best (fastest, easiest) development language.

GJG 6th January 2014 06:09 PM

Re: JAVA or PHP ?
 
It depends on your end goal.
If you are just building web applications or websites for yourself, I would go with PHP.
If you are looking to be employed in this field, you could eventually learn both languages but I would start with PHP.
Once you learn PHP, you will find it much easier to modify existing platforms such as WordPress websites. Having said that, if you are just looking to create your own websites, I would jump straight into WordPress and build your knowledge as you go. You can do a lot with Content Management Systems without needing to learn a programming language from scratch.

raypal 7th January 2014 04:06 AM

Re: JAVA or PHP ?
 
PHP is best it's very easy

Mollywhite 8th January 2014 01:06 AM

Re: JAVA or PHP ?
 
Php, of course.

Prothervents 8th January 2014 03:53 AM

Re: JAVA or PHP ?
 
Actually PHP shouldn't be compared to Java because PHP is a web scripting language only, while Java can be in multiple platforms (web, desktop-app, mobile-app, etc.)

If you will just exclude other platforms of Java and be just in the web platform, PHP would win this since PHP has more features, and is easier to understand.

paulgl 8th January 2014 12:22 PM

Re: JAVA or PHP ?
 
Crazy question. You can put java(script) in php...
php has nothing to do with needing, wanting, or anything else
javascript related.

Unless of course the person really means java...then you have
another go round of the inane.

People have been advised to disable java...I do.

Paul

sham2 9th January 2014 03:13 AM

Re: JAVA or PHP ?
 
Php is best for web development. Jave is use for some other function. Php is basic for dynamic website . Php is easy to understand and user friendly . You can easy edit php code for your website.

vaghela dev 9th January 2014 06:48 AM

Re: JAVA or PHP ?
 
PHP best I like PHP

designitbuddy 10th January 2014 01:42 PM

Re: JAVA or PHP ?
 
I think php is the best its more user friendly i love php.

tofazzel71 10th January 2014 01:45 PM

Re: JAVA or PHP ?
 
How i learn PHP?

shehryarKhan 10th January 2014 03:32 PM

Re: JAVA or PHP ?
 
that is totally up to us what to choose i JAVA is not very easy programming language it is tough while PHP is totally open source and easy to learn for me :)

Jasonsmith123 11th January 2014 04:26 AM

Re: JAVA or PHP ?
 
I think both are good for web development. Depends on what you are expert at. :D

aircompressor007 11th January 2014 11:16 AM

Re: JAVA or PHP ?
 
PHP is the best for web application and java is best for game application and many other application.

wayfarer 11th January 2014 11:24 AM

Re: JAVA or PHP ?
 
If you are a newbie, this is probably the most confusing thread you'll ever read. Unfortunately these sort of threads tend to degenerate pretty fast.

customs 11th January 2014 11:29 AM

Re: JAVA or PHP ?
 
A lot of Engrish in this thread :-)

PHP all the way. Even Facebook uses a customized PHP engine.

techmyview 17th January 2014 09:52 AM

Re: JAVA or PHP ?
 
It is like asking - Do I become an engineer or a doctor? It depends on your taste, your desire. Honestly speaking PHP is easier to use, but you get more flexibility with JAVA in terms of hosting environment, backend database etc.

rohit1987 19th January 2014 01:38 AM

Re: JAVA or PHP ?
 
PHP is best for web application. Java is more complex and hard.

Zaphod Beeblebrox 19th January 2014 02:19 PM

Re: JAVA or PHP ?
 
It is simple:

JavaScript - "client side language", scripting language that allows you to create dynamic HTML pages. It is interpreted and executed by the browser on your PC. It is essentially a toy language, but latter thanks to AJAX hype, it evolved. But still, it has ugly syntax, and it is not truly object-oriented. Node.js is an abomination.

PHP - Nice server side language, powerful, generates HTML pages. It used to be C like procedural language, but evolved to OO (Object oriented). On serverside it is executed by interpreter. It is able to pick up data from database, read and parse files, etc.

JAVA - has nothing to do with JavaScript. Java is a programming language, the core set of libraries, and virtual machine platform that allows you to create compiled programs that run on nearly every platform. It can be used to build web applications and sites.
Heavy enterprise grade tool.

JavaScript - easy to learn, but can be abused by inexperienced developers.

PHP - medium-easy to learn, but it is easy to create unmaintainable crappy web app.

JAVA - hard to master. Requires a developer highly proficient in writing an object-oriented code and with good understanding of design patterns and practices.

vikas yadav 20th January 2014 10:43 AM

Re: JAVA or PHP ?
 
Both, Java and Php are best to develop web application. It totally depends upon the client requirements and the environment on which you are using web applications. However, To learn java is a difficult tasks and you need to give more time to learn java as compared to php. java can be used in the multithreaded environment while php is not.

Brandon Tanner 20th January 2014 01:28 PM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by Zaphod Beeblebrox (Post 8881605)
Node.js is an abomination.

Just curious... why would you say that? I've been using Node a lot over the past year or so, and I love it (and for the record, I have several years coding experience in a handful of different languages).

Of course... Node wouldn't be the best choice for certain types of projects. But that is true of any language/framework. For the types of projects that Node is good for though, I think it absolutely rocks.

balu 20th January 2014 10:39 PM

Re: JAVA or PHP ?
 
Actually PHP is easy and widely used in IM Industry.
JAVA is used in corporate world for developing larger programs.

Node is also used to develop web application. It can be compared with
PHP+Apache2.

The summery what I suggest is start with PHP.

Zaphod Beeblebrox 21st January 2014 06:34 PM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by Brandon Tanner (Post 8884397)
Just curious... why would you say that? I've been using Node a lot over the past year or so, and I love it (and for the record, I have several years coding experience in a handful of different languages).

Of course... Node wouldn't be the best choice for certain types of projects. But that is true of any language/framework. For the types of projects that Node is good for though, I think it absolutely rocks.

Well, it all comes from JavaScript. It is not a real OO language. JavaScript has some pretty big design flaws.

Second, you won't see good IDE or refactoring tool for JS.

Next, how to handle large codebase with Node.js, what happens when app. grows to such proportions as to require modules and namespaces? What If you have large team?

Next, security. JavaScript used to run in a sandboxed environment. Now it can access filesystem?

BTW. I like and use jQuery, Knockout.js, Durandal etc. That is where its (JS) place is.

azhar 22nd January 2014 04:52 AM

Re: JAVA or PHP ?
 
Php is more suitable, but you should look into the requirement of your project. After that you will be able to decide where you should go, for php or java.

Brandon Tanner 23rd January 2014 06:56 AM

Re: JAVA or PHP ?
 
Quote:

Originally Posted by Zaphod Beeblebrox (Post 8887998)
Well, it all comes from JavaScript. It is not a real OO language.

While Javascript's implementation of OO may not be as elegant as other languages, it does have basic OO capabilities, if your project requires it (see this).

Quote:

Originally Posted by Zaphod Beeblebrox (Post 8887998)
JavaScript has some pretty big design flaws.

I reckon that's a personal preference. I would agree that certain aspects of the language could be improved (but I think that about ALL languages). Overall, I think it's pretty decent though. Especially if you use a good framework like jQuery.

Quote:

Originally Posted by Zaphod Beeblebrox (Post 8887998)
Second, you won't see good IDE or refactoring tool for JS.

Lots of IDE's out there that support JS. WebStorm, Eclipse, Netbeans, Aptana, Visual Studio, just to name a few. As per refactoring... if you code correctly in the first place, that should never be an issue!

Quote:

Originally Posted by Zaphod Beeblebrox (Post 8887998)
Next, how to handle large codebase with Node.js, what happens when app. grows to such proportions as to require modules and namespaces? What If you have large team?

You can break up your code into as many external files as needed to keep everything organized. Also, flowcharts help immensely for managing large codebases!

Quote:

Originally Posted by Zaphod Beeblebrox (Post 8887998)
Next, security. JavaScript used to run in a sandboxed environment. Now it can access filesystem?

In my opinion, that's a good thing! It opens up way more potential uses for Javascript.

Munnawar abbas 23rd January 2014 11:44 PM

Re: JAVA or PHP ?
 
php is simple than java

Munnawar abbas 23rd January 2014 11:45 PM

Re: JAVA or PHP ?
 
yes both are good but php is simple than java

Munnawar abbas 23rd January 2014 11:48 PM

Re: JAVA or PHP ?
 
sir can u help me in php or java language..

please tell me the good book of java or php

azhar 24th January 2014 05:43 AM

Re: JAVA or PHP ?
 
There are lots of eBooks on internet, you can download and even you can learn by online. Lots of website have their online tutorials.

vaghela dev 24th January 2014 07:05 AM

Re: JAVA or PHP ?
 
Dear sir,

I am Working on php that's why i like php.

PHP is best.

Regard
Vaghela Dev

Zdenek Koukol 25th January 2014 11:39 AM

Re: JAVA or PHP ?
 
Best thing will be start with PHP and when you get more into, than you can continue with Java. I am working for example on one project, where I am using both together with Oracle. So you will never know what you will need ... but know both is very handy.

mlcmartin 26th January 2014 09:00 AM

Re: JAVA or PHP ?
 
Go with functional programming in JavaScript on NodeJS. Neither PHP nor Java is really "functional". By functional I mean a language that is centered around functions that you pass around the program. JavaScript is functional and this really makes up for elegant solutions.

Consider this:

[1, 4, 5, 2, 0].filter(function(x){return x<=2;}).map(function(x){return x*2;}).reduce(function(a, b){return a+b;});

this is equivalent to first picking all values that are less than or equal to 2, then multiplying each value by 2 and finally summing them all up into a result. It's very fast and efficient. This is javascript for server side running on Node JS.


All times are GMT -6. The time now is 12:32 AM.