ajg813 Posted November 14, 2011 Share Posted November 14, 2011 What are some of the advantages and disadvantages of using PHP over JavaScript? Do you have a preference? Do you find it is easier or harder to understand than PHP? Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted November 14, 2011 Share Posted November 14, 2011 What are some of the advantages and disadvantages of using PHP over JavaScript? Do you have a preference? Do you find it is easier or harder to understand than PHP? The two are hardly comparable as they're generally (with the exception of Node.js) used for two entirely different things and are executed in two entirely different environments. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted November 17, 2011 Share Posted November 17, 2011 horse and carriage or motor vehicle? Quote Link to comment Share on other sites More sharing options...
Adam Posted November 17, 2011 Share Posted November 17, 2011 horse and carriage or motor vehicle? Well to be fair, they would be comparable. They both do the same thing really.. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted November 17, 2011 Share Posted November 17, 2011 js and php are just as comparable: - Both are scripting languages; Both are modes of transportation - One works with the file system one doesn't; One poops one doesn't - One requires a server one doesn't; One is fast one is slow - One can do ajax one can't; One needs an oil change one doesn't - One same code works in all browsers other doesn't; One has built in satellite radio one doesn't - Both are fun to program; Both die - Both have similar functionality (Math, Strings, Classes); Both need food to keep it moving - One runs in the browser one doesn't; One has hooves one doesn't - One is as fast as the browser it is run in one is as fast as the server it is run on; One needs to be brushed one doesn't See lots of similarities, and differences. Quote Link to comment Share on other sites More sharing options...
salathe Posted November 17, 2011 Share Posted November 17, 2011 js and php are just as comparable: - Both are scripting languages; Both are modes of transportation - One works with the file system one doesn't; One poops one doesn't - One requires a server one doesn't; One is fast one is slow - One can do ajax one can't; One needs an oil change one doesn't - One same code works in all browsers other doesn't; One has built in satellite radio one doesn't - Both are fun to program; Both die - Both have similar functionality (Math, Strings, Classes); Both need food to keep it moving - One runs in the browser one doesn't; One has hooves one doesn't - One is as fast as the browser it is run in one is as fast as the server it is run on; One needs to be brushed one doesn't See lots of similarities, and differences. Worst. Comeback. Ever. Quote Link to comment Share on other sites More sharing options...
Adam Posted November 17, 2011 Share Posted November 17, 2011 While I get the point, those comparisons were awful. One poops? My point was that they both ultimately achieve the same thing, where as JS and PHP do not. You could have put anything in there... Quote Link to comment Share on other sites More sharing options...
Philip Posted November 17, 2011 Share Posted November 17, 2011 One poops? Ahh, that's my favorite image to steal Quote Link to comment Share on other sites More sharing options...
premiso Posted November 17, 2011 Share Posted November 17, 2011 My point was that they both ultimately achieve the same thing Whoa whoa whoa, hold on a second...a car does not fertilize the road like my amazing horse does, that is not the same thing at all....but wait a second!!! I got it, a Car does fertilize the road, because it can have an oil leak, so really my horse only fertilizes the dirt roads. Interesting! Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted November 17, 2011 Share Posted November 17, 2011 ...so, this is where bad analogies go to die. Good to know. Quote Link to comment Share on other sites More sharing options...
premiso Posted November 17, 2011 Share Posted November 17, 2011 ...so, this is where bad analogies go to die. Good to know. s/die/thrive/ Had to correct you on that Quote Link to comment Share on other sites More sharing options...
Maq Posted November 17, 2011 Share Posted November 17, 2011 @ajg, I think you're a bit confused. JS has a few server side capabilities but that's not what it's primarily used for. I would suggest reading up on the differences first, try googling "php vs javascript" or "server side vs client side". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.