News for hackers. Stuff that matters.
Re:Interviewing a front-end developer by erikpukinskis on Thursday January 30, 2014 @03:48AM (#7149663)
That's my reaction too, but it's hard to know if OP is actually overzealous or I'm just not good enough for them. This line stood out to me:

> it's important that anyone you hire has a comprehensive knowledge of apply and call

To other Javascript developers: is this really true? I do use call every now and then, but it's pretty rare. Maybe that kind of stuff is more important if you're trying to functionally isolate components with richer interfaces between them? I tend to keep a pretty polluted namespace, so maybe that's where I'm going wrong.

That said, I have a "I could learn that but I have stuff to ship" mindset about Javascript. That has its ups and downs. Maybe I should work on that a bit more.

Re:Interviewing a front-end developer by timdown on Thursday January 30, 2014 @05:16AM (#7149887)
I'm not convinced. I think not knowing that apply() and call() exist would lead to unnecessarily clunky code, but even after over a decade of using them occasionally I still sometimes have to look up which is which. My use of them tends to end up deep in library code rather than everyday functions.
Re:Interviewing a front-end developer by davedx on Thursday January 30, 2014 @05:51AM (#7149988)
This is a crucial point. apply and call tend to be more useful for libraries than application level code, in my experience.

Even in the "front end development" subfield of web development, there are divisions. Do you want someone to produce lots of modular libraries that are reusable throughout your company/application suite, or perhaps to build a UI framework? Then knowledge of these parts of JavaScript will be very useful. Do you want someone to build a rich internet application in Meteor? Then knowledge of positioning, layouts, templates, UI effects and how to tie them into the Meteor framework is much more valuable.

Where I work we do a lot of 2D animations, so it's great if the people who work here know all about CSS transitions, requestAnimationFrame, and so on.

Re:Interviewing a front-end developer by bulatb on Thursday January 30, 2014 @04:02AM (#7149687)
You should know that they exist and what they do.

You can do a lot of things with higher-order functions just by making closures, but `apply` and `call` will give you flexibility and power there's no other way to get. For one thing, they're your ticket to manipulating `this`.

The worst part is keeping them straight. My mnemonic is that `call` is just a function call, so arguments go in as normal. `apply` is the other one, so arguments go in as an array. (Maybe "A" for array, or something.)

Re:Interviewing a front-end developer by berodam on Thursday January 30, 2014 @10:52AM (#7151263)
My usual mnemonic is "call list" and "apply array"
Re:Interviewing a front-end developer by menriquez on Thursday January 30, 2014 @08:39AM (#7150564)
"That said, I have a "I could learn that but I have stuff to ship" mindset about Javascript"

amen bro...amen.

Re:Interviewing a front-end developer by warfangle on Thursday January 30, 2014 @09:13AM (#7150719)
Knowing call and apply demonstrates a knowledge of how context, arguments, and function calls work. It's like demonstrating pointer knowledge in C. Absolute must for a non-junior candidate (and even then, depending on what you're hiring a front-end developer for).
Re:Interviewing a front-end developer by hcho on Thursday January 30, 2014 @05:13AM (#7149879)
Yes. I have 10 people working on a code base. It's been more than a year since we started. Your hunch is correct, keeping a neat namespace is the job.