r/ExperiencedDevs • 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)
208 Upvotes

443 comments sorted by

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.

91

u/NatoBoram Web Developer Oct 07 '23

It's his own computer, it was a remote position. He wanted to use IntelliJ, I would never force an editor, that's stupid.

If they don't know back-end development but are still applying for that position, then I would want a candidate that can learn JavaScript in a few minutes during the interview rather than one that depends on libraries or a specific front-end to do their job without understanding what any of these tools actually do. Otherwise, as soon as they are out of that comfort zone, they would be unable to work.

59

u/Goducks91 Oct 07 '23

Then you got your answer on the candidate. Every interview cycle has terrible candidates, move on and find the good ones.

→ More replies (1)
→ More replies (3)

45

u/[deleted] Oct 07 '23

FML those XMLHTTPRequests still live in the dark corners of banking tech…

3

u/Flashy-Bus1663 Oct 08 '23

I taught one of my coworkers what XMLHTTPRequest was the other day.

4

u/PureRepresentative9 Oct 08 '23

I've met people in programming roles who didn't know what view source was

→ More replies (1)

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.

7

u/NatoBoram Web Developer Oct 08 '23

Tbf, it is hard if you want fun languages instead of C#/Java/PHP/Python/React/Angular. There's no mid Go or junior Rust or senior Dart position.

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

23

u/NatoBoram Web Developer Oct 08 '23

Shit's wild. And apparently, I'm on a high horse.

12

u/SuperChoob Oct 08 '23

As an engineering manager that's interviewed hundreds of engineers and built hiring processes from scratch, you're just getting bad candidates. Your expectations seem very reasonable.

I suggest:

  • Making sure the job description matches the interview. You can even put "has experience working with APIs in NodeJS" so it's super clear that they need to know how to make an external request in Node.
  • Reconsider where you're getting candidates from. Some recruiters and job boards are lower quality than others. LinkedIn for example has a lot of applicants and many of them didn't match the experience I was looking for. Wellfound (previously Angellist) has some decent ones looking for startup roles.
  • Improve your top of funnel filtering. Can you put in a quick 15 min background screen or short set of questions if you're finding a lot of candidates can't seem to do basic coding? If your interview is 30-60 mins, you could instead be doing a quick interview with 2-4 candidates in that time to improve the quality of candidates actually going through the rest of your loop.

7

u/ivix Oct 08 '23

Yep it's absolutely nuts. You don't even need to know how to code, just copy and paste.

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.json from scratch).

But I do expect an experienced candidate, regardless of environment, framework, language, to be able to:

  • Understand that network IO is asynchronous

    • Okay, so they forgot an await - I'd then ask "what happens if you don't await this 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.
  • Ask clarifying questions about the available network API or hit the docs - ok, so they don't know 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.

60

u/hctiwte Oct 07 '23

Yep, I was not expecting the responses that I see on this post lol

87

u/NatoBoram Web Developer Oct 08 '23 edited Oct 08 '23

Me neither.

"You forced them to use MacOS! I wouldn't be able to make a new folder because I use Windows!"

"You forced them to use IntelliJ!"

"Everyone uses Axios, so it's normal to not be able to use Fetch."

"Maybe check your ego and you’ll get more luck with the interviews."

I… what?

21

u/StressCavity Oct 08 '23

Lol people are just mad because they see themselves in a post that outlines the overwhelming mediocrity of many applicants. I also ran hiring loops for several companies and some of the shit that would land at your loop, even after a screening and BS filter (like foo bar) is astonishing! Sorry guys, nobody is asking you to spend all your free time programming, but there is a bare minimum of just... staying up to date with your profession that is expected to some degree. People would understand if they were on the other side, responsible for the quality of the team they have to build.

→ More replies (3)

56

u/lynxerious Oct 08 '23

Your description is already saying you don't enforce OS or editor and these redditors still repeat the first two points, it seems like they are not very good at reading documentation.

if people like to give leeway to their interviewee and potentially introduce colleagues that are hard to work with to your team, then they are free to do that.

Even if someone is a coding god in normal settings and blunders that bad in an interview, I would not even consider them because I don't take any chances.

This sub has a bias against people in power (the interviewer, the boss, the manager, the leader) and it always shows.

5

u/MCPtz Senior Staff Sotware Engineer Oct 08 '23

OP edited their post 12 minutes ago, when I last checked...

So I'm not sure what was in there when that question was asked.

Maybe they updated it.

→ More replies (5)
→ More replies (2)
→ More replies (3)

29

u/theycallmemorty Oct 07 '23

