TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Steve Yegge's five essential phone-screen questions

48 点作者 vinutheraj超过 15 年前

7 条评论

RiderOfGiraffes超过 15 年前
An old favorite ...<p><a href="http://searchyc.com/five+phone+screen" rel="nofollow">http://searchyc.com/five+phone+screen</a><p><a href="http://news.ycombinator.com/item?id=94990" rel="nofollow">http://news.ycombinator.com/item?id=94990</a><p><a href="http://news.ycombinator.com/item?id=941925" rel="nofollow">http://news.ycombinator.com/item?id=941925</a><p>My wife just watched me do this search and trawl through the results, and then she asked me why. Why spend all that time cross-referencing something when the search terms are so vague you need to go through pages to find the duplicates?<p>The answer is that sometimes I find other items of interest. I don't read HN fanatically, and sometimes items come and go without my seeing them. Occasionally, more than occasionally, one turns up in a search like this, so it's worth doing for the side effect.
评论 #1006129 未加载
andrewcooke超过 15 年前
it's always difficult to comment on these kinds of posts because, obviously, they're pretty general, and the person doing the interview would need to use their own discretion, etc.<p>but having said that, one of the example questions seemed a bit odd to me. the idea was to find out whether a candidate knows how to use grep or similar. and the first case is fair enough - phone numbers with a given pattern. but a later example was reformatting code so that parentheses had spaces around them.<p>now anyone that tries reformatting code with a regular expression deserves everything they get. almost no programming languages have regular grammars, and even if they do, they are probably fiendishly complex (think of comments and strings). to make things worse, if you get something wrong you end up running the risks of introducing some kind of obscure bug in your code...<p>as i said, maybe i am being too picky. but that was the one example that jumped out as a red flag for the author's experience (which is odd, as i recognise the name, even though i don't really follow personalities on the web much).<p>edit: thinking some more, maybe i am being too picky. just last night i used sed to change some import statements in python code. but messing around with parens sounds like playing with fire to me. i vaguely remember, years ago, trying to enforce encoding standards with a regexp based rewriter for some obscure language that had no easily available parser. the memory is a blur, except for the pain...
评论 #1006265 未加载
wingo超过 15 年前
I feel good about all of these questions except the OO design one. I would rather declare types and write functions that operate on those types; granted it's the same, semantically, but if I focus on nouns personally I start coding stupid stuff.
评论 #1006271 未加载
评论 #1006436 未加载
j_baker超过 15 年前
It should be noted that Steve has said elsewhere that he can't use these questions anymore because everyone knows them. Thus, I wouldn't follow this template <i>too</i> closely. That said, it's a good way to get a general idea about how to ask these kinds of questions.
评论 #1006203 未加载
评论 #1006127 未加载
ynniv超过 15 年前
The sample code for reversing a string in Java reminded me of why I can't bring myself to use Java-the-language anymore. Clojure FTW!
middus超过 15 年前
Am I the only one who thinks that his "Example 2: Write function to compute Nth fibonacci number" is a terrible resource hog?<p>IMHO an iterative approach would be the way to go.
评论 #1006190 未加载
评论 #1006287 未加载
luckydude超过 15 年前
Huh. Not impressed. One of my guys, who went on to be one of the ZFS guys, came from 3par. And they had the 3x3 test:<p>Gives a shit Positive learning curve. Not an asshole.<p>Make your candidates pass that and you're doing fine.