Re:Vanilla JS, fast, lightweight, cross-platform framework
by rane on Sunday August 26, 2012 @04:03PM
(#4436050)
That's a fair assumption since most of front-end development is done using jQuery as far as the DOM goes.
Did you expect your interviewees to have memorized APIs? There's Google so that you can look up those when needed.
Re:Vanilla JS, fast, lightweight, cross-platform framework
by paulrosenzweig on Sunday August 26, 2012 @04:14PM
(#4436080)
I agree. I think it's important to know Javascript as a language well, but there are very few cases when you'd be using Javascript without some abstraction from the DOM.
Re:Vanilla JS, fast, lightweight, cross-platform framework
by mistercow on Sunday August 26, 2012 @05:07PM
(#4436216)
And in point of fact, neither of those examples are actually about JS, the language. They're about the DOM.
Re:Vanilla JS, fast, lightweight, cross-platform framework
by TazeTSchnitzel on Sunday August 26, 2012 @04:30PM
(#4436121)
Not recognising document.getElementId is pretty bad, though. It's perhaps the most basic and commonly used part of the DOM itself.
Re:Vanilla JS, fast, lightweight, cross-platform framework
by madmax108 on Sunday August 26, 2012 @02:25PM
(#4435770)
It's a common problem nowadays I guess. I honestly don't remember the last time I worked on a project with plainjane javascript.
There always is either underscore or backbone or require or dojo or prototype or yui or jquery...
Don't really know if this is good or bad!
Re:Vanilla JS, fast, lightweight, cross-platform framework
by jfaucett on Sunday August 26, 2012 @03:11PM
(#4435929)
maybe I'm mistaken, but I think this is more of "jquery programmer" problem. jQ really abstracts away from the nitty gritty of the dom api and also for any beginner / intermediate frontend guys the source is not very readable. In comparison dojo for example, requires you know what you're doing and also to have pretty extensive knowledge about js, the dom, etc. Also, in my opinion, its source code is very clean in comparison.
We finished the exercise assuming the example used jQuery instead.