Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic