| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jan 2008
Posts: 4
![]() | 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? |
| |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: Apr 2005 Location: Joliet, Illinois
Posts: 1,177
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/programming/425510-what-is-harder-javascript-or-php.html -RageD | ||||
| |
| | #7 (permalink) |
| New Member Join Date: Oct 2006 Location: Texas, US
Posts: 19
![]() | 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 |
| |
| | #8 (permalink) |
| NamePros Regular Join Date: Jun 2006 Location: Sydney
Posts: 251
![]() ![]() | 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.
__________________ Site Armory, tools for your website | Webmaster SEO Forums | PHP Tutorial and coding forums |
| |
| | #9 (permalink) |
| New Member Join Date: Feb 2008
Posts: 9
![]() | 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. |
| |
| | #10 (permalink) |
| NamePros Regular Join Date: Oct 2003 Location: Sweden
Posts: 395
![]() ![]() | 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. |
| |
| | #12 (permalink) |
| Senior Member Join Date: Apr 2005 Location: Joliet, Illinois
Posts: 1,177
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #13 (permalink) |
| NamePros Regular Join Date: Jan 2007
Posts: 239
![]() ![]() | 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. |
| |
| | #14 (permalink) |
| New Member Join Date: Feb 2008 Location: Romania
Posts: 19
![]() | 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. |
| |
| | #15 (permalink) |
| NamePros Regular Join Date: Dec 2003 Location: The Beach
Posts: 584
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 ----------------------------------------------- |
| |
| | #18 (permalink) |
| NamePros Regular Join Date: Feb 2007 Location: canada
Posts: 332
![]() | 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." |
| |
| | #19 (permalink) |
| NamePros Member Join Date: Aug 2006
Posts: 197
![]() | I am going with javascript , yet javascript is the most rewarding lol
__________________ Free Online Article Rewrite Tool | Kilobyte Solar Energy | Gaming, Music and Webmaster Community |
| |