NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page What Is Harder, JavaScript Or PHP?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-30-2008, 04:51 AM THREAD STARTER               #1 (permalink)
New Member
 
LiberMan's Avatar
Join Date: Jan 2008
Posts: 4
LiberMan is an unknown quantity at this point
 



What Is Harder, JavaScript Or PHP?


Hey all,

Maybe seems like an odd question to ask but the reason I ask is because I am learning JavaScript which I find fairly hard to pick up and I am going to start learning PHP soon and so I wondered if I am going to find it easier or harder than JavaScript?
__________________
Cuban Hotels E-Commerce
LiberMan is offline  
Old 01-30-2008, 06:21 AM   #2 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
I wouldn't say 1 is harder than the other. PHP support and documentation in my opinion is a lot better than that of javascript.

Once you know 1 language however picking up another is a lot simpler.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 01-30-2008, 11:39 AM   #3 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




I found PHP increcibly easy and I picked up the basics in an hour. Javascript, I've never been able to get the hang of - so I'll say Javascript is harder.
Barrucadu is offline  
Old 01-30-2008, 11:53 AM   #4 (permalink)
Senior Member
Join Date: Apr 2005
Location: Joliet, Illinois
Posts: 1,177
RageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to behold
 


Child Abuse
Originally Posted by Mikor
I found PHP increcibly easy and I picked up the basics in an hour. Javascript, I've never been able to get the hang of - so I'll say Javascript is harder.
I similarly agree. For JavaScript I always need to look back at references to get the right code but have no issues with PHP. Which IMO, is much better and more useful but sometimes you need to resort to JavaScript. *cough*AJAX*cough*
????: NamePros.com http://www.namepros.com/programming/425510-what-is-harder-javascript-or-php.html

-RageD
RageD is offline  
Old 01-30-2008, 12:35 PM   #5 (permalink)
Senior Member
 
Constantin's Avatar
Join Date: Jan 2006
Posts: 1,130
Constantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud ofConstantin has much to be proud of
 



I agree, PHP is a lot easier than Javascript.

But also, it's a lot easier to make a big security mistake in PHP than in Javascript
Constantin is offline  
Old 01-30-2008, 01:07 PM   #6 (permalink)
Account Closed
Join Date: Jan 2008
Posts: 28
litrail is an unknown quantity at this point
 



I think JavaScript is harder than PHP because it doesn't have "all-in-one" documentation. PHP's entire documentation is in php.net
litrail is offline  
Old 01-31-2008, 12:29 AM   #7 (permalink)
New Member
Join Date: Oct 2006
Location: Texas, US
Posts: 19
RexInTheCity is an unknown quantity at this point
 



I'm going to have to agree with everyone here, php is a lot easier than javascript. I find myself doing a lot of googling when working with javascript but with php it is usually a one stop solution at php.net
RexInTheCity is offline  
Old 01-31-2008, 12:35 AM   #8 (permalink)
NamePros Regular
 
-PS-'s Avatar
Join Date: Jun 2006
Location: Sydney
Posts: 251
-PS- will become famous soon enough-PS- will become famous soon enough
 



You might want to consider doing php first, and then moving into javascript. i am suggesting this from a functional side, as once you can get your website doing things you want (ie dynamic news) you can start to find usethings to use javascript for (i have always found it easier to learn when you have a purpose).

Also you might want to consider using one of the javascript libraries like mootools, it makes life alot easier with javascript, and is pretty much cross browser compatible.
-PS- is offline  
Old 02-02-2008, 02:27 AM   #9 (permalink)
New Member
Join Date: Feb 2008
Posts: 9
jimmysanders is an unknown quantity at this point
 



php is much easier, yes the documentation is glorious and makes it VERY easy to learn. You don't have to dig all over the net to find an answer. Its almost much easier to debug than javascript.

Javascript you can do all kinds of weird stuff making it hard to understand whats going on. It also seems that stuff isn't very intuitive as it is with php. Or perhaps its just that when coding javascript its much easier to run into problems than php.
jimmysanders is offline  
Old 02-02-2008, 03:12 PM   #10 (permalink)
NamePros Regular
Join Date: Oct 2003
Location: Sweden
Posts: 395
cerebus has a spectacular aura aboutcerebus has a spectacular aura about
 


Animal Rescue Wildlife Animal Cruelty
Have to agree with the rest. PHP has a good documentation and is parsed on the server side so you have total control of the results. With javascript there's a good reason why alot of people use code libraries for some very core functions of their scripts. Even if you have a good working solution in one browser, you really have to test it in all important browsers to be sure.
cerebus is offline  
Old 02-02-2008, 04:37 PM   #11 (permalink)
NamePros Regular
Join Date: Aug 2007
Location: West Sussex - England
Posts: 869
Shane is a splendid one to beholdShane is a splendid one to beholdShane is a splendid one to beholdShane is a splendid one to beholdShane is a splendid one to beholdShane is a splendid one to beholdShane is a splendid one to beholdShane is a splendid one to behold
 


