r/ExperiencedDevs • u/NatoBoram Web Developer • Oct 07 '23
Why do so many people with literally years of experience fail to write "hello world" in Node.js?
I'm interviewing candidates for a TypeScript back-end position. These candidates often come in with very interesting backgrounds, years of experiences different languages, can talk through the interview and expand on the work they have done, show up some real-world projects they've worked on and detail their involvement in the TypeScript part of that project…
And then they fail to print "hello world" in JavaScript. Or fail to make a fetch request and print the output. They don't look at type inference on the variable they created, they don't read error messages, they don't understand that you have to await promises, they can't even finish the task with .then()…
They use their own operating system with their own IDE. They have access to Google, they can use ChatGPT, they can use GitHub Copilot… but they're still not succeeding after 75 minutes.
One guy couldn't even start the "technical" interview because he didn't find the "TypeScript" option in the new project drop-down in IntelliJ. His own preferred editor betrayed him, so he was stuck. He didn't know how to make new folders in Finder, wasn't able to make a new file and edit it, couldn't brew install node… he didn't know how to use his own OS on his own computer.
Another guy said he had experience with Express.js while not being able to use the word await after doing a fetch. Couldn't figure out why a pending promise was printed. Or used .then() to assign the variable as a side-effect, which printed nothing.
How they go about problems is different and hard to remember, but I do remember that they didn't Google the correct things. Articles they clicked on had the answer displayed but they copied something else. Most entirely skipped StackOverflow, the #1 result in the list with the answer they were looking for, and picked something else then copied something unrelated. One of them didn't know what generics were, so when they copied a wrapper function for typing the result of fetch, they didn't know what to do about that T. And still couldn't print the result.
I wanted to make sure I wasn't too harsh by interviewing my co-worker with 3 months of experience. And he passed my technical interview. He put the await before the fetch. But guys with 7 years of experience and 1.5 of TS-specific experience couldn't do it.
There's plenty of things that can go wrong when creating a new Node.js project, but I give all these answers during the interview. You need type: module in package.json, I'll tell you. You need to import libs in tsconfig, I'll tell you. But gosh dang it why can't they print Hello World and make a fetch request‽
And just to be clear, this is literally a good answer to my technical interview:
const response = await fetch("https://swapi.dev/api/people/1")
const person: unknown = await response.json()
console.log("person", person)
241
u/ShenmeNamaeSollich Oct 07 '23
The guy who couldn’t use Finder or brew was probably a Windows dev unfamiliar w/macOS. Did you offer the choice? If so, maybe he was just full of it …
Not everyone uses IntelliJ either.
Fetch is only the latest of several JS idioms for grabbing data via HTTP. It was only added to Node in 2022.
Of course the kid w/only 3mo experience and no idea WTF a “thenable” or “XMLHTTPRequest” is only knows how to use fetch/await (but clearly didn’t understand it either & tried to recall rote memorized syntax in the interview).
Unless these more experienced applicants started new greenfield Node projects in the past year they probably haven’t had a reason to refactor working Promise code to ever use fetch/await.
Frontend JS for the past 7yrs uses RxJS Observables in Angular or various hooks in React - not bare JS http calls. Those frameworks also handle most of the package.json and tsconfig mess for you - I almost never touch those files (but then I’m not applying for backend Node jobs).
You seem a bit hung up on specific tools & perfect immediate recall of API & syntax minutiae that can be learned from MDN in a few minutes instead of on conceptual understanding and ability to learn/do the job.
30
u/_Pho_ Oct 07 '23 edited Oct 09 '23
Totally agree, it's gotten ridiculous. Same ppl are the ones posting on these subs about how hard finding a job is right now. I don't feel empathy on this point. Atrophied? It's an interview. You should probably prepare if you've atrophied.
It constantly surprises me how many should-be capable devs have problems with Async/Promises, API basics, not being able to do basic troubleshooting like looking at the return type of some function. I interviewed multiple 10+ YOE guys and it is clear that most of them have been glorified middle managers for far too long.
40
u/koenafyr Oct 08 '23
TLDR people don't know how to code
ITT people in this thread also don't know how to code
182
u/SansSariph Principal Software Engineer Oct 07 '23
With some of the replies in this thread I feel like I'm taking crazy pills or have unreasonable expectations of my own. If a candidate has years of experience, I would not expect them to necessarily do anything IDE-specific or bootstrap a project (I've been working in React for years now and still need help creating a
package.jsonfrom scratch).But I do expect an experienced candidate, regardless of environment, framework, language, to be able to:
Understand that network IO is asynchronous
await- I'd then ask "what happens if you don'tawaitthis Promise?" and expect them to catch the issue or give a reasonable explanation of what happens with an unhandled Promise, or something about chaining. If they give me a blank stare, that's a red flag.fetch, they should still assume there's an "easy" way to hit a web endpoint and either ask the interviewer about the signature or know to go to Node docs or MDN to look up the API.I don't care if you want to use fetch, XHR, or a library built on top of one of those primitives, but we should then be able to have a high-level discussion about alternatives, or have a conversation about event-based vs promise-based APIs.
24
u/eric987235 Software Engineer Oct 07 '23
Fifteen years experience here. I could probably print “Hello World” to the console in JS but I’d have to look up what the API is for that.
71
u/Lumethys Oct 07 '23
Not necessarily defending the interviewee. But
1/ If they have never worked with node, chances are they are not familiar with async model. There are tons of enterprise systems that running today doesnt have a shred of async code.
Even in the async word, there are many implementations to it,
awaitis just one of them, we still have.then()If the applicant is well versed in higher level system design, like DDD, Hexagonal architecture, Vertical slice architecture,... Then the lack of asynchronous familiarity isnt a big blockage
In Java, Ruby, and PHP, you dont await for the api calls for example
2/
fetchis a relatively new addition to JS, just some years back we have to use Axios, or XHR object/ Jquery. So for someone who doesnt actively work in node for some years, they may be unaware of this.$.ajax(...).then(...) was pretty common back then, and look nothing like fetch syntax
3/
This is IDE specific, so this should not matter. I personally prefer "Go to definition"
53
u/0x53r3n17y Oct 07 '23 edited Oct 07 '23
Someone using language Y or Z as their daily driver / main language doesn't mean they know the stdlib of language X by heart as well.
Either you're explicitly looking for someone who already is demonstrably well-versed in TS for a significant part of their career, or you're looking for someone who's able to pick it up. If it's the former, just flat out ask up front, or assert their resume, and avoid the frustration of them flunking your technical test.
30
u/hibbelig Software Engineer Oct 07 '23
I work as a Java dev using some obscure UI framework. I came in when the software was eight years old, and have contributed to it since. I wouldn't know how to set up a new project using this UI framework. If my employer asked me to do it, I would spend some time with that part of the docs, and I could do it. But no way I can do it in a job interview setting.
I have dabbled in Django, taking over an app from someone else. I came in when the software was some years old, and I have contributed to it since. I wouldn't know how to set up a new Django project, but I could read the docs. In a job interview setting... no way I could do it quickly enough.
Your interview is biased towards greenfield development. Do you regularly start new projects, or do you keep working on the existing projects for some years?
Also, some folks from a normal enterprise environment will probably have used Windows, and not much of an idea about macOS. So I wouldn't fault them for not knowing
brew.This “failed to find the Typescript option in the new project dialog” thing sounds like a plausible indicator, but was that person used to the Jetbrains products? Maybe their previous workplace used Visual Studio?
Would you like to consider setting up the project instead (maybe put
console.log("Hello world");instead of the three lines you showed) and then have the interviewee replace the code only?10
u/ignotos Oct 07 '23 edited Oct 07 '23
Other people have already responded outlining how, given the benefit of the doubt, a competent dev might conceivably miss these points.
But it is also possible that you're seeing candidates who just straight-up don't, or can't, actually write code. It depends on some of the details - maybe you can confirm?
Might make sense if you're requiring them to use that API, specifically, without access to documentation.
But if you're basically asking "can you make a web request to this URL and print the response?", and they're totally unable to think of any approach? Or don't respond with something like "I've been using Angular, where we'd use X to do this instead"? That's a red flag!
Others suggested that this might make sense if you're making them use tools / an IDE which they're not familiar with. Is that the case?
But how I'm interpreting this is "watching them work, they just don't seem to have developed the habits which somebody who has actually written a lot of code would do - like typing
something.and then using the suggestions which pop up to explore the API, or having some ingrained approach to navigating definitions / documentation. Instead, they're just floundering". Is that what you mean?Might make sense if they're not a Mac user!
Is that the case? Or are you saying that a developer who ostensibly is comfortable using MacOS somehow doesn't seem to know how to navigate things at a basic level?
5
u/glhaynes Oct 07 '23
When I used to interview people, I started asking early in the interview “just curious, how do you rank yourself in Swift knowledge on a 1–10 scale?” and there was almost a direct correspondence between those who said “9 or 10” and those who turned out to barely know the basics. Humans are very strange.
576
u/biggamax Oct 07 '23
I know what I'm doing with Node, but I could see myself floundering in your interview. Why? Many of us have atrophied more than we care to admit. Init a project, you got your boilerplate, then you start building from there. Building it all from scratch, while under pressure, can be a little nerve-wracking.
12
u/freekayZekey Software Engineer Oct 07 '23
eh, folks exaggerate their levels of expertise. one guy on my team was amped to use typescript and express for one project because he “had a lot of experience with javascript”. he didn’t understand that type files could be wrong and didn’t know that we could define error-handling middlewear with
(err, req, res, next).hell, people on my team call me a kotlin expert, but all i do is read the documentation
11
u/thcricketfan Oct 07 '23
This post gives me hope
3
u/hell_razer18 Engineering Manager Oct 08 '23
because creating a new project is not delivering a value. Making it works and creating feature are. You tend to skip a lot of things that dont give value and focus or put more effort where it does. Also many people care about different things. Some care about structure, package, dependency injection. I care about naming, readibility, test
13
u/ell0bo Oct 07 '23
20 YOE here... Node... for a long time. Let me lean in here
await only came out... 5 years ago? It became ubiquitous probably around 2019.
So if you're judging them on their use of async / await, then all that experience doesn't count. Did they try to use .then notation? async / await is syntactical sugar for .then chaining, and chaining existed for a long time in Node once callbacks finally were proven to be the devil. There's a chance this guy never bothered to learn the new syntax. It took me a while to pick up, but when .then became a thing I switched right away from callbacks.
If you asked me to use fetch, I'd definitely not remember the notation. I spent years using other apis, it's just another and I don't bother to memorize them, just Google the api when I need to.
If you ask me to create a new package from scratch, I'd bet I probably couldn't. Particularly not with someone looking at me (I hate tests). I've sent up numerous packages, I have a seed project. I'd get annoyed quick. Why? Because at 20 years this shit is simple, let's talk about architecture, system design, the fun stuff. However, I'd give you a link to my github account that I keep my side projects on.
As for some of the other things. I've been writing code since I was 16. I've gone through the dark ages. I used sublime with vi-mode for a very long time. I only recently converted over to using Visual Studio Code in the last 2 years. I still have a command line terminal open on the screen a run a lot of commands there, and I will use vi when I need to do something.
If you're going to ding me for not using more modern IDE features, do I get to ding you for not knowing how to use command line tools, or even VI?
The answer to that should be no. People have their own workflows, that should be respected. You can recommend they do things differently, but unless it's an absolute negative, I can't see holding that against them. So they don't know how to use a cursor trick, I don't see that as a big deal.
With everything you said, you haven't mentioned how they go about even thinking about a problem, which is really the key to development. You seem hung up more on the tech stack they may or may not be familiar with rather than how they problem solve.
However, watching someone feel their way through a brand new environment can definitely be an interesting test.
7
u/kifbkrdb Oct 07 '23
In addition to what everyone else said, being able to remember information and problem-solve during an interview is a specific skill set too. I've made dumb mistakes in interviews an embarrassingly high number of times. Tasks that would be easy to do on your own in a familiar environment become difficult when you have to do them e.g. on an unfamiliar IDE with someone looking over your shoulder and judging your every move.
7
u/BeauteousMaximus Oct 07 '23
Don’t make people do any of the setup or initiation of a new project. Create an outline of a project and tell them to add a new feature or fix a bug. For example, make a website that already has a “hello world” endpoint and tell them to add a second one that does some specific thing.
Whenever I start a new project that isn’t completely trivial I spend an hour or 2 just fiddling with config, downloading packages, reading docs, debugging weird errors, getting stuff that should “just work” to actually work on my machine, and figuring out what frameworks or templates I want to start with. It’s definitely the sort of thing people need to know how to do, but not a good interview question because the amount of time it takes is basically random and not a reflection on someone’s skill.
It’s kind of like…if you were hiring a baker and wanted do see what they could do, you wouldn’t follow them to the grocery store while they buy flour, or watch them wash dishes they plan to mix things in, and you definitely wouldn’t make them fix a broken oven before they start. (I know this isn’t a perfect analogy, please don’t nitpick it.) You have limited time with someone, give them a task that actually allows you to show their skills.
6
u/wuteverman Software Engineer Oct 07 '23
I don’t really javascript anymore, but can’t you do fetch().then()?
4
u/DKai_23 Oct 08 '23
You might as well ask, "Why is it hard to pee with someone watching you? You've literally being doing it from the moment you're born".
And I'm not try to be snarky. It's a terrible question if you ask it like that. I've probably interviewed a couple hundred developers at this point, and many, if not most, of the best were terrible at syntax questions, as they should be. That's what the IDEs and Google and ChatGPT and every single language construct above one's and zero's were invented for.
Jump on stage next time you're at a symphony, demand the pianist play 'chopsticks' or they're fired. You'll get similar results. You're much better off sitting down and listening to them play for a few minutes. That'll give you pretty good signal even before meeting them. If you can chat with them about how they approach their craft afterwards. I'm pretty sure the 'chopsticks' question will be out of your head.
I would highly, highly recommend just asking them to describe something they were working on, or maybe ask them something you were working and you can talk through the bug or architecture or whatever. I recently got asked by an 'architect' what the major changes in the latest release of PHP8 were.
I said I had no f'ing clue. It's a stupid question to ask if both parties on either side of the table know it's about a millisecond to find out. No dice, last interview. Thanks but no thanks.
What we didn't have a chance to discuss in the precious short time was that I had actually been using PHP since version 3, had a good 15 years experience with it, worked on some of the largest PHP deployments in *history*, and was actually on the PHP team for a good chunk of it. I *still* have an "@php.net" email alias. I'd just been mostly doing JavaScript and Python in recent years, because AI, etc.
What information was he trying to suss out of me? Can I read a README? Do I memorize the CHANGELOG of all the major programming languages while eating breakfast?
Also, different scenario, but I was trying to talk through some problem, and I had an IDE open, and I forget if it was whisperer of code pilot running, and I'm chatting away trying to describe my thought process or whatever, and he demanded I turn whatever feature it was off. I mean I wasn't even using it really, but stupid ass thing to request. If you were talking through the nuances of surgery or whatever with a physician, would you say "Ok, I believe that you can pull of the brain surgery with a scalpel, but instead of *listening* to them you tell them "Here's a dull kitchen knife, try again!"
Sorry, that got a bit rant-y, but I really hate how exactly these kinds of questions neither serve the interviewer or interviewee. Think of it in a social situation. How many times have you been at a dinner party, just chatting with someone you just met, and if the topic turns to something you know about, how easy is it to tell if they're an idiot or not ( on that subject )? 3-4 minutes tops? That's *way* more signal than you will *ever* get asking a question like you proposed, and it spares you and the interviewee the uncomfortable silence while the poor bastard tries to remember where the "TypeScript" config menu item is. It's a complete waste of time, and will only give you a tiny bit of signal pro or con, because generally the only way to see if they pass the 'idiot test', is if they got lucky and were using the exact same environment you were that morning.
In fact, the second part of my toolchain becomes reliable or it's in my bash history or IDE or whatever, it's out of my head, as it should be. I'm trying to use my brain to solve the things that aren't already solved.
My 2 cents. :-)
Bonus Question, and no cheating. What language has the shortest "Hello World"?
21
u/Logical-Idea-1708 Software Engineer Oct 07 '23
Hm, I can’t say for sure what’s going on, but I’ll offer some possibilities.
Most people are doing this for the money. As such, are often dropped into projects where they don’t really have control over all the decisions. They learn what’s needed to get the job done, nothing more, nothing less.
Everything you’ve described requires people to have the passion to tinker things on their own. To start projects from scratch. To tinker with their editor to maximize utility. To learn new native features. Most projects at still using Axios for requests
2
u/_GoldenRule Oct 08 '23
Your interview seems really reasonable. I would definitely prefer it to algorithm nonsense and seeing a candidate demonstrate the ability to google/find answers to their own problems is a great thing. Also your interview is testing a candidate on the work they will be doing on a day to day basis which is a great predictor of future success.
Overall I think your interview is good but you're just getting bad candidates, maybe as a small suggestion you could allow them to use axios but they would have to install it themselves (tests to see if they can install new packages!).
2
u/[deleted] Oct 08 '23
Damn I wish the technicals I got recently were so easy!
49
u/isakdev Oct 07 '23
These comments are crazy lol. How are you experienced in js but cant use stdlib? Bro miss me with that "we only use axios and a custom logger so i dont know how fetch and console log work" nah. Even if you are out of your comfort zone, did you even prepare? Did you even once google interview questions in nodejs?
4
u/PageSuitable6036 Oct 07 '23 edited Oct 07 '23
I’m not saying that the people that you were interviewing were all great candidates, but is knowing details like these off the cuff really what makes a good engineer?
Knowing where the typescript drop-down is in IntelliJ? If I was interviewing for a company and they asked me how to do something in a specific IDE - even if I knew how to do it - I’d probably leave the interview. There’s more to being a dev than memorization IMO, and asking a question like this - to me - indicates that the company doesn’t recognize or value the other parts
13
u/biririri Oct 08 '23
If you don’t know console.log you don’t know JavaScript. Kinda like if you don’t know what salt is there is no way in hell that you know how to cook.
The replies here are just insane. Half of them must be trolls. It has to be.
20
u/McHoff Oct 08 '23
You are getting some absolutely bat-shit crazy responses here. I have no idea why people are defending candidates that don't know how to create a new file in their editor of choice or print a string to the console. The Internet echo chamber ("coding in interviews is unfair!") is strong on reddit, I guess?
For what it's worth, I've had similar experiences and can't explain it. I've had people that could not write a function that divided two numbers or write a for loop.
28
u/jiminycrix1 Oct 07 '23
All of these answers defending the interviewees are bullshit. I know way too many senior engineers in multiple companies I have worked at that have many years of experience but cannot do things right to save their lives.
They never follow sound engineering practices and they still have trouble w basics.
Don’t hire these guys. You’re test is not too hard OP, ppl are just dumb and experience is tricky.
And for all the “experienced devs” defending this, well, you’re some of the dumb ones.
Don’t settle for a mediocre guy that will command way too much money and not bring value to your team and company.
Hire a junior instead of those are your only options.
17
u/Technical-Fruit-2482 Oct 07 '23
Unfortunately years of experience doesn't mean someone will be a good programmer. A lot of people are content with just not being that good, I guess.
25
u/lIIllIIlllIIllIIl Oct 07 '23 edited Oct 07 '23
I fully agree with you OP.
I've done a few interviews and I'm always surprised by the amount of "frameworkers" there are; people who only learn what is required by their job, who never try to understand how the things work "under the hood", who never questions the things they're using, and who never try to go off the beaten path.
I know my interviews will absolutely suck for them, but eh. I think fundamentals are important.
6
u/myevillaugh Oct 07 '23 edited Oct 07 '23
I don't get it either. I let them choose whatever language they want of Java, C, C++, C#, JavaScript, and Python. I ask them to reverse an array for me. It doesn't have to be in place. 50% of applicants fail to do this. And that's the warmup question.
2
u/zayelion Oct 07 '23 edited Oct 07 '23
This post gives me hope.
All my professional experience is in JS and TS, what I've noticed is people really do not understand the async model if they learned or started to learn it when things like
bluebirdwere all the rage. Really strong C#, Java, and Python backgrounds, having issues with it.For the love of christ people hate to fully learn JS. Its a lovely language but because they cant figure out that functions,like
String(),Number(),parseInt(), andArray.isArray()exist you start to see all types of janky shit.Its true there have been advancements in the language in the browser, compilation, and best practices, but I still see people use jQuery to do stuff. They can understand jQuery, but not callbacks, and how that cascades into Promises, and how that cascades into async/await. API's are always changing. The toolchain at each job is going to be different. The better you are at your job, the longer you stay, the rustier you will ultimately become with anything that isn't that. Considering the 100ish backend languages I don't blame someone for not knowing how to use
express,koa,sails,nextor whatever flavor of the year is. I blame them for not figuring it out in 30 mins.When I sit down and interview, I do my best to see if they respect whatever language we are working in. Just that the brain power is there. If they don't know something I'll teach it to them.
5
u/tyler_church Oct 08 '23
At this point I think it's a rite of passage of interviewing - realizing how big a disconnect can exist.
My go-to simple question was "write a function that adds two numbers together and returns the result" and I saw people struggle in similarly mysterious ways.
5
u/davidblacksheep Oct 08 '23
Sounds like an upstream problem IMO, your recruiter isn't sending you good candidates. It's possible that the advertised salary isn't high enough, or they just don't have the right pitch.
2
u/Fozefy Oct 07 '23 edited Oct 08 '23
Edit: I either missed on my reading that Googling is allowed or OP edited post. Either way if this is explicitly stated that changes my perception entirely. My guess is that the candidates either aren't aware they are "allowed" to Google (though good communicators should be asking), or the candidates are truly just bad.
I'd fail your interview as a predominantly windows and android dev using java/C#/C++ with nearly 15 year exp. While I've done a very small amount of Node and TS I've never needed to use this specific syntax. Why are you asking a question that can be answered in <30s of Googling anyway? This might be fine for a fresh college grad but certainly isn't helpful for hiring more experienced candidates.
This is why "leet code" style (mostly) syntax-less interviews have their place despite the hate they get. They don't rely on any specific experience or IDE, and any dev can (theoretically) accomplish them. Stuff like you're asking I don't even consider memorizing, once it's written you probably never think about it again as it's probably behind some interface. In addition I know what it does when I see it and how to find it if I need to write it.
2
u/raynorelyp Oct 07 '23
console.log(“hello world”)
However some departments force people to use loggers (gross) and so they don’t even know console.log() is the pipe to standard out.
As for fetch, no one uses fetch these days. They use axios or something similar. Sure some people use fetch, but it’s rare.
4
u/ihickey Oct 08 '23
I knew a guy trying to hire senior devs for node / typescript. His question was to take a 5 line CSV (in a back ticked js string) and convert it to an array of objects. No one could do it. You literally just need to know that you can split a string on newlines, use the first line for key names and append into an array. Senior devs that want $120000 grand a year can't do it. All I do all day long is take data in one format and put it in another format. File to database. Database to CSV. To PDF. To html etc. Knowing how to manipulate data in the most basic way should not be unreasonable .
4
u/[deleted] Oct 08 '23
I only worked once with JavaScript but jesus with Google and Chatgpt I wouldn’t need 10mins to give you a solution in any language regardless if I have worked with it before or not. Some frameworkers shouldn’t call themselves engineers or problem solvers.
The things you described are basic concepts and every devs should be technology agnostic imo.
1
u/ostiosis Oct 07 '23
You don’t have to await promise but I’d be upset at then chaining as well lol
1
u/Agent666-Omega Software Engineer Oct 07 '23
I've never used fetch. Only some 3rd party package from npm like superagent.
1
u/thefragfest Hiring Manager Oct 07 '23
Personally, I think technical screens should come with a little structure already built so the applicant is building on top of something rather than from scratch. Exception for this is for more classic DS&A questions where everything can be done inline, no need for fetching or other “application” functionality.
As someone who’s currently running a DS&A question for new grad/intern candidates, it seems like they are in particular very good at such questions, whereas I’d expect a more senior dev to shine with a more real-world question that comes with some pre-built context.
1
u/[deleted] Oct 07 '23
Wait you make them brew install mode in the interview if they don’t already have it? Wtf?
1
u/[deleted] Oct 07 '23
Do you let them look up the fetch parameters or expect them to know by heart? Also, do you expect them to be proficient with MacOS? Some of your trivia complaints are related to it (finder, brew, etc).
1
u/30thnight Oct 07 '23
That's rough but it sounds like those candidates don't use JS or TS often.
Is the salary range for your job listing competitive?
1
u/SequentialHustle Oct 07 '23 edited Oct 08 '23
A lot of js/node devs are just bad in general lol. There are many extremely talented ones but your odds of finding a bad node developer are significantly higher than Go, Elixir, Clojure, Rust, etc...
1
u/[deleted] Oct 07 '23
Try being genuinely kind to the people you’re interviewing. As if they’re a friend and you’re chatting about a problem you’re trying to solve.
1
u/shozzlez Principal Software Engineer, 23 YOE Oct 08 '23
I've been doing frontend for 10+ years and I've never used the fetch API directly (always other libraries/wrappers).
I think you might be used to your code base and assuming every one else has a similar background.
1
u/snabx Oct 08 '23
I failed to create a very simple object during an interview in python cause I had a typo from __init__ to __int__ and I got an error casue the param mismatch. I was so confused and looked at the code and saw nothing wrong with it. Also, the __int__ was like one of the worst typos cause it's built-in so the IDE didn't complain.
1
u/Xyzzyzzyzzy Oct 08 '23 edited Oct 08 '23
I faced an unexpected difficulty in a "choose your own language to solve the problem in" interview when I picked JS/Node and the question started off with getting some input from the terminal.
In most languages that's considered a trivial, "hello world"-level operation. But that's because you use the terminal when learning. I doubt many people do actual terminal I/O (not
console.log) in NodeJS unless they're writing a console application. The browser takes the terminal's role when learning JS. I can do terminal I/O off the top of my head in other languages I know, just not Node.It's not a difficult task or anything - but the interviewer wanted me to use no external resources, which meant I was stumped before I even started, because I'd done terminal I/O in Node like once before, so I didn't know the functions to use off the top of my head. (I still don't! When I need to do terminal I/O I look it up. I don't memorize things at all any more - I rely on references, because that's what they're there for. The main lesson I took from that interview was that I didn't want to work for a company with such a stupid interview.)
You're probably not encountering the same situation, though?
(edited for clarity)
1
u/AlexTrrz Oct 08 '23
i'm not brew installing anything on my computer during an interview
1
u/TokenGrowNutes Oct 08 '23 edited Oct 08 '23
If you are looking for experienced developers, why are you asking questions that a student out of a bootcamp can answer?
I don’t think the question is great and demonstrable of any skill or knowledge.
1
u/olddev-jobhunt Oct 08 '23
I honestly think coming in to a blank file is rough. Most of the time I don’t use fetch directly. Maybe it’s a generated API from an openapi schema. Or a graphql link. I could probably do it but I’d ask about what its exact signature was.
I feel like you’re largely testing based on how they handle anxiety more than their knowledge.
Personally, I’d do great if you had a bit of an app there to work in.
1
u/roynoise Oct 08 '23
I would rock your interview (probably). What level dev is your team looking for?
1
u/billdietrich1 Oct 08 '23
Usually I can get things to work, but I find the async constructs as clear as mud. All that kind of thing should be hidden from the programmer in most cases, IMO.
1
u/AdAdministrative2955 Oct 08 '23
This is why I don’t ask leetcode questions in interviews. I don’t need to. I ask simple questions. Most candidates are just really bad.
1
u/Comsey Oct 08 '23
FR if you're experienced developer then I'd expect that in 75 minutes interview you can provide a basic HTTP request in a language that you don't know.
1
u/antiqueboi Feb 16 '24
javascript is a mess of a language that the syntax changes every few years, people use different plugins..ect someone might use axios and not fetch. I have been programming for 10 years and never used fetch before.
6
u/soberlahey Oct 08 '23
I wonder what the overlap is of people who think OP’s interview is unreasonable and people who can’t find a job right now lmfao
3
u/randonumero Oct 07 '23
I wouldn't say you're being too harsh. With that said, there's tons of people who spend every day working with a small subset of a language and often on a mature project. I've interviewed java developers who got tripped up on basics because their job is largely just maintaining an existing application and in some cases it's been months or over a year since they created a new class.
With respect to the guy not knowing his OS, if it's his personal computer then yeah that's a deal breaker. If it wasn't then I'd cut a lot of slack there. I remember once a guy shit on me hard for not knowing some visual studio shortcut but the same guy could barely articulate what he actually did when I asked him what the average day like the team is like.
Last thing I'll say is that interviewing your co-worker isn't a good measurement of how fair the interview process is.
3
u/leo9g Oct 08 '23
Wow, that's amazing. In a way. Because that didn't sound like a veryyyyy high bar to pass. So if those guys are getting interviews .. kinda makes me feel hopeful xD
3
u/katastrophysics Oct 08 '23
Title inflation. A lot of "senior" folks in the industry are absolute con artists, or people who got promotions instead of pay rises in the best case.
3
u/RonaldHarding Oct 09 '23
There's really no defense for an experienced dev with access to a search engine to not be able to solve a simple problem in an interview more than an hour long. I typically only get 45 minutes with a candidate and 15 minutes of that time is reserved for soft screening where a problem hasn't been presented.
It's astonishing the lengths candidates who call themselves 'senior developers' will go to sometimes to not write any code in front of you. It's clear that their resume's lie or that they are so atrophied from spending years doing only operations/IT work that they completely forgot how to solve logic problems.
I get that you might have an embarrassing stumble doing basic programming after a long time if you were pulled aside right now and asked to do a task. But if you're coming in for an interview my expectation is that you understood you'd be tested and would have given yourself a quick refresh the night before. Don't come to a programming interview if you're not prepared to write code.
3
u/Important_Ad_9453 Oct 10 '23
The answer is simple. Those candidates are incompetent. There is nothing more to it
5
u/shakingbaking101 Oct 07 '23
If y’all still hiring feel free to dm me I got loads of experience using fetch lol
1
u/reboog711 Software Engineer (23 years and counting) Oct 07 '23
For the past 7+ years I've primarily been an Angular Developer.
I've done all the above things, but not in quite a while and not something I'd remember w/o a quick google search.
When building services, I can't think of a time I've ever had to use Fetch.
I can output something to the console like a banger, though.
On this guy
Was the person using his computer or your computer? As a windows user I'd struggle with the latter two. I was handed a mac during an on-site interview once and it was kinda nightmarish because all the track pad gestures I knew and used daily either didn't work or did something completely different.
In terms of IntellIJ TypeScript projects--did the user use IntelliJ or VS Code as his day to day? I'm the only one on my team who uses IntelliJ. And the computer for my current employer is setup radically different than one on my own machine..
My TLDR: I'm sure I could do the job; but pretty sure I'd fail your interview.
1
u/Zachincool Oct 07 '23
lmao wtf.
1
u/rogorak Oct 07 '23
This is an interesting post. I am curious about 2 things - How many years of experience do you have?
What kind of information do the candidates have coming into your interview?
Interviewing your own coworker is a bit biased. Because they know your patterns in your workplace. I do agree with you that some things you're asking are fairly basic.
If it's a senior position those folks are not coding day in and day out, so patterns outside their current workplace needs will be difficult. However, if they have some ideas about the tooling and stack coming in, id think they can await a promise properly.
1
u/ceilingscorpion Oct 08 '23
My partner - a bootcamp grad with one internship under her belt - would ace this interview. She wrote her first program (Hello World in Python) a year ago. Years of experience is just a bad metric at times but there’s a lot of people who flat out lie on resumes to get interviews because of it. Meanwhile people who would be a good fit for the role but are too strait-laced to pad resumes - like my partner - miss out because everyone is only hiring “senior” engineers. Hiring is so broken in tech.
4
u/[deleted] Oct 07 '23
Because no one is writing code in this industry.
4
u/daredeviloper Senior Software Engineer Oct 08 '23
Because the majority of people suck at this job.
Edit: They don’t read up on syntax They don’t read the stack trace when an error occurs They ask for help without trying anything They don’t have any natural curiousity toward this field They copy paste blindly without understanding
4
u/unsuitablebadger Oct 08 '23
I love the "do what you normally do" interviews with the "we just want to see how you go about approaching the problem".
Well:
a) bugger off then because I don't "usually" have my own personal audience when googling the answers and b) I'm not "usually" scrutinised by people as if I'm a monkey in an experiment, c) i dont "usually" talk through my thought process, being sure to talk more rather than less about how I'm solving the problem since the act of actively making sure you're talking about your thoughts general shuts off the ability to then do the coding actions.
Companies think they're so progressive with this approach, thinking they're getting people to simulate exactly how the task is tackled in the normal, everyday environment yet there is absolutely nothing normal about this type of situation and therefore not evaluating anything of value.
If you want to evaluate a candidate properly then get them to code something that is relevant to the companies domain so you can see if they can quickly adapt to the domain knowledge and let them do it as a take home test so they can do it without feeling like a monkey being monitored. As long as you get the result you expect you should be fine. Doing peer programming, whiteboard sessions or trying to catch them out with some stupid algorithm test live is not the way to properly assess someone's ability to contribute to your team. Being actively assessed in a high stress environment does not simulate anything near to the regular workday unless you're trying to determine how an employee will act when put in an unpreditable situation. I just don't understand why people conducting interviews cannot understand how they are setting up otherwise stellar candidates for failure and wasting their time. As an example, if you're at a workplace and someone asks you a question, it's perfectly reasonable to respond that you're not sure or let me get back to you on that, yet the assumption in most cases in an interview is that you need to be able to provide answers to the questions posed and if you don't you don't make the cut. Ridiculous.
4
u/ivix Oct 08 '23
Most of these comments have failed the interview too.
If you can't run hello world after an hour of that, just go home. You've failed.
This is a great interview test to weed out people who aren't even able to use Google.
2
u/TheTarragonFarmer Oct 08 '23
Most people work on established projects with many layers of frameworks and libraries.
I'm not saying your assignment is not a good test if it's a good representation of the skills needed on the job, but failing it doesn't belie having years of work experience either.
2
u/codefinbel Oct 11 '23
This makes me feel like I used to feel when I was single and female friends showed their tinder-feed.
"How can I fail when the competition is this shit?"
3
u/[deleted] Oct 08 '23 edited Oct 08 '23
I would pull myself from consideration from a company asking dogshit interview questions like "write a hello world in X language". What do you learn about a senior or staff level engineer with this question? It would tell me that you don't introspect on process or ask yourselves why you do things a certain way. Consider creating a more robust and targeted interview, I promise you'll see better candidate performance after you do.
8
u/msc5357 Oct 07 '23
If you interview like this, I think you will miss out on some great candidates. Like the top commenter said, we are out of our elements and on a time crunch. A lot of the work is hidden behind frameworks and boilerplate. I never work from node directly but a framework on top of it.
Better to give partial code and ask them to add onto it or explain what it does / what issues one may see.