TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Interviewing a front-end developer

91 pointsby lesterbuckover 11 years ago

24 comments

RyanZAGover 11 years ago
I don't think this kind of questioning is useful. Does it really matter if the dev knows all the strange intricacies of javascript, or does it matter if they can actually put together a well engineered application? I can easily see a more big-picture oriented dev who only uses the bare minimum javascript features fail this test yet create very well engineered code. I can also easily see a dev who likes to study manuals doing well on this test and then making code so difficult to understand he can't even fix it himself.
评论 #7149693 未加载
评论 #7149663 未加载
评论 #7149691 未加载
评论 #7149678 未加载
评论 #7149677 未加载
评论 #7149750 未加载
评论 #7149657 未加载
scarecrowbobover 11 years ago
This is interesting.<p>These are things that I understand when pointed out to me, but off the top of my head, with no google, I&#x27;d have to think for a second. They are things that I implement most every day. For instance, the position fixed&#x2F;absolute thing... I work with things like that pretty much every day, but usually it takes me 10 minutes of fiddling, or 50 seconds of googling if I&#x27;ve had to do it before, unless I get lucky and it just reveals itself as obvious.<p>Oh well, I suppose that&#x27;s why I live in the sticks and freelance instead of working for Twitter or Stripe :D I mean, this stuff seems esoteric to me, even though I work with it every day... it&#x27;s neat to know that there are a lot of folks who have this stuff wired well enough to do it with no reference material.
评论 #7149556 未加载
评论 #7149824 未加载
taudeover 11 years ago
The problem with interview questions like this is that it looks for code-monkeys. I&#x27;d maybe have questions like this if I were hiring an expert consultant to crank out some short-term JavaScript for me, but for filling a slot on the team....probably not....as there&#x27;s really about 10 other things I&#x27;m more interested in (assuming they have the necessary technical chops, which I feel these questions don&#x27;t really answer).<p>&quot;At this point, if the candidate is doing really well, I&#x27;ll ask them to implement currying arguments.&quot;<p>Why? If they&#x27;ve already proven enough tech knowledge to do the job, why continue to ask more questions that might&#x2F;might not use to server your hiring decision? (It sounds like you&#x27;d continue a different direction if they couldn&#x27;t implement with currying).<p>EDIT: I&#x27;d probably not be really hiring a short-term consultant like this either, though, now that I think about it.
bulatbover 11 years ago
This interview could go much faster if it didn&#x27;t use a laptop <i>or</i> a whiteboard. A strong candidate should fire off responses to those questions just as fast as you can ask them.<p>Spacify: &quot;Split on empty, join with spaces.&quot; Done.<p>String.spacify: &quot;Attach that function to String.prototype and call the split&#x2F;join on `this`.&quot; Done.<p>And so on. It does serve as a way to test if they can actually <i>write</i> code, but my guess is that there&#x27;s not that big a difference between talking through the code you&#x27;d write and actually writing it.<p>I&#x27;d be very comfortable with going through this verbally, but I&#x27;d be horrified to get an interview like this where they expect me to type code and talk to them while doing it. I&#x27;d honestly much rather have a whiteboard than a laptop—at least I&#x27;m used to writing with a pen while someone judges me. The laptop would just take away that comfort and make sure my brain turns off.<p>Am I alone in that?
评论 #7149737 未加载
评论 #7149695 未加载
评论 #7150334 未加载
yeukhonover 11 years ago
<i>Ideally the candidate has a really full GitHub &#x27;resume&#x27;, and we can just go back through their open source projects together. </i><p>Note not everyone is a Github user. Some brilliant Python projects that I use are still hosting on Bitbucket and&#x2F;or Google code (and of course some on sourcegeforge) so we should be careful with that. I will assume OP is making an alias rather than excluding other service providers, though it is important to keep that in mind (in particular, if you are implementing a form with a field &quot;github profile&quot;, please provide either a drop-down menu or a general field with multiple textboxes)<p>Combining the rest, I can consider this almost a Javascript tutorial for experienced programmer. Bravo on the neat, concise writing.
评论 #7149999 未加载
评论 #7149996 未加载
jaredsohnover 11 years ago
I like how the article suggests letting applicants bring their own laptops (and only using the interviewer&#x27;s laptop as a fallback.) Many people don&#x27;t realize that is pretty hard to work on someone else&#x27;s computer, especially in a stressful situation. (Different installed software, software configuration, keyboard, etc.)
评论 #7149823 未加载
评论 #7151190 未加载
评论 #7151775 未加载
revelationover 11 years ago
A lot of that stuff sounds like &quot;my favorite list of code smells and anti-patterns&quot;. Yes, it&#x27;s cool you know these things about JavaScript, and now please never use them.
jwarrenover 11 years ago
It&#x27;s interesting that the new definition of a front-end developer is increasingly JS first, HTML&#x2F;CSS second.
评论 #7149753 未加载
评论 #7149892 未加载
评论 #7149802 未加载
club7gover 11 years ago
I don&#x27;t mean to be pedantic; well actually I do. The spacify solution is incorrect as the sample suggests that a blank space is not replaced with 2 blank spaces.<p>A correct solution would be:<p>function spacify(input) { return input.replace(&#x2F;([^ ])&#x2F;g, &#x27;$1 &#x27;); }
评论 #7149918 未加载
评论 #7150422 未加载
wooptooover 11 years ago
The greatest thing about this article is actually the link at the bottom: <a href="http://bonsaiden.github.io/JavaScript-Garden/" rel="nofollow">http:&#x2F;&#x2F;bonsaiden.github.io&#x2F;JavaScript-Garden&#x2F;</a> Great resource.
CmonDevover 11 years ago
Misleading title: it&#x27;s actually just about interviewing JavaScript developers.
评论 #7149714 未加载
hisingover 11 years ago
My take on questions like these are that they most of the time focus on putting the focus on some niched skillset of the interviewer and has very little to do with real life problem solving. If a company hire based on how well a person scores on some niched test, I guess they will end up with a lot of internal nitpicking among the developer on who solves some obscure array sorting algorithm the smartest way instead of focusing on getting shit out the door.
评论 #7150066 未加载
flipstewartover 11 years ago
Seems strange that the interviewer would be so pedantic while showcasing their own lack of understanding... for example:<p>&quot;How they choose to center content inside the overlay is also revealing. Some of the candidates might choose to use CSS and absolute positioning, which is possible if the content is a fixed width and height. Otherwise may choose to use JavaScript for positioning.&quot;<p>First of all, JavaScript... just... no. Stop.<p>Secondly, hey, you don&#x27;t need a fixed width or height, you just use:<p><pre><code> position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); </code></pre> I would really challenge the writer and anyone else interviewing for any position to consider that maybe they don&#x27;t know everything.
martin-adamsover 11 years ago
What&#x27;s missing in the article for me is the ratio of candidates who scored well. I&#x27;ve learnt that you can have some excellent developers who get excluded which half a day of training when they start can bring them up to speed.<p>In my experience, interviewing is a costly process and being too particular can simply mean you don&#x27;t find the right candidate. Companies which have a brand reputation that attracts talent can get away with this, but smaller more unknown companies sadly can&#x27;t.
michaelbuddyover 11 years ago
I&#x27;m curious to assess if people separate front end designer &#x2F; dev with front end engineer.<p>I just don&#x27;t know too many people with a rich design &#x2F; artwork talent as well as heavy javascript programmer mind. Maybe I just don&#x27;t know enough people.<p>I suppose when you have a massive web app, you call your people front end enginers because there are twenty of them and they don&#x27;t have to create an entire UI, they have been able to focus on specific issues and manipulating the DOM.
wturnerover 11 years ago
I would have got number 2 wrong. I would have assumed that adding to the prototype of String is hands down completely unacceptable bad practice.
评论 #7150004 未加载
wkdownover 11 years ago
It seems as if the &quot;github resume&quot; is becoming more commonplace. I am married with a 2yo son. I currently do not have time to contribute to open source projects, and my company does not use git for versioning its codebase. Will having an empty github account effect me adversely these days?
taudeover 11 years ago
Note: these questions aren&#x27;t related to the article, but at sourcing.io who&#x27;s blog is writing content.<p>I&#x27;m trying to figure out how sourcing.io gets it&#x27;s developers. As a techie, there was no obvious way for me to put up a profile or anything. There&#x27;s an explanation that it uses the companies team&#x27;s social networks, so maybe the employees have to share all their specific account profiles with the company (see below on more on this).<p>How does this differ from something like TalentBin that scrapes together peoples various social profiles and aggregates them into a single &quot;report&#x2F;summary&quot;?<p>Also, do employees really give up their social graph to their employer? I keep mine pretty tightly locked away. I&#x27;ve built it, maintained it. I might or might not be with the company in six months (They might lay me off. I might get a better job.) Occasionally, I&#x27;ve dug into mine to find someone when one of those emails is sent around mentioning a hiring bonus for a certain position. Or when I need to hire someone directly. But I still don&#x27;t openly share mine.
feulixover 11 years ago
Lots of these comments are the reason I read HN. I love an educated discussion, especially as a response to an article with breathes pretentions like this one.
dave_sidover 11 years ago
&quot;proxies its string argument to console.log()&quot; - Think it&#x27;s delegation rather than proxy. A proxy would have the same interface as the target.
评论 #7151268 未加载
jiggy2011over 11 years ago
You could probably skip most of these questions by asking &quot;Did you read and understand &#x27;Javascript the good parts&#x27;?&quot;
Thizover 11 years ago
The most important skill in a programmer is his search ability.<p>I don&#x27;t know anything, but I know where everything is.<p>And I know how to search for it.
strictfpover 11 years ago
&gt;&gt; My interviews are very practical<p>Cue list of the most obscure js tricks and gotchas the interviewer knows.<p>Nice one.
douglee650over 11 years ago
in light of the spirit of your post, i would like to point out:<p>- segway: a personal human transporter - segueway: a transition from one topic to another