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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

An Eye Tracking Study on CamelCase and Snake_case [pdf]

2 点作者 neya超过 6 年前

2 条评论

hollasch超过 6 年前
I find the experimental setup disappointing. As set up, each identifier is surrounded by a fluffy cloud outline, in complete isolation from any surrounding text, testing only the ability to distinguish between identifiers that differ in one or two letters only in the middle (versus the beginning or end, as would more frequently be the case). In practice, long identifiers with such subtle differences are a problem in any naming scheme.<p>What they did not test is the speed of visual chunking of lexical elements, something that is (in my guess) more important than the ability to distinguish between mostly-identical strings. Underscores have fallen out of favor because of this more important visual confusion, where identifier beginnings and endings are less apparent.<p>Of course, this study suggests that our IDEs should perhaps surround variables with fluffy cloud outlines to aid with underscore variables. :)
java-man超过 6 年前
excellent study. we need a similar study for K&amp;R braces vs straight ones.<p>I bet straight braces would be faster to process.