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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Code Golf at Google

86 点作者 antichaos将近 10 年前

9 条评论

nate_martin将近 10 年前
Fun fact: there has been a problem with Googlers calculating hash functions that pass all the test cases for certain questions.
评论 #9914008 未加载
spydum将近 10 年前
i think the sad pattern I see in a lot of these code golf implementations is the solution score is based on Lines of Code, which we already agree is a POOR representation of either complexity or simplicity.<p>I think it would be far more interesting to measure number of instructions to complete the objective. Though I suspect the folks familiar with assembly would run circles, perhaps you could segment by solution language?
评论 #9913869 未加载
评论 #9913694 未加载
评论 #9913658 未加载
评论 #9914477 未加载
评论 #9913703 未加载
评论 #9913624 未加载
webo将近 10 年前
Hah, I remember spending hours on this during work hours when I was interning last year. I used to come up with very clever and short solutions only then to find out I wasn&#x27;t even top 10 :(
karavelov将近 10 年前
Perl is a way more fun for golfing but it&#x27;s missing from the supported languages
acomjean将近 10 年前
I had to do a code test for a job (sigh). But it actually was kind of fun. The website takes your code and checks correctness and efficiencies.<p>The company posts &quot;challenges&quot; every month. But they also have lessons which contain some interesting code challenges. The only problems is 1) they&#x27;re timed 2) sometimes the descriptions are kinda mathy which may put people off.<p><a href="https:&#x2F;&#x2F;codility.com&#x2F;programmers&#x2F;lessons&#x2F;" rel="nofollow">https:&#x2F;&#x2F;codility.com&#x2F;programmers&#x2F;lessons&#x2F;</a>
Omnipresent将近 10 年前
Can a googler put the questions in public for others to see?
Buge将近 10 年前
I&#x27;m trying to run the c++ version, but it won&#x27;t compile because the loop variables in the range for loops do not have declarations.
评论 #9915851 未加载
rory096将近 10 年前
&gt;<a href="http:&#x2F;&#x2F;go&#x2F;codegolf" rel="nofollow">http:&#x2F;&#x2F;go&#x2F;codegolf</a><p>How does this work, some sort of TLD magic? (That shouldn&#x27;t be possible, right?) Is it just routed within Google&#x27;s internal network?
评论 #9913634 未加载
评论 #9913903 未加载
评论 #9913593 未加载
评论 #9913573 未加载
评论 #9913531 未加载
评论 #9913601 未加载
评论 #9913557 未加载
评论 #9914296 未加载
planetjones将近 10 年前
I watched the wolf of wall street recently. I see some of the solutions to these code golf exercises as similar to the bankers who beat their chests and celebrate their masculinity in selling penny stocks to gullible investors.These code golf exercises seem like the software developer equivalent: &quot;look at how brilliant and superior I am that I can obfusicate code into something no-one understands in only 2 lines&quot;.<p>My concern here is that this Code Golf mentality infects the normal day-to-day coding at Google. Just because an implementation can spawn a few lines it doesn&#x27;t make it a good implementation. What about clean code, maintainability, automated testing, self documenting code...<p>I pity the codebase I would have to maintain from one of these code golfers.
评论 #9914539 未加载
评论 #9914515 未加载