Is it better to learn JavaScript or Python as a first language?
1–10 of 13 posts
Re: Is it better to learn JavaScript or Python as a first language?
#2If you learn Python first, you might have trouble learning other languages.
Ideally, in the end it wont matter - a programmer can program in any language, but for starters I would say start with JavaScript.
Re: Is it better to learn JavaScript or Python as a first language?
#3Re: Is it better to learn JavaScript or Python as a first language?
#4Re: Is it better to learn JavaScript or Python as a first language?
#5Learn one, then learn the other - start where you want to.
Re: Is it better to learn JavaScript or Python as a first language?
#6Re: Is it better to learn JavaScript or Python as a first language?
#7That said, Javascript is readily available (a runtime in your browser), so no additional installation steps are necessarily required to start. Javascript also follows C syntax patterns which also appear in a number of other languages whereas python is a bit unusual in the way it distinguishes code blocks (using indentation).
Either will work, I think that python is a bit more straightforward for your first few programs.
Re: Is it better to learn JavaScript or Python as a first language?
#8Python is the definition of a general-purpose, beginner-friendly language that can also be used for more advanced stuff. That's part of what makes Python such a good CS101 language.
JavaScript is primarily a client-side language focused on interacting with web browsers and the DOM. This is starting to change with the advent of Node.js, but I would _not_ recommend jumping straight into Node style evented-IO if it's your first language.
Re: Is it better to learn JavaScript or Python as a first language?
#9http://www.youtube.com/playlist?list=PLEA1FEF17E1E5C0DA&...
Also this book:
http://learnpythonthehardway.org/book/
Javascript:
Re: Is it better to learn JavaScript or Python as a first language?
#10JavaScript will be more friendly to you, and will open the doors to more applied languages, including Python. If you learn Python first, you might have trouble learning other languages. Ideally, in the end it wont matter - a programmer can program in any language, but for starters I would say start with JavaScript.