News for hackers. Stuff that matters.
Re:JavaScript Things I Wish I Knew Much Earlier In My Career by eplanit on Tuesday April 20, 2010 @01:02PM (#1279949)
Ah, how clear. A Car is a generic object (clearly an English object given the spelling of its attribute names), with untyped attributes.

The thing I wish the JavaScript community knew much earlier in their careers was actual software engineering knowledge, such as Object-oriented, or at least typed, languages.

var car = new Object(); car.colour = 'red'; car.wheels = 4; car.hubcaps = 'spinning'; car.age = 4;

Re:JavaScript Things I Wish I Knew Much Earlier In My Career by stan_rogers on Wednesday April 21, 2010 @04:54AM (#1281684)
Dynamic weak typing is probably JavaScript's greatest strength, not a weakness. Grokking this, you can also begin to see reasons why schemaless databases can be of great utility.