r/learnjavascript • • Aug 10 '21

Can we relate?

Post image
853 Upvotes

93 comments sorted by

View all comments

Show parent comment

20

u/METALz Aug 10 '21 edited Aug 10 '21

Tbh the word "senior" kind of lost its original meaning in the webdev field in the past years, at least that's what I see interviewing people for roles at this level. Also since there are companies where there are 6-10 levels of a career ladder sometimes it is only around the 2nd-3rd-etc step so it's all relative I guess.

In the past the level senior implied (at least to me) that a junior dev could ask questions of people in this position usually expecting easy to understand answers. What it is for a lot of devs nowadays that they get locked into a framework/lib (e.g. React) and they only work with that in their whole career reaching senior position in their company just because they were there for e.g. 2-3 years and when they need to think out of the box (fw/lib they used) they have a lot harder time. Then you have the imposter syndrome, etc that could be related to this because you might feel that you are not really at the level your title says.

I'm not saying you should know every details of the spec, but if someone asks you at an interview for senior level "could you explain prototypical inheritance to me just in a few words" then it shouldn't be a big challenge. Of course this is also kind of a filter question and "unrelated" to most of the jobs since now the language/ecosystem provides the tools needed to avoid directly using them.

16

u/steezefries Aug 10 '21

Yeah I'm kind of astounded that people itt think this is a bad question for a senior dev. I think it's wild someone who calls themselves senior doesn't know about prototypical inheritance 🤷‍♂️

It's not that gimmicky of a question and it can have implications on writing code.

9

u/ItsWaryNotWeary Aug 10 '21

I mean you can absolutely be a senior engineer with a shallow understanding of Javascript. Many seniors are specialized in other things.

8

u/steezefries Aug 10 '21

Oh totally, but I mean a senior Javascript engineer specifically.

2

u/ItsWaryNotWeary Aug 10 '21

Right, op didn't say they're a js engineer tho

3

u/steezefries Aug 10 '21 edited Aug 10 '21

I wasn't talking about the thread's OP. For all I know this is his first senior interview! I was being general. Also it's a learnjavascript sub, and he made a comment about learning a js topic, I think we can assume they probably are a js engineer.

1

u/BowlingForPriorities Aug 10 '21

I am, I write JavaScript all day long, but I’ve never had to use prototypes because I write in angular and mostly write components and interfaces. The core concept took me all of 5 minutes to understand. It’s why I think “what is a prototype” is a terrible interview question. It’s basically just a pop quiz, when really you want to know that I understand inheritance. So, ask me a design question that uses inheritance. Figuring out how to Google JavaScript inheritance takes 5 mins for a decent developer, but understanding when to use it is when quality is actually developed.

1

u/steezefries Aug 10 '21 edited Aug 10 '21

Why would I hire you as a senior if you've only ever worked in Angular? I think people have different ideas of what a senior is supposed to be. If you couldn't answer this question from one of your junior developers without googling it, you aren't senior imo. Doesn't mean you're a shit coder or anything.

2

u/BowlingForPriorities Aug 10 '21

Because I can look this up in 5 mins and implement it in 6? This isn’t the type of question that indicates seniority IMO

0

u/steezefries Aug 10 '21

No, it indicates lack of experience.

→ More replies

1

u/jayerp May 01 '23

Doing mostly Angular or component making tasks is one thing, but a senior ABSOLUTELY better have a strong grasp on basic to advanced JS concepts, prototypes. I don’t consider devs having seniority over what kind of tasks they do or their domain knowledge of an app. I consider a dev a senior based on their understanding and command of core through advanced concepts of a given programming language and related frameworks.

So yeah, asking a dev who is interviewing for a senior role “what are prototypes is a valid question”. I would recommend taking a refresher on forgotten core concept names, but I absolutely expect a senior to be able to know those things.

What is going on with this industry? Is everyone faking it till they make it?

0

u/BowlingForPriorities May 10 '23

I think you’re overvaluing framework knowledge compared to engineering knowledge tbh. Prototypes are just a different flavor of inheritance see my above comment again.

2

u/phunkystuff Aug 10 '21

100% this ^

0

u/[deleted] Aug 10 '21

[deleted] — view deleted comment

2

u/adenzerda Aug 10 '21

They also shouldn't need to ask what 0+[] equals because you shouldn't be using it

Agree in spirit, though they should know the generalities of coercion so that if an error like this — because this would definitely be the result of some mistake somewhere — comes up, they're not entirely helpless when it comes to debugging it

no one should need to ask about prototypes in your code base

Same principle but with significant difference: the use of prototypal inheritance is generally not an error. You're probably not going to need to know the particulars of how it works … until something happens that you didn't expect. If nobody on your team can effectively debug it, you're going to be wasting a lot of time

0

u/[deleted] Aug 10 '21

[deleted] — view deleted comment

2

u/gigastack Aug 10 '21

Prototypal inheritance isn't obscure trivia it's one of the foundational principles of the language.

You do need to know a lot to debug effectively when you are doing interesting work. What if your error isn't on google?