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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What can you learn about a person by reading their code?

8 点作者 ndjshe3838超过 1 年前

8 条评论

jamager超过 1 年前
Not much about the person, but maybe something about the environment and circumstances.<p>There is a world of difference between the best and worst code I wrote that has nothing to do with my personality or expertise.
jruohonen超过 1 年前
A lot. A classical research question, as well as a practice I suppose, is to try to deduce the author of a particular program, whether in source or in binary. Cf.:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39135165">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39135165</a>
jjgreen超过 1 年前
The neater the code, the scruffier the coder.
_benj超过 1 年前
In a team I was a part of some years ago I had the distinct feeling of being able to tell which one of my teammates wrote what code.<p>Something in the favorite methods to solve problems, variable names and so on (it was in Python where you have 100 ways to solve 1 thing!)<p>I think something very distinct and easy to pick is how they think, at least in the board term of OOP vs functional.<p>I’ve seen Go code being forced to do OOP and functional JS… it’s fascinating!
sloaken超过 1 年前
If they ever had to inherit someone elses code.<p>Code with detailed comments and include some whys, really care, and have had the nightmare of others leaving.<p>Although I knew one person who was notorious for just throwing their predecessors code out and re writing it. It is tough to interview to exclude that type.
aristofun超过 1 年前
Most important thing - if he likes to engineer (like most of developers regardless of experience) or solving the problem (rare kind at any seniority level).
interbased超过 1 年前
How they approach problems in the language the code is written. Variable names are also an indicator of the level of effort they put in from my experience.
kosasbest超过 1 年前
You can determine if they&#x27;re sloppy and just want the project rushed out the door. Kludgy code is actually fun to read.