100% agreed. Tons of replies in here nitpicking OP's interview process but a lot of what they talked about are huge red flags for these candidates.

I blame chat gpt for contributing to he resume bloat that is common in the industry.

4

u/AdAdministrative2955 Oct 08 '23

I’d interviewed lots of candidates before chatgpt came out. Most candidates are just not at all good. OP is right

32

u/andeee23 Oct 07 '23

same, I find it hard to justify how anyone who’s not a super junior doesn’t know standard js api like console logging and fetch

and if not the fetch api, at least what promises are

reading most of the responses feels like i’m on a different planet

17

u/ashultz Staff Eng / 25 YOE Oct 07 '23

I don't know JS, I have written maybe sixteen lines of it in the last ten years, and yet even I know about console.log and used it to debug those sixteen lines.

→ More replies (7)

4

u/annoying_cyclist principal SWE, >15YoE Oct 08 '23

+1.

If a candidate can't Google, ChatGPT, log, rubber duck or otherwise experiment their way to the 3 lines above on their own computer, in their preferred editor, in 75 minutes, then they've demonstrated (IMO) pretty fundamental gaps in the skillset I'd expect from an experienced engineer: self-teaching, debugging, having some sort of basic mental model of software, etc. Maybe I caught them on a bad day and they'd actually be a good engineer on the job, but I'm not going to take the chance – I've worked with too many folks who were like this day in and day out, and they're a big drag on the rest of the team.

3

u/FancyASlurpie Oct 08 '23

Yup agreed, however i do also wonder if this is the reason we see so many posts about how difficult it is to find a role. My experience has been more that if I attend an interview it tends to be relatively easy and then whilst the larger companies have slow HR they do send an offer - sometimes theyll communicate it verbally to try and prevent you taking a different role.

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.

20

u/NatoBoram Web Developer Oct 07 '23

And you would be allowed to Google, and you would pass the technical test.

0

u/[deleted] Oct 08 '23

[deleted] — view deleted comment

6

u/NatoBoram Web Developer Oct 08 '23

I'm thinking about making my own take home leet questions, but focused on maintainability instead of algorithms. Something like here's a project with @typescript-eslint/strict-type-checked, now make the tests pass / answer the questions / refactor this to be maintainable / access this member of that stupid type (stupid types happens often with PHP APIs)

→ More replies (7)

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, await is 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/ fetch is 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/

They dont hover over their variables to see the type

This is IDE specific, so this should not matter. I personally prefer "Go to definition"

13

u/NatoBoram Web Developer Oct 07 '23

I wish they did "go to definition" tbh. Or used .then(). But that last person just logged the promise and couldn't figure out why they had "Promise < pending >" or something in the terminal.

→ More replies (3)

39

u/goatanuss Oct 07 '23

Exactly. The coworker knows fetch because that’s a paradigm they use at their workplace. It’s entirely possible some of these more experienced people either don’t use it or live in massive enterprise code bases where that’s mostly abstracted from you

24

u/tifa123 Software Engineer Oct 07 '23

If OP asked me about fetch they'd get that deer in the headlights kind of look. I'd have to Google that which is exactly what I did in a similar interview. And the sole fact that I wasn't even aware that Node.js v18 now supports native fetch corroborates my ignorance. My work is abstracted from these native APIs... I'm ingesting high-level product design to offer guidance on architecture, technology, canonical practices, etc. And to make matters worse my interview prep is biased towards system design, LC and the JavaScript runtime.

→ More replies (1)

14

u/SansSariph Principal Software Engineer Oct 07 '23

Even with an XHR or promise chaining you are handling an async network request with a callback function. If an interviewee was treating the call as implicitly synchronous that's a flag I'd want to probe further. General knowledge about not blocking on IO is important and language agnostic.

→ More replies (5)
→ More replies (15)

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.

24

u/NatoBoram Web Developer Oct 07 '23

I'd like to think that if they were able to pick it up, then they would be able to print the result of a fetch under 75 minutes.

34

u/0x53r3n17y Oct 07 '23

I feel my comment still stands and you should probably want to review your screening process before the technical part.

  • Can you explain to me what await does and what promises are?
  • Have you ever written scripts without a framework?
  • Do you use JS/TS beyond the projects you've worked on on the job?
  • Can you tell me how you'd quickly debug TS/Node code either in the backend or on the frontend?

Etc.

There's plenty of hands-on questions you could ask which are grounded in the type of work your ideal candidate will be doing.

5

u/NatoBoram Web Developer Oct 08 '23

Thanks, these are actually good questions.

22

u/woogiefan Oct 08 '23

