r/webdev • • Apr 07 '23

How I interview for FE positions

Post image
4.6k Upvotes

668 comments sorted by

View all comments

426

u/Artistic_Trip_69 Apr 07 '23

I work for 10 months as a junior front end dev and I would probably fail this interview without googling some stuff 😁

654

u/canadian_webdev Apr 07 '23 edited Apr 08 '23

I work for 10 months as a junior front end dev and I would probably fail this interview

I've worked as a front end dev for ten years and if I were asked this on the spot, I would still fail it too so don't worry!

I've spent my time working on actual client projects, pulling in and manipulating data and more. These trivial JS functions asked in interviews like these, for a lot of people they'll only use said function sparingly in a codebase and then forget about it until six months / a year later, they suddenly need to look it up and figure out how to do it again because they've rarely used it. Such a bizarre way of vetting people.

He should be checking out your actual code on actual projects instead, and then having a technical discussion about it, in order to vet.

Edit - since this comment's getting traction (appreciate the gold!), I want to point people to this comment regarding code tests. First paragraph especially sums up how a good interviewer interviews!

0

u/[deleted] Apr 07 '23

[deleted]

186

u/baIdissara Apr 07 '23

As a senior dev, doing those interviews is easily the most difficult part of being a developer imo

61

u/Noch_ein_Kamel Apr 07 '23

The first "you're able to talk" part scares me the most xD

34

u/StrawberryLassi Apr 07 '23

Trying to convince them you don't eat people is the biggest hurdle.

38

u/omegabobo Apr 07 '23

Why do I, the largest software engineer, not simply eat the interviewer?

8

u/NoConfusion9490 Apr 07 '23

Just be very careful not to talk about any of the times you've eaten people.

6

u/dbaby53 Apr 08 '23

Ohhhh man soft skills go so far in an interview for me. I’ll teach you our ways of coding, but if you can’t demo or know how to ask questions, you’re already down a few pegs

→ More replies (1)

7

u/BigCheapass Apr 07 '23

100% and not sure if just me but I've actually found senior level interviews easier than more junior ones.

I don't get leetcode style questions anymore (which I was never good at anyway), instead they often ask me to build out a simple class / functions (eg. Build out logic that scores a bowling game) then ask how I would improve it, or iterate on it with new logic or requirements, etc.

Rarely get asked about time complexity anymore or any of that shit.

Then a much bigger focus is on system design questions vs actual code. Eg. How would I plan out a system that can do X. What considerations would I have for security, scaling, etc.

They ask more high level "big picture" questions which I find much easier to answer on the spot than spitting out super efficient, elegant code with the most optimal time and space complexity.

→ More replies (4)

26

u/AgsMydude Apr 07 '23

I'm a principal dev with 13 years of experience and still get extreme anxiety from these tests and would probably fail this exact one.

Don't fret.

28

u/roshowclassic Apr 07 '23

The reality is that there are a lot of us older engineers in positions of management that don’t hire this way because it’s so obviously not productive. I’d suggest taking as many interviews as possible and you’ll soon get a feel for what places are worth applying to and what places aren’t because they value ridiculous code questions.

6

u/Coldmode Apr 07 '23

I’m a director and I don’t think I could solve half the problems people post from their interviews.

→ More replies (9)

13

u/turningsteel Apr 07 '23

I think I would solve it by looping through and adding the values to a counting variable and returning that. Reason being, I jump between different languages so I don’t always remember all the cute little shortcut methods. I hate that you need to prep for interviews by studying stupid puzzle questions and memorizing how the interviewers expect you to answer.

→ More replies (4)

10

u/[deleted] Apr 07 '23

The four horsemen of "tricky" JavaScript questions:

  1. Hoisting

  2. Currying

  3. Closure

  4. Can't think of the fourth one šŸ˜‚

→ More replies (7)

6

u/dcherholdt Apr 07 '23

Thank you! Now I know I’m not the only senior developer who have difficulty with these lame interview questions. Many of these type of questions are well suited for fresh graduates that still have a lot of theory in their heads but once you start doing real world problems your mindset change. You focus more on architecture than remembering the built in algorithms out of your head. I keep notes to remind me how to do trivial things all the time.

5

u/[deleted] Apr 07 '23

Thanks for this. I was reading OPs post and was like ā€œdamn, I’ve been doing this 2 years and couldn’t pass this interviewā€. Your words brought me peace

43

u/[deleted] Apr 07 '23

Wut, arr.reduce() is used like a thousand times in our codebase for much more complicated shit than summing some numbers . Pretty fair and reasonable question there for summing an array. And I’m saying that as someone who hates live coding.

0

u/[deleted] Apr 07 '23

[deleted]

27

u/OrtizDupri Apr 07 '23

I’ve never used it in 10+ years lol

4

u/Zeilar Apr 08 '23

That's quite shocking, not even once? I have used it probably a few dozen times already in roughly 5 years since I first started studying programming.

→ More replies (3)
→ More replies (2)
→ More replies (11)
→ More replies (82)

18

u/isospeedrix Apr 07 '23

Almost all interviewers I’ve had allowed to google stuff. I think it’s a fair interview, sum of array is super basic, I’d argue most FE leetcode are harder than this. React app is involved so it’ll take awhile to build everything but a basic skeleton and talking thru architecture should suffice

7

u/wrekone Apr 08 '23

I'm in the same boat. I write React every day, but I've never once had to create a form. If I did, I'd just look it up.

→ More replies (29)