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 trialMarvin Libron
3,147 PointsShould I proceed with Javascript or PHP ?
Hi there, I just finished HTML and CSS deep dive and would like to take it a step further. What should be the next course I take, Javascript or PHP programming?
3 Answers
Maxim Kontsevitch
25,447 PointsHi Marvin, You should take the Javascript Course next. Here's why:
Javascript is a client side language that is a bit easier to learn the PHP (server side language). Javascript is a more modern language then PHP. That means that Javascript is easier to learn for beginners. So you should have a good background in Javascript to understand PHP.
Tip: Before you actually get into Javascript Foundations, you may want to check the introduction to Programming course, that should give you the info you need to learn Javascript.
Tell me if that helps
Chris Smith
19,737 PointsI had this exact dilemma recently. So many different languages to learn it is confusing to know what to do next.
I was also told to look at Javascript first. I've found the front-end web development track has kept me pointing in the right direction.
Marvin Libron
3,147 PointsHi Chris, thank you for sharing this as it has made me more confident that I made the right choice getting started with Javascript. Much appreciated.
Miguel de Luis Espinosa
41,279 PointsMarvin, it depends on what you want to do.
PHP is more useful to maintain a website. It powers WordPress and it allows you to structure your content and produce dynamic websites. Basically, PHP allows you to tell the server: "Please server, build me a website for me, display the current year in the footer, check the database and display today's post content, title and tags".
You normally use Javascript for different stuff: Interactivity. With Javascript you tell the browser: "Hey, browser, wait until the user clicks on the red button, if he does, then you show this message, your hide this <div> and then show this animation".
I don't think any of them is much harder than the other. PHP is just, ugly, though. What they do have in common is that they are extremely useful, and you don't need to be an expert to benefit from them. So learn the basics of both, and then you'll be ready to decide for yourself.
Marvin Libron
3,147 PointsHi Miguel, thank you for pointing out the advantages of both PHP and Java. And explaining it really well to a beginner like me. Your comments solidifies my decision to start with Java (and being confident that I'm on the right track). Awesome!
Marvin Libron
3,147 PointsMarvin Libron
3,147 PointsHi Svetlana, thank you for your advice and pointing me to the right direction. I am taking the intro to Programming course now.