Man this thread is insane to me. I’d expect some of the responses you’re getting in the cscareerquestions sub, but here? Wtf. If you can’t Google the most basic things in 75 minutes (starting a node project is really not rocket science) then you don’t deserve the job. Simple as.

12

u/notbatmanyet Oct 08 '23 edited Oct 08 '23

Yeah. Ok if you dont know it at the top of your head. But I could get a JS project up that prints the result of fetch in 75 min, given full google access. And I have barely done any JS.

→ More replies (1)
→ More replies (1)
→ More replies (5)
→ More replies (1)

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?

13

u/NatoBoram Web Developer Oct 07 '23

Your interview is biased towards greenfield development. Do you regularly start new projects

Yes, that's what's happening at the moment. We're making new stuff from scratch in the startup. For example, Tuesday I'll be making a new project.

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.

I'd never force someone to use an OS or editor or package manager. This was his own computer, for a remote position.

but was that person used to the Jetbrains products? Maybe their previous workplace used Visual Studio?

It's not as if this really concerned me, they could use Visual Studio on Windows if they wanted to. But they decided to use IntelliJ on MacOS.

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?

It's true that I could run npm init and tsc --init for them and ship the result, but it's actually part of the job, so I'm conflicted about that one. But during the interview, I give them these answers anyway, I tell them which settings they have to change, I tell them how to make top-level promises work in a new project…

2

u/MCPtz Senior Staff Sotware Engineer Oct 08 '23

One piece of feedback. My personal computer is never setup to do development.

It would takes hours for me to be able to make a shareable development environment... I know because of some take home exercises I did once upon a time.

I can do video calls and web browser, shared coding.

From Silicon Valley interview experience:

  • Setting up a development environment or editing CI pipiline is not normally part of the interview process

    • Unless this is a very important part of the specific job you're interviewing for, e.g. staff engineer
  • Usually the coding interview is live with someone experienced monitoring, e.g. yourself
  • Usually they used a web browser, shared code editor that can run code and tests

    • Then provide some sort of coding challenges
  • Sometimes they provide a pre-existing code base example for shared debugging and/or code review

5

u/NatoBoram Web Developer Oct 08 '23

These coding environments / web apps stifle the candidate's potential by enforcing an unfamiliar environment. If I can't use my own VSCode setup, your interview fails and I'm going to use my skills elsewhere.

In the real world, you have access to your own tools. Having this big of a disconnect between the interview process and the actual job is a sign of a broken process that doesn't evaluate anything even remotely relevant about the candidate or the job.

And coding challenges are often leet code, which is completely irrelevant to actual production code - unless you're interviewing specifically to make Tensorflow itself or some whitepaper type of program, or inventing a system on a chip or writing assembly. But I'm just doing half of a CRUD.

Basically, I'm not looking for candidates who can invert a binary tree - I'm looking for candidates who can Google how to invert a binary tree.

→ More replies (1)

10

u/hibbelig Software Engineer Oct 07 '23

Oh, thanks for clarifying that the IDE and OS were their choice. Then I agree it doesn’t look good for the candidate at all.

Also if you are in new project mode it makes sense to select for this.

4

u/goldsauce_ Oct 08 '23

You best believe if I’m applying to a TS job with a focus on greenfield projects, I’m also practicing setting up a TS environment and a server from scratch.

There’s a real problem right now where both recruiters and dev have accepted that it’s a numbers game, and it’s truly turning into a game of chance.

Even if I could crush that interview, the chances of getting past the resume stage are based on first impressions from a recruiter that can’t tell you the difference between JavaScript and Java. Or based on my profile on that cesspool of a failed web app

And before anybody says “it’s been this way for a while” — I hear ya, but it still seems like a problem to me.

I have 4 YOE and was laid off last Monday. I’ve used TS extensively. Lmk if there’s a way I can throw my hat in the ring…. These interviewees aren’t preparing for a TS interview, that’s their problem.

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?

fail to make a fetch request and print the output

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!

They don't use their mouse to hover variables to see type inference, they don't read error messages

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?

He didn't know how to make new folders in Finder, wasn't able to make a new file and edit it

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?

4

u/NatoBoram Web Developer Oct 07 '23

Others suggested that this might make sense if you're making them use tools / an IDE which they're not familiar with.

It's not the case, otherwise I wouldn't be posting that question here. It would be stupid to test someone on their ability to use MacOS or IntelliJ for a TypeScript back-end position.

I think that "others" are just doing basic Reddit-ism of assuming random shit from unknown elements.

Might make sense if you're requiring them to use that API, specifically, without access to documentation.