Breast Cancer Special Olympics Protect Our Planet
I agree with everyone here. But also, PHP is more useful. Sure JS can look nice but PHP is the backbone!
Shane is offline  
Old 02-02-2008, 04:45 PM   #12 (permalink)
Senior Member
Join Date: Apr 2005
Location: Joliet, Illinois
Posts: 1,177
RageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to beholdRageD is a splendid one to behold
 


Child Abuse
Yeah I'm sticking to my initial but just some more input. Learn PHP first. Build your site using PHP. It is much better for the framework and functionality of your sites. However, JavaScript is very nice for those add-on features so don't neglect it!

-RageD
RageD is offline  
Old 02-02-2008, 06:56 PM   #13 (permalink)
NamePros Regular
Join Date: Jan 2007
Posts: 239
NewYorkBum has a spectacular aura aboutNewYorkBum has a spectacular aura about
 



Learn HTML first, and CSS, and only then learn PHP. Unless you know html, there is no point to move to php. Trust me on that one, you will be banging your head to the wall next to your PC with out proper knowledge of html and css.
JavaScript != PHP. 2 different languages. You can code a website with php. But you can't do that with JavaScript. JavaScript is a supportive language that helps you create fancy/shmancy links/buttons/ and stuff like that.
NewYorkBum is offline  
Old 02-08-2008, 04:52 AM   #14 (permalink)
New Member
Join Date: Feb 2008
Location: Romania
Posts: 19
vDesign is an unknown quantity at this point
 



Focus on PHP and only use JavaScript to complement it. You will find plenty of examples on the web and build nice JavaScript scripts from them but always keep your JavaScript as simple as you posibly can since JavaScript is browser dependent.

Learning a language means in my opinion understanding how variables are processed, how to write functions and classes. You will never memorise all the predefined functions since it's impossible and also stupid. So PHP wins from this point of view with an easy to use documentation (like already mentioned).
????: NamePros.com http://www.namepros.com/showthread.php?t=425510

Also there is no point concentrating on JavaScript over PHP. JavaScript can easely be turned off, injected etc etc. DHTML (dynamic HTML) is nice to use but as long as you code the JavaScript for all browser platforms.

All in all it's hard to compare the two from the utility point of view. However you will find the languages structured in a similar way. Function look the same, they even have similar predefined functions since well, any language tries to cover day-to-day requirements programmers will encounter.
vDesign is offline  
Old 02-08-2008, 05:56 AM   #15 (permalink)
NamePros Regular
 
nicholas's Avatar
Join Date: Dec 2003
Location: The Beach
Posts: 584
nicholas is a glorious beacon of lightnicholas is a glorious beacon of lightnicholas is a glorious beacon of lightnicholas is a glorious beacon of lightnicholas is a glorious beacon of lightnicholas is a glorious beacon of lightnicholas is a glorious beacon of lightnicholas is a glorious beacon of light
 



They have different purposes, PHP for the back-end, and Javascript for the front-end. On-screen effects (fade-ins, graphics effects, etc.) are the forte of JS while PHP does the heavy-lifting in the back end.

It isn't so much as one being harder than the other, as much as Javascript just having so many options to think of (click event, etc.) that you'll have to consider many different things and reacitons to events that it will feel intimidating at first, unlike PHP that is more straightforward in the beginning even if both are more or less similar in the level of work it needs to master.
????: NamePros.com http://www.namepros.com/showthread.php?t=425510

Personally I'd liken PHP to learning the guiter-- it's relatively easy to learn but takes a lot of work to master; while Javascript is like the piano-- it takes a lot of work to master but in the begining there are just too many keys to consider that it feels more intimidating and thus people feel like it's harder to learn in the beginning.
__________________
Newsback.com -- Commentary and backstories of the news
-----------------------------------------------
nicholas is offline  
Old 02-12-2008, 01:31 AM   #16 (permalink)
NamePros Member
Join Date: Jan 2007
Posts: 77
pranavbhat is an unknown quantity at this point
 



i agree with nicholas...javascript and php are not supposed to be compared....!!
pranavbhat is offline  
Old 02-16-2008, 02:56 PM   #17 (permalink)
New Member
Join Date: Jan 2008
Posts: 7
Leox Adir is an unknown quantity at this point
 



There aren't too many syntax that's same in PHP and Javascript. Almost everything is different. It depends on what languages you have in your backpack, if you've learned C it will be very easy for you to learn PHP.
Leox Adir is offline  
Old 02-16-2008, 03:18 PM   #18 (permalink)
NamePros Regular
Join Date: Feb 2007
Location: canada
Posts: 332
loko123 is on a distinguished road
 


Third World Education Save a Life
for me, php is extremely useful and easier than javascript. i like to server side of php more anyway. but sometimes you need to use one or another, each one has its own advantages.
__________________
submit your proxy links free to Proxy list.
proxies: secrex.info
Cat Eyes Proxygirl
"Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime."
loko123 is offline  
Old 02-17-2008, 09:18 AM   #19 (permalink)
NamePros Member
Join Date: Aug 2006
Posts: 197
Dreads is on a distinguished road
 



I am going with javascript , yet javascript is the most rewarding lol
Dreads is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:44 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger