3 ms·
> Understanding the basic semantics of a language's object model is pretty essential to doing anything much with it. This is usually true, but I'd argue Javasc
by pluies 16y ago
> Understanding the basic semantics of a language's object model is pretty essential to doing anything much with it.
This is usually true, but I'd argue Javascript is different. Due to the language's similarity to C (or Java), lots of beginners will basically write C in Javascript, use the very basic languages features, put all functions in the window scope, etc., and get away with it. It's enough to get some some working and pretty good-looking (on screen at least) Javascript code. Which is what the author is complaining about — that's not "knowing" Javascript.
- ionfish 16y agoNo indeed, and I'm quite willing to concede that one can do a certain amount in JavaScript without knowing what the prototype property is. But you can't seriously be taking the line that knowing how to attach methods to an object's prototype is advanced knowledge: it's essential to any sort of OOP in JavaScript. I suppose my basic objection here is that most of the criteria given set the bar for "advanced knowledge" so low that it would be met by any half-decent programmer with a decent working knowledge of the language. In other words, it's the absolute minimum I would expect of anyone I intended to hire for a position where a fair bit of JavaScript programming was required. JavaScript is perhaps unusual amongst programming languages in that there are many more people than usual who've never got above the first rung on the ladder of understanding, but that doesn't mean the ladder is any shorter than for other languages.