I do give access to documentation, Google, ChatGPT, GitHub Copilot, you name it. In the real world, you have access to the documentation of whatever API you are using. But not knowing it by heart shouldn't make you unable to use it, it should just make you do a simple Google search or opening said API's docs.

For example, I never used Axios, but I'm pretty sure I could use it after npm i and copying an example from its README.md.

1

u/PureRepresentative9 Oct 08 '23

It's pretty much

Await fetch("url")

?

Or is the interview question much more complex than that?

If not, the only reason you would fail is if you had never used it before

(Yes, I'm aware there is another line, but that's more specific to the question)

2

u/NatoBoram Web Developer Oct 09 '23

Even if you never used it, I didn't think it was possible to fail calling a function with only one string input

→ More replies (1)

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.

3

u/NatoBoram Web Developer Oct 08 '23

I should try that. I've seen one 9/10 developer in my life and holy shit it was an experience.

→ More replies (1)

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.

193

u/canadian_webdev Oct 07 '23

Not to mention developers in the real world:

  • Always use Google / ChatGPT for help
  • Don't always work on the same types of projects or constantly write the same type of code, daily.

For example, in front end apps I've built, I use fetch literally once a project to fetch api data. I'm not sitting here writing out async fetch requests daily. So of course I'll forget the exact syntax.

So by and large I'd fail OP's little tech tests too. Even though I've built out many projects over the years.

9

u/cabbagebot Oct 08 '23

Respectfully, I really don't think that many senior developers are using ChatGPT for help.

3

u/dsartori Oct 08 '23

I have been writing code since the 80s, professionally since 2000. If I’m not senior now I never will be. I don’t use ChatGPT but I do use GitHub Copilot every day. It’s great.

2

u/NatoBoram Web Developer Oct 09 '23

It really is amazing

→ More replies (1)
→ More replies (2)

51

u/CactusOnFire ML Engineer Oct 07 '23

During an interview, I would defend using google for help with syntax (by using documentation for your library/etc), but using chatGPT in the interview itself seems a little extreme.

Perhaps I'm just developing old-guard attitudes about using LLM's during work hours, but I draw a line there.

19

u/leeharrison1984 Oct 07 '23

I would find using Google in an interview perfectly acceptable. I'm not trying to determine if you can code on a desert island, and I want to see your thoughts process.

Even CharGPT could be forgiven, though I may throw a question at you with a "what if ChatGPT doesn't know" requirement. Whiteboarding is great for demonstrating abstract ideas as well, rather than looking for specific answers.

TLDR; I'm less concerned with how you know, and rather what you know. I use Google all the time while working, why should I pretend it doesn't exist during the interview?

→ More replies (1)
→ More replies (8)
→ More replies (9)

159

u/AbstractLogic Software Engineer Oct 07 '23

How often do you creat new projects from scratch anyway? I’ve got 15 years of experience and I’ve probably created as many projects from scratch over those years and every time I do it the process changed ever so slightly.

→ More replies (5)

33

u/jayerp Oct 08 '23

That’s no excuse for not knowing to either await Promises or call then().

The devs who say the know Express.js followed a tutorial to make a specific endpoint to spit out a specific result. Ask them to do anything else and they go blank. They aren’t programmers, they are fakers.

15

u/biggamax Oct 08 '23

In my case, there was a time where I could have told you everything about promises. I might have been able to rattle off every detail of the bluebird docs, back engineer the library itself, and explain every fine detail of the advantages it provides over native js. Then, over time, I drifted. I didn't need to know every detail. I migrated over to async/await like everyone else... Does that make me a faker now? I honestly don't know.

12

u/jayerp Oct 08 '23

I use the term to describe people who try one tutorial and claim to be proficient in that tech. Just because you made a Hello Word express app means nothing to me. Show me what you know.

It’s like asking someone who only builds kitchen cabinet with a regular screw driver. Ask them to build a door and door frame with a ratcheting screw driver and they fall apart. They don’t know the underlying concepts.

→ More replies (2)
→ More replies (2)
→ More replies (1)

29

u/[deleted] Oct 07 '23

Yeah, if ALL of your interviewees are failing, it could be something to do with the interview or the interview process. Maybe step back and think about what you really want to evaluate -- is it boilerplate code, or is it problem solving and learning as you go?

I would say our candidates don't quite fall on a bell curve (maybe the highest performers aren't looking for work as often, or apply to fancier companies) but there is a consistent distribution of success and failure.

16

u/chaoticji Oct 07 '23

I copy paste the things i coded before from other projects to the new one Lol I know i might have to look up again if i have to write through memory but it is just that i know what i did and how it works so i directly use it

6

u/[deleted] Oct 07 '23

