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

General Discussion

Are programming languages basically the same?

Sorry if this is a bit of a naive question, but are most programming languages doing the same thing, just using different syntax to say it?

So if I learn one, will I find it much easier/quicker to pick up another later on?

At the moment I'm learning JavaScript, but would like to learn something like Ruby or maybe PHP further down the line. Will learning JS stand me in good stead for this?

Thanks

3 Answers

Hi John

The short and sweet answer, for me at least, would be yes, or more accurately the core concepts behind a programming language translate to other languages so long as those other languages follow the same model as the ones you've learned. By this I mean that if for example you have learnt and grasped the core foundations and concepts of an object oriented language such as C# then trying to pick up another OOP language such as Swift will be a far easier learning curve as if you know how to code and how to logically create solutions to problems all that's left is syntax.

Yes, sort of. Programming languages all do a lot of the same kinds of things. The stuff you're learning about conditional statements, variables, arrays, for loops, etc. is all applicable across all (most?) languages.

You'll find it much easier to learn your second language once you've learned a first. However, each language has its syntactic quirks, and - importantly - once you get past the basics of spitting out text into the console, each language has things it's good at and not so good at.

Once you've learned a bit of programming, the most important thing to ask yourself is what you want to make, and then try to find the best language for the task.

Thanks for your answers guys. It won't let me upvote or "best answer" either of you, but thanks anyway.

Sure thing - yeah, General Discussion doesn't have voting or best answers. Appreciate you saying thanks the old fashioned way :)