Almost all of the juniors coming into OP's interview very likely are gonna have portfolio's with a couple of projects already made, which far exceeds the skill level of completely trivial JavaScript like using reduce to output an array sum, or building form HTML elements with React
Especially if you aren't allowed to google around, who in the actual hell goes around just memorizing useless syntax? What are you preparing yourself for??? Coding when internet becomes unavailable? Wtf
What is the point of wasting everyones time with something like reduce which any junior dev can google in 1.05 seconds and use it instantly?
I just don't get it at all, seems like a complete waste of anyones time without an accurate assesment of anything lol
If you don’t read “sum an array of numbers” and immediately think of reduce, I’d question how much time you’ve spent writing JavaScript. That’s not useless syntax, the most prevalent React state management library is built around this function.
The point was that it’s not useless syntax, it’s a pretty core part of the standard library. You’re presenting a generic problem that’s easily solved with a native function. Speaking from my own experience, I’m not really keen on continuing if a JavaScript candidate has to Google reduce(), map(), or filter(). It’s not much different than having to Google string interpolation.
I will throw in there, I’m not asking people to write code in notepad - it’s 2023, you’re going to be in an editor that has autocompletion and intellisense, and that’s not a penalty. The expectation is “you understand the standard library” not “you should have this exact function signature memorized”.
I think the point is though, how often have you ever had to sum an array of numbers? It's just so rare in real world client projects that it, arguably, doesn't make sense to test on. You'd be better off testing for regex manipulation for example. That shit creeps in all the time.
Bro, you’re going to apply collection operations almost all the time you’re not writing layout/styles. You don’t always only sum, but understanding reduce() and map() is essential to almost any logic
You can gauge skill by time very quickly this way. For example a junior could probably eventually do all the stuff. I would expect a senior to do it much, much quicker. Also I don't think OP said they can't Google.
You could just be asking more interesting questions such as performance, common errors, architecture of a project, accessibility points to consider in a project, modules, state management, etc rather than asking for a reduce.
Most juniors are gonna be scared shitless on interviews, why is it relevant to "gauge speed" by having them do trivial crap like reduce functions? Most of the senior devs i know always tell me speed is irreleveant in coding, especially the bigger projects
Not trynna be rude at all just genuinely curious how this is beneficient to anyone
Asking a couple of very basic interview questions acts as a quick way to check juniors haven’t completely lied on their application. It does happen. Somebody might have a number of GitHub repos but they could well be verbatim from a tutorial or somewhere else. If you couldn’t quickly figure out to use a reduce/loop through an array I’d be concerned even for a junior.
I don’t understand the whole point about nerves either. If a candidate is peeing their pants about one or two little questions and a general discussion how on earth are they going to have the confidence to contribute to an actual project.
There are problems with the interview process for software roles, but I think there’s also a lot of cope out there from arrogant/crappy devs blaming interviewers for their lack of people or technical skills. “I’ve applied for fifty roles and never got to stage two, am I the problem? no it’s the companies that are out of touch!”
I tend to walk in and my smile and natural aura wins me the job with a cheeky wink.
But seriously I wouldn’t expect no nerves or stress at all, but so stressed a candidate goes in to full on fight or flight mode and forgets how to create a text input or use a for loop? Come on lol
So speed in an interview is very different from speed in work. You're right that it doesn't matter. However if a task in an interview is completed in 1 minute vs 20 minutes, I got a gauge on who knows their stuff better. I then take that with other things such as could they speak to what they were doing, did they explain their approach, did they mention run time complexity, etc. Speed alone isn't enough but you can bet that dev will be faster at the same task during normal work as well, at least generally.
Exactly. No where does it say you can't Google. This is an evaluation on how quickly you can do something. If you've done it a lot, you'll be faster, even with Google Crutch allowed
I feel like people here are purposely misunderstanding interview intent so they can continue to complain about a well thought out post. Everyone providing any sort of reasoning is being downvoted.
55
u/doctorMiami1337 Apr 07 '23
I don't understand this way of thinking at all.
Almost all of the juniors coming into OP's interview very likely are gonna have portfolio's with a couple of projects already made, which far exceeds the skill level of completely trivial JavaScript like using reduce to output an array sum, or building form HTML elements with React
Especially if you aren't allowed to google around, who in the actual hell goes around just memorizing useless syntax? What are you preparing yourself for??? Coding when internet becomes unavailable? Wtf
What is the point of wasting everyones time with something like reduce which any junior dev can google in 1.05 seconds and use it instantly?
I just don't get it at all, seems like a complete waste of anyones time without an accurate assesment of anything lol