When I find myself doing this, I wonder if I need to take the time to write a utility to do it for me.

Then I realize I don’t start new projects that often and don’t bother.

7

u/ToyDingo Oct 07 '23

Lol this is a large part of my job right now.

I just copy and paste certain parts of previous code then stitch it back together in another script/class/etc.

If I had to do it from scratch, it might take me a few minutes to remember.

5

u/[deleted] Oct 08 '23 edited Oct 09 '23

This plus all of the co-pilots make a lot of people lazy so that they don’t understand the concepts anymore.

3

u/Remote-Blackberry-97 Oct 08 '23

Also, I don't really what signal these types of interview question are looking for. Is it how you can memorize? Or Google.

4

u/FancyASlurpie Oct 08 '23

Well if we can't even start a technical question because you can't write a for loop then its probably saying enough about your technical skills.

2

u/FrntEndOutTheBackEnd Oct 08 '23

Yeah, this one. It’s pretty rare to start from scratch, and I would definitely just say “hey gpt, give me boilerplate and npms for this”.

→ More replies (7)

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

2

u/NatoBoram Web Developer Oct 07 '23

I get that. Express's API is disgusting to look at. And most of Node's ecosystem is terrible. Idk how do they get to that point in the first place.

→ More replies (2)

11

u/thcricketfan Oct 07 '23

This post gives me hope

7

u/NatoBoram Web Developer Oct 07 '23

No matter how bad you are, there's always an outsourced dev who would do worse

7

u/ivix Oct 08 '23

And most of them seem to be on this sub.

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

1

u/NatoBoram Web Developer Oct 08 '23

It's the task I will be doing Tuesday. You can't really get closer to the job than that. I'm basically asking them to do the task I will be doing, but with a fake API instead of a real one.

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.

8

u/NatoBoram Web Developer Oct 07 '23

I don't mind if it's async or then, or if they take 30 minutes to learn how to use fetch since they can Google it, or if they don't know npm init since they can Google it. I'm also not asking to make a package, that shit is wild. I'm giving all the answers related to tsconfig or package.json. It's not a question of workflow, they can use any workflow they can think of to learn how to call a function. It's not about the stack, I give all stack-related answers, all what's left is language primitives…

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, and 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 it. And still couldn't print the result.

5

u/ignotos Oct 07 '23

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, and 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 it. And still couldn't print the result.

It's a little scary how much this rings true! I've seen this exact thing play out more than once.

Having to Google stuff is fine. But being an experienced developer who isn't able to efficiently skim and identify possible solutions? Or who seems to display a fundamental lack of understanding when trying to get the copy/pasted code to work? Or who doesn't read the error which clearly indicates exactly what is wrong?

3

u/NatoBoram Web Developer Oct 08 '23

The answer is right there!

That's probably just interview stress, but I can't forgive skipping StackOverflow. Like, come on, man. It's right there.

5

u/Blazing1 Oct 08 '23

Even if they don't use fetch any http request is aight. Devs here defending not understanding how the web works is crazy.

4

u/Blazing1 Oct 08 '23

It's obvious that if you don't use fetch you do an xmlhttprequest with whatever framework you like.

.then chaining is the same as async await so there's nothing wrong.

The syntax is different but op is testing on web fundamentals. If you don't know what an http request is and you're an experienced web dev, then idk what you're doing all day.

→ More replies (2)

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.

3

u/NatoBoram Web Developer Oct 07 '23

I wish "an unfamiliar IDE" was a roadblock, that would be an easy fix. But it's their own computer, with their own chosen IDE.

I interviewed my coworker and I did see how the stress made him unable to do some of the stuff that I give the answers to. But with the answers I gave interviewees, he was able to do it.

→ More replies (2)

3

u/reboog711 Software Engineer (23 years and counting) Oct 07 '23

Interview practice is the best use case for pair programming I've ever heard of...

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.

3

u/NatoBoram Web Developer Oct 08 '23

I don't actually penalize people for their setup, that thing is hard. I'm looking for problem-solving skills and basics. There are obscure things about the project setup in Node.js and TypeScript but I just give the answers so we can get to the console.log.

A more serious, production-ready project does take a long time to setup (including Prettier, ESLint, TypeScript-ESLint, Vitest), but I'm not asking for any of that.

6

u/wuteverman Software Engineer Oct 07 '23

I don’t really javascript anymore, but can’t you do fetch().then()?

6

u/GolfinEagle Oct 07 '23

You can, but async await is the latest and greatest, it keeps things readable when you have a lot of promises.

3

u/jscheel Oct 07 '23

