• pjotr .pjotr ., over 6 years ago

    I think that's fair. You just have to be careful how you word it. TBH FizzBuzz is a basic concept of programming and someone who is doing any User Interface development work should be able to understand the concept and implement it fairly easily.

    I'm not advocating for FizzBuzz, though. I feel like a better question would have been. "There's a user interface we need to build. We have an array of products. We need to generate some type of dynamic content from that array. You can use jquery, vanilla js, angular, whatever."

    To which a satisfactory answer would be:

    var products = ['Google','Facebook','Reddit','HN','DN']; var lisT = $('#prod-list') $.each(products, function(index){ var diV = $('<div/>') .appendTo(lisT); var spaN = $('<span/>') .text(products[index]) .appendTo(diV); });

    I feel like that's a better programming question to ask a designer, not FizzBuzz.

    2 points
    • Chris NewtonChris Newton, over 6 years ago

      I’m all for using more realistic examples in interviews. However, as the job ad specifically asked for experience using modern JS libraries, it seems like they’re looking for more than just basic DOM manipulation in jQuery here.

      For an in-person, real-time interview for a designer/developer who needs to prototype a UI, I’d be tempted to set a challenge along the lines of:

      Write a [component|template|widget] using [your|our] usual choice of libraries/framework to show a [table|pie chart|sparkline] of data from [this literal array|this JSON API|this data in localStorage]. You have [your|our] usual choice of development tools and all the usual on-line references available to use as you wish. Let’s see how far you can get in [some reasonable amount of time].

      If you do ask them to use your preference of tools and libraries rather than theirs, you’ll soon see how fast they can translate their existing skill set and pick up any new tools or concepts they’ll need for the real job. Either way, you’ll soon work out whether they have the right general idea about how to design and implement code for a typical UI requirement and how quickly and carefully they work. And it’s an open-ended problem, so if you have a nervous candidate who freezes under interview pressure, you can offer hints to keep them going without unreasonably interfering with the general nature of the test.

      1 point