• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Would you use Javascript as the first language for a beginner programmer?

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there better languages for someone is learning programming?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me answer you from my personal experience.

I first learnt a bit of python. Python is easy to learn and fun to use (Intro to Computer Science on Udacity is a great ressource). However, the moment you want to do a graphical game, or an app, (AFAIK) then you need to use toolkits (Pygame or WXpython).

The great thing with Javascript is that it's easy to learn (comparable to Python in my opinion), but then you can rely on HTML and CSS to give life to your ideas, which is really great and empowering.

Also, my feeling is that more and more stuff can be done in javascript (Firefox OS and Chrome OS use JS for their apps, Node.js for servers, you can even convert Chrome apps with Cordova to let them run on iOS and Android devices).

One last point, lots of people have developped JS libraries for you to use (three.js for 3D or pixi.js for game development).

The ecosystem is brimming with life and it's great!
 
author
Posts: 33
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Totally agree with Louis-Philippe Breton. JavaScript is a great first language, especially if you follow some easy guidelines:

(1) JavaScript didn't come out a heavily peer-reviewed, academic or (until recently) standards-based environment, so it has some quirks. Learn the good stuff, and navigate around the not-as-good stuff (you don't need it). Our book (Head First JavaScript Programming -- not to be confused with Head First JavaScript) teaches from this perspective, and if you really want a long treatment of the good/bad take a look at Douglas Crockford's book "JavaScript: the good parts".

(2) JavaScript gives you a great environment to play in (the browser), that said, knowing HTML & CSS will help you do more interesting things with you JavaScript. So learn them in this order (HTML&CSS->JS), or concurrently.

(3) Don't get too married to the browser environment, JavaScript is a language useful beyond the browser, and you're going to want to understand languages down the road that aren't browser centric.

(4) Start simple--this is the real advantage of JavaScript (and why it's so popular), you can start very easily. And grow your knowledge from there. Start with variables, iteration, conditionals, and then move on to collections (arrays, etc.), then simple objects, simple functions. At that point you can start to move on to advanced topics like event-based programming, object construction and orientation and high-order functions/closures.

(5) Try not to get hooked on libraries too early. Work with the bare technology and understand it, and then you'll truly understand the libraries you're using, and how to best use them.

Hope this helps...

Eric
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!