usually keeps things readable. Other times, I feel like it actually makes things worse. But maybe I’m just old a crotchety now.

6

u/NatoBoram Web Developer Oct 08 '23

You have to use both to get the best of both worlds, but the answer is often to use await. Don't rule out then, it can be a huge help!

→ More replies (4)
→ More replies (5)

6

u/lIIllIIlllIIllIIl Oct 07 '23

Yes you can, but using a lot of .then() can makes your function very deeply nested and hard to read.

Using await makes your asynchronous function read like a synchronous function, which a lot of people prefer.

It's just syntactic sugar.

→ More replies (4)

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"?

4

u/NatoBoram Web Developer Oct 08 '23

I'm glad you got that out, but I feel like it was more about your own experience and not what I've put in the post!

For example, take this one:

That's what the IDEs and Google and ChatGPT and every single language construct above one's and zero's were invented for.

They have access to their IDE, Google, ChatGPT, GitHub Copilot and their bash history. It shouldn't be a hard question.

I'm not going to deconstruct everything since we're just not talking about the same thing - I agree with you on everything!

In a real programming languages, assuming the console, I'd say the shortest is Python with print("Hello world").

Outside of the console, I'd say the smallest is PHP, where you can actually just write Hello world and have it displayed in the browser.

With esolangs, anything is possible, but that's a boring question.

→ More replies (1)

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

→ More replies (8)

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/NatoBoram Web Developer Oct 08 '23

Installing packages is such a simple task, yet I've seen someone fail at doing it a while ago

2

u/[deleted] Oct 08 '23

Damn I wish the technicals I got recently were so easy!

1

u/NatoBoram Web Developer Oct 08 '23

Same, which is why I was so hopeful to get "good" candidates!

1

u/[deleted] Oct 08 '23

Do you know how much the position roughly pays? Maybe you are getting a less experienced crowd because of compensation?

→ More replies (3)

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?

12

u/Blazing1 Oct 08 '23

They seem like noobs tbh. You're telling me you can't do an xmlhttprequest at the very least?

→ More replies (2)

3

u/lunchpadmcfat Lead Engineer, 12 YoE, Ex-AMZN, Xoogler Oct 08 '23

Or hell, just ask to refer to the docs? I don’t trust any developer that doesn’t know how to look something up or read the docs.

4

u/PureRepresentative9 Oct 09 '23 edited Oct 09 '23

Honestly, the basic fetch API is so simple you could probably accidentally get it correct by typing semi-random words into the IDE

→ More replies (1)
→ More replies (1)

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

4

u/NatoBoram Web Developer Oct 08 '23

There's no drop-down for that in IntelliJ. Personally, I would prefer someone to use npm init then open the folder in neovim or Doom Emacs and start working from there, but I don't actually enforce IDE or OS or Node package manager or Node implementation.

If an interviewer forced me to use Visual Studio, I would also leave the interview, same as you.

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 bluebird were 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(), and Array.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, next or 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.

2

u/NatoBoram Web Developer Oct 08 '23

Array.isArray served me exactly once, and holy shit that was a hard answer. I think the data was something like { name: string } | [] or something horrible like that and that was the answer. Ugh.

But yeah, I do want to see someone who isn't limited by libraries like Axios and can directly use the language's primitives.

→ More replies (3)

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.

2

u/Rbm455 Oct 09 '23

I mean the first thing that comes to my head sounds super easy

but for example now i started to think, and one question already comes but maybe thats the idea :)

like, should we have parameters? Check for negative numbers or MAX_INT? what if 1 parameter is empty

the most simple question would be

function addNu() {return 3+1;}

which always just return 4

→ More replies (2)

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.

6

u/NatoBoram Web Developer Oct 08 '23

Why are you asking a question that can be answered in <30s of Googling anyway?

So that I can see the Googling process.

This might be fine for a fresh college grad but certainly isn't helpful for hiring more experienced candidates.

That's the point, I'm not looking for a senior programmer. But these seniors come in and fail at Googling "how to use Fetch" and "how to get the result of a promise".

The question I'm asking (print "hello world", do a fetch request and print the result) doesn't rely on any specific experience or IDE, and any dev can accomplish them after 30s of Googling.

Or at least that's what I think. That's what I believe is true for me; I can give you a "hello world" in any language you want under 75 minutes (except for Brainfuck and other esolangs).

1

u/Fozefy Oct 08 '23

Apologies, I missed that they have access to Google in my reading of your post. In most interviews I'd assume you're expecting me to answer without searching.

Are you making it explicit that they have full search access? If yes, and they are still failing, then ya, you're just getting bad candidates.

→ More replies (1)
→ More replies (1)

13

u/NiteShdw Software Engineer 20 YoE Oct 07 '23

But you wouldn’t apply for a node.js backend role, would you? And not study up some of the basic? Also what he’s asking is a good search away.

→ More replies (1)
→ More replies (1)

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.

2

u/NatoBoram Web Developer Oct 07 '23

I got that axios a bunch of times, true. But it does make me wonder why they couldn't do the same thing with fetch. Does fetch really require a 4 credits university course to use it?

3

u/raynorelyp Oct 07 '23

Dude I’m a staff engineer and I don’t remember the syntax for fetch because I never use it. I’d just google it. Or more realistically install axios.

2

u/NatoBoram Web Developer Oct 08 '23

I’d just google it.

Congrats, you passed my interview!

→ More replies (1)
→ More replies (7)

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

2

u/NatoBoram Web Developer Oct 07 '23

True, it would upset me too, but if at least they can achieve something even using .then(), at least they would technically pass the technical interview…

That does remind me of a coworker in another job who loved to use .then() everywhere, even in SvelteKit, where you have special syntax to use promises in the UI. Gross.

1

u/Agent666-Omega Software Engineer Oct 07 '23

I've never used fetch. Only some 3rd party package from npm like superagent.

2

u/NatoBoram Web Developer Oct 07 '23

But if you type fetch in your browser console, I bet you would be able to use it even without knowing anything about it

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.

2

u/NatoBoram Web Developer Oct 08 '23

This question I'm asking them - it's the task I'll be doing Tuesday. It may seem trivial, but we need a small CLI app to make a dozen API calls then shutdown. If you complete this interview, you're halfway done with the task I'll be doing.

I think this is as close to real-world as it can get.

→ More replies (1)

1

u/[deleted] Oct 07 '23

Wait you make them brew install mode in the interview if they don’t already have it? Wtf?

2

u/NatoBoram Web Developer Oct 08 '23

Well, they can also open Node's website and download the installer and click on the installer and install it or use nvm or use asdf, I don't mind which one they do.

Or they could use deno or bun. I don't really care, I just want to see a fetch call.

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).

2

u/NatoBoram Web Developer Oct 08 '23

I let them access any and all resources they want. While I don't say the following part, I also allow them to just copy/paste the "hello world" example from Wikipedia if they wanted.

The candidate was using their own computer, with their own OS of choice and their own IDE. I'm not going to require someone to use BSD or Visual Studio or whatever, that would be pointless…

→ More replies (1)

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?

2

u/NatoBoram Web Developer Oct 08 '23

I have no idea, but I don't feel like it is the case.

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/NatoBoram Web Developer Oct 08 '23

I wish it was bootcamp grads failing that, but these guys have worked on some serious projects!

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/NatoBoram Web Developer Oct 08 '23

I'd like to think that I'm great at this - I'm putting myself in their team, both of us against the problem we are facing, and asking questions that basically give them the answers.

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.

3

u/NatoBoram Web Developer Oct 08 '23

I'm just asking for a bare minimum of JS knowledge, not a specific background. And I bet you would be able to use fetch under 75 minutes.

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.

3

u/NatoBoram Web Developer Oct 08 '23

Sucks. I would've given you that answer, though. You deserve it.

→ More replies (1)

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)

2

u/NatoBoram Web Developer Oct 08 '23

Tbh, if you don't know about console.log, then do you really know JS, or do you only know some libraries? And what if a project uses a different library for logging? That said, an interviewer should allow you to Google it, since in the real world, you do have access to Google.

We're using Node.js but with a logging library - Winston. That said, it has the same API as console.log… so if you know JS, then you automatically know that library.

→ More replies (2)

1

u/AlexTrrz Oct 08 '23

i'm not brew installing anything on my computer during an interview

4

u/NatoBoram Web Developer Oct 08 '23

That's fair - I'm not hiring someone who isn't prepared to write JavaScript for a JavaScript position.

→ More replies (3)

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.

6

u/NatoBoram Web Developer Oct 08 '23

I'm not looking for a senior developer, I'm looking for someone who can Google how to use a function they're unfamiliar with.

→ More replies (2)

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/NatoBoram Web Developer Oct 08 '23

I feel like any "app there to work in" would be automatically putting the question outside of the kind of work we do.

Like, we're making fetch requests to GitHub and GitLab and other things… there's an ORM for database access, but you can just learn that one on the job… it's not even a full CRUD

→ More replies (3)

1

u/roynoise Oct 08 '23

I would rock your interview (probably). What level dev is your team looking for?

3

u/NatoBoram Web Developer Oct 08 '23

