Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Should I start learning Javascript before PHP ?

Hello.

I'm old programmer and nowadays I'm trying to get back to programming. I knew c# visual basic and some asp. I still know main algorithm and logic behind programming.

Now I want to start learning PHP, to do it I've started HTML/CSS Courses here and on codecamy and with some books.

My question is I'm almost done with HTML/CSS and as a next step should I start Javascript before PHP? Or should I kickstart PHP directly or at the same time ?

3 Answers

Kerem Kazan
seal-mask
.a{fill-rule:evenodd;}techdegree
Kerem Kazan
Full Stack JavaScript Techdegree Student 5,280 Points

I have done a great deal of PHP programming and like the other guys who have answered your question, I must say javascript and PHP are two very independent languages. So, if you want to learn PHP, just go ahead and do it. However, keep in mind that while there are tons of different back end languages you can learn, JavaScript is irreplaceable. If you're going for web app development, either you or your teammates will almost certainly use JavaScript on your project. Also, JavaScript has become very popular for back end development (NodeJS). PHP may seem quite popular at the moment but the industry is quickly shifting towards other, more modern languages like Python (Django) and Ruby (On Rails). I would recommend skipping PHP altogether.

tl;dr : If you want to learn web app development, go for JavaScript and then try NodeJS, Ruby On Rails or Django. If you want to learn PHP anyway, you don't need to do anything with JavaScript. Just go for it.

Bildigim kadariyla Ruby(On Rails) ogrenmek icin halihazirda php bilmemiz gerekiyor. Yanlis mi biliyorum? Ben PHP'yi kesinlikle ogrenecegim zaten programlama mantigi oldugu icin sadece + yerine . gibi seyleri ogreniyorum ve cok zaman almaz. Aklimda PHP'yi bitirdikten sonra Ruby vardi. Skip etmem mantikli olur mu sizce ?

Kerem Kazan
seal-mask
.a{fill-rule:evenodd;}techdegree
Kerem Kazan
Full Stack JavaScript Techdegree Student 5,280 Points

Ruby ogrenmek icin PHP gerekmiyor. Ruby ogrenmesi ve yazmasi cok kolay ve zevkli bir dil. PHP'yse biraz daha hantal ve eski. Zaten tam anlamiyla bir programming lisani bile denemez PHP'ye. Daha cok bir scripting dili. Ruby'yse son derecede donanimli ve kullanisli bir programming lisani. Bana kalirsa PHP'yi atlamak mantikli bir hareket olur.

ravindra barthwal
ravindra barthwal
2,271 Points

It isn't necessary that you should take javascript before php but if you do it will be great as you will not need to switch back to frontend designing i.e CSS/Javascript/HTML and you almost in the end of frontend. Just do Javascript and they kickstart the php

cheers

Gary Calhoun
Gary Calhoun
10,317 Points

Me personally when I signed up on treehouse I started the PHP Track first. I seemed to have taken more to javascript but trust me php is important however one isn't a building block of the other its front-end vs back-end. I mean they are building blocks in a way that they compliment each other in a final product. The javascript courses on here are really top-notch though. Either one is a sure win. I plan to revisit the PHP one though.