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 Parable of the Perfect Connection

50 pointsby yminskyover 10 years ago

3 comments

jamesdavidsonover 10 years ago
Over the last few years I&#x27;ve noticed that writing code is pretty easy but robustness and graceful failure are what really set the best programmers&#x27; work apart.<p>To my fellow novice programmers, I recommend reading Joel Spolsky&#x27;s great post called &#x27;leaky abstractions&#x27;, written in 2002.
daniel-levinover 10 years ago
I suppose the overarching principle here is communication between programmers. If I was the programmer building some system depending on an API with some opaque behaviour I&#x27;d get really frustrated: &quot;Why does the connect method just not work sometimes and block??!!?&quot;.<p>It&#x27;s just considerate to other human beings to let them know (using a suitable means) that an API call has failed (for whatever reason) and quickly. Opaque loop-and-retry-until-we-succeed makes problem diagnosis stupidly difficult. Anything that makes the audience programmer&#x27;s feedback cycle slower and impedes problem diagnosis is both counter-productive and irritating. Simply communicating &quot;I CAN FAIL AND HERE IS WHY...&quot; is a Really Good Thing.<p>In my experience (read this with an &#x27;anecdote&#x27; filter turned on) teams that communicate everything to the point of superfluity generally work better. This extends to your code, particularly APIs.
emiliobumacharover 10 years ago
Great post!<p>One mistake though: TCP sits on top of IP, not UDP.
评论 #8218839 未加载