Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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;



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: