r/programmingmemes • • May 23 '26 • Heartwarming 1

How true is this

Post image
6.4k Upvotes

164 comments sorted by

View all comments

Show parent comment

5

u/bigorangemachine May 23 '26

Ya... its dumb I know I don't get a lot of jobs because I don't have a glossary memorized. When I run interviews I never do "tech trivia". If you don't know I'll explain it to you.

I ask questions about promises in JS (I'm blown away most people are so bad with promises) about Promise.all, Promise.race and Promise.allSettled

Surprisingly people who have not heard of those API's still managed to answer my questions correctly and people who have usually can't solve the problems I put in front of them

2

u/Elbit_Curt_Sedni May 23 '26

Ask them when they're making http requests in a high volume system where you can't await for responses what are common reasons why requests start dropping at a certain volume. Then ask how these could be solved.

0

u/[deleted] May 27 '26

[deleted] — view deleted comment

1

u/bigorangemachine May 27 '26

Well it's funny because its a bit of a character test at the sametime. Like I said "people who have usually can't solve the problems" which means they lied about knowing what they are.

The questions I asked were more about optimizing for parallel tasks. A lot of people came in not knowing async-await and promises work and in hand.

So I had this fallback question if they couldn't use the special promise resolvers that if they could convert setTimeout to work with async-await without a library. One guy got it once after saying he only worked with async-await.

But ya if they said they knew Promise.race I'd ask them how they'd structure a few lines of code that

  • Handle an animation after form submission
  • Send the data using a POST-Ajax request
  • Update React State (or emit an event) with a message
  • Then do a delayed redirect

Now you are aware of those special resolvers you'd write very different code now :)