views:

101

answers:

5

What should i learn after getting good knowledge of XHTML, CSS, Web Standards, Accessibility,Usability, Information Architecture and Adobe Photoshop?

Javascript/jquery

or

PHP

First I want to learn and be focus to learn anyone of these two? Which language would be good to learn first?

A: 

You should learn JavaScript because u need only few days to do it. And for php (and mysql of course) it takes few weeks usually.

oneat
wow really javascript is matter of few days.
metal-gear-solid
-1. `only takes a few days to learn javascript` is the most ridiculous statement I've ever heard. You'd be a tremendously poor javascript coder after only a few days of learning.
Andy E
Another thing to note here is that the syntax for both PHP and JavaScript are very similar, so in terms of learning the syntax, the difference in time to pick it up wouldn't be much.
Andy E
While it might take only a few days to learn the syntax and semantics of a language, learning its idioms and best practice takes years.
Michael Williamson
You shouldn't learn a language simply based on how long it will take to learn vs another anyway. It depends on your requirements, and in the case of JS and PHP their implementations have different purposes. -1
akamike
A: 

The difference between JS and PHP is that JS runs on the client side and PHP runs on the server side.

If you are more interested in doing front-end web development then JS and JQuery would be more beneficial. But if you are interested in learning what happens on the back-end then I would suggest learning a language such as PHP, Ruby, Perl or Groovy. Basic database knowledge and SQL will also be useful here.

Tarski
A: 

I would say it depends on what you want to work :

  • Javascript is (mostly) client-side, like HTML/CSS and the other trhings you talked about
    • It's mostly use to enhance existing web pages
  • PHP is server-side
    • It's used to generate web-pages


Working server-side (with PHP, for instance) generally means you'll have to learn more than just the one language you're thinking about.

For instance, to develop a web-application, you'll generally need :

  • To learn the language, of course (PHP, here)
  • To master a Framework (Symfony, Zend Framework, CodeIgniter, ...) -- nowadays, we generally don't develop an application without a solid Framework
  • To have some at least basic knowledge of databases and SQL -- and for a complex application, you'll need more than basic knowledge
  • To know some stuff about the general system that the application is running on (Linux, its filesystem, notions about the HTTP protocol, Apache, ...)


In the end, Javascript and PHP are definitly not meant to create the same kind of things : depending on what you want to do, you'll learn one or the other -- or both -- but it all depends on what you want to do ;-)

Pascal MARTIN
Ok then i would go for Javacript. Why i thought over PHP because i make template for PHP based CMS and mostly javascript need can be achieved by CMS's plugin and PHP needs also can be achieved but some time Client need more customization in any pre-build function then i always think Should i learn PHP? Although thnaks again for answer I would learn Javascript. because I'm more like a designer
metal-gear-solid
Well, Javascript will allow you to enhance you application on the client-side ;; but knowing at least some basics of PHP will never hurt ;-) *(And, in the case of creating templates for a PHP-based CMS, knowing some PHP might allow you to customize your templates more)*
Pascal MARTIN
I saw ur edited answer. now i'm feared from PHP . I would go for jquery it will suit better with my current skills. and will learn Basic PHP
metal-gear-solid
OK :-D ;; sorry if I scared you ^^ my answer wasn't meant to : PHP is great, and knowing how the application is built is great too *(well, when you like that kind of stuff, of course)* -- yes, it might be a bit frightening to see all that, but it really is not, when you take the time :-) ;; *"will learn basic PHP"* = good idea : you'll see, it's not that hard, and the more you learn, the more you'll be able to do ;-)
Pascal MARTIN
@Pascal MARTIN - :) I'm feared means with PHP i will have to learn about some more things also :)
metal-gear-solid
What would be better to get high salary job. With my current skills if i learn PHP now then can i get more salary then if i learn javascript? Is PHP developer gets more salary than front-end developer?
metal-gear-solid
I really don't know about the salary stuff : not what matters the most to me, first ; and, second, I'd say it depends in which country you are, how much experience you have, ...
Pascal MARTIN
A: 

It depends on what you want to achieve.

If you want to enhance your front-end with scripting, to add more interactive elements or process data on the page, then go with Javascript. If you want to focus primarily on front-end development then this is your best route.

If you want to process things on the server-side, access databases and begin to build full-fledged web applications, then you should have a look at PHP. This may actually be the best route for you to take since you can then go on to learn Javascript and how that can interact with the server asynchronously, to develop more rich web applications.

Both languages will come with their own extended topics to study, such as accessibility's relationship to HTML and design. Javascript will have its own accessibility issues as well as looking into its performance. PHP will have performance considerations, but probably the most important subject would be security. Use of PHP with databases will also require you to learn about SQL and various database engines, so you can pick one that suits your needs.

akamike
A: 

Javascript, and not just jQuery - though it is the best of the frameworks, it'd be helpful to be familiar with both JS-proper and other frameworks like YUI, prototype, etc.

With JS, you'd have a nice rounded skillset for front-end dev work. You wouldn't be able to function without a team to do the backend - but such is the price that specialists pay.

If, instead, you went the PHP route (and I'll assume you'd also delve into SQL, otherwise it's kind of worthless) - well, you'd be a dime-a-dozen PHP coder that knows HTML and CSS and your lack of experience in both will kill your prospects. There's a lot more to being a backend developer than just PHP and SQL (though some get by amazingly well with nothing more).

Of course, this is all assuming you plan on getting paid for something - if it's just a hobby or scratching an itch, then just do whatever you want. ;)

Mark Brackett