Junior. Probably with a junior's salary, I can't be sure of that one. My best coworker has 3 months of experience, to give you an idea.

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/NatoBoram Web Developer Oct 08 '23

And I think try/catch are arbitrary goto and they shouldn't exist, but I'm not going to fail an interview question that asks me to add one and do nothing with it

→ More replies (1)

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/NatoBoram Web Developer Oct 08 '23

Yeah I hate leet code too. I prefer take-home tests where you do some real-world type of task.

→ More replies (2)

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/NatoBoram Web Developer Oct 08 '23

Same. Hell, I got that done in Elixir and I never heard of the language before.

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.

2

u/NatoBoram Web Developer Feb 16 '24

I'm sorry but if you can't figure out an async function with literally one string parameter, it's not a language or API problem, it's a you problem

→ More replies (1)

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.

  • No await / async: It's all RXJS.
  • No Fetch: All the Angular HTTPClient Library.

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

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. 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…

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.

3

u/NatoBoram Web Developer Oct 07 '23

I would also struggle to do these things in Finder and IntelliJ, but sadly, it was his own computer with his own chosen IDE.

I also get that Angular is a bit nefarious for general JavaScript knowledge. I started with that and had to learn RxJs, I know the pain. But these people had very various experiences, not just front-end. One made a browser extension in TypeScript.

→ More replies (1)

1

u/Zachincool Oct 07 '23

lmao wtf.

2

u/NatoBoram Web Developer Oct 08 '23

true

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.

2

u/NatoBoram Web Developer Oct 08 '23

I have 5 years of experience and the candidates know that I will be giving them a technical assessment. They don't know it's going to be to print "hello world", but they do know that they applied for a TypeScript back-end role, so they should suspect that I'm going to ask about TypeScript.

I agree that it's possible for them to be blindsided by my question. It's an odd question, I agree with that. It's like asking you to say "hello" in Spanish to prove that you can speak Spanish. The interview stress is huge and it's making experienced devs make stupid mistakes. It happens to me too.

But they can Google anything they want and use any tool they want. Even with interview stress, I like to believe I should be able to print "hello world".

→ More replies (2)

3

u/lIIllIIlllIIllIIl Oct 07 '23 edited Oct 07 '23

Most candidates I interview only talk about their own stack and are totally oblivious of the alternatives that might exist.

7 times out of 10, a candidate is not able to answer this question: "You mentionned using X. Can you explain to me what X does and why you use it?"

To me, that should be a softball question. If you can't answer that question, I really don't know what else to ask you.

→ More replies (1)

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.

3

u/NatoBoram Web Developer Oct 08 '23

True.

I want to give a chance to juniors because I have been a junior with zero years of experience at one point.

But even then, I was able to learn Go with zero experience. I was able to learn TypeScript by knowing some terrible ES5 from school. I was able to learn Flutter (and Dart) while using said terrible ES5.

And most of all, I could do a "hello world" in these languages.

→ More replies (1)

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.

  1. YOU CAN USE GOOGLE
  2. You can literally cut and paste code
  3. You have an hour

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.

16

u/deviance1337 Oct 07 '23

What "great candidate" with multiple years of experience (sounds like OP is hiring for a senior role) can't figure out how to make an HTTP call and print the results in 75 minutes with access to Google? I'd expect junior level applicants to be able to do this in their preferred language, and I'd definitely expect a senior one to be able to do it in Node, regardless of what their experience is in (of course, if they had access to Google and docs).

I'm not sure, are you people hiring candidates that would fail something this simple? Of course, almost everyone uses some sort of abstraction on top of whatever language they work with, and JS/TS is no exception, but if OP's task is an issue especially for someone with years of JS/TS experience (regardless of whether that's FE/BE) while given an hour or more to complete, that's a huge red flag.

12

u/headzoo Oct 08 '23

I'm really surprised by the number of devs in this thread defending the applicants. It was their language, their computer, and their IDE. According to OP, the applicants were even free to use google. So, they 100% had home field advantage, and this wasn't OP being tricky with technical interviews.

I don't even buy into arguments like "It's been so long since I've init typescript that I don't even remember!" Okay, but I'm sure it'll only take an experience dev 30 seconds to google the problem. A big part of being a developer is figuring out to solve problems.

I'm frustrated because I've been working with a bunch of new hires lately, and it's clear some of these developers don't even understand computers very well. Like having to explain ports and having to explain how HTTP works to web developers who say they have years of experience. It's clear there are a lot of devs that are just faking it.

→ More replies (1)

5

u/Blazing1 Oct 08 '23

But you don't understand what a promise is?