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.

The Six Most Common Species Of Code

25 pointsby prateekjover 11 years ago

6 comments

mtdewcmuover 11 years ago
I like the large-company version with baroque OO&#x2F;Java appendages hanging off of everything. Those flourishes make it feel safer and more reassuring, I guess.<p>The math PhD one seemed possibly unfair. It looked more like something that would come from a CS PhD who did his thesis in PL.<p>It&#x27;s hard to judge what the right solution would look like. You could go many careers without ever having a real reason to write that function outside of an interview. Fibonacci numbers occasionally come about as a by-product of doing something interesting and useful; in cases where they would be interesting in and of themselves, you would probably be using a library or language, like Mathematica, that would have that built-in.
评论 #6705168 未加载
xuxover 11 years ago
&quot;&#x2F;&#x2F;good enough for the demo, lol&quot;<p>Killed it. This is hilarious.
评论 #6705153 未加载
jfasiover 11 years ago
Don&#x27;t forget the tests of each. The startup&#x27;s tests are all commented out because they failed at some point or another, the large company&#x27;s tests are five times as long as the actual code they test, and all other categories consist of the stubs provided by the IDE.
Bugeover 11 years ago
The math PH.D takes a double parameter for b in exponentiate, but the way it functions actually only works for ints.
oakwhizover 11 years ago
The Math PhD one reminds me of the sorts of symbolic algebra systems that you find in Haskell and Scala.
vezzy-fnordover 11 years ago
I feel sorry for that Math Ph.D. writing in Java.
评论 #6704973 未加载