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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Design of Everyday APIs (2022)

166 点作者 resiros大约 1 年前

5 条评论

chiefalchemist大约 1 年前
Not to jump off topic, but my takeaway from Norman&#x27;s &quot;The Design of Everyday Things&quot; was that design is of process of compromises. Could be time, could be budget, could be other factors within the company, etc. But there are almost always unseen forces the public isn&#x27;t aware of that impacts the design they do see.<p>I would presume APIs are no different. There is no objective and absolute perfect API. Instead there are always tradeoffs, always compromises.
评论 #40111828 未加载
评论 #40111267 未加载
评论 #40107656 未加载
评论 #40111576 未加载
评论 #40131481 未加载
crabbone大约 1 年前
To nitpick: __repr__() is meant to produce a string s.t. if read from (by the Python parser) and subsequently evaluated, will create an object as similar as possible to &quot;self&quot;.<p>OP kind of messed that part up.<p>On other counts: I don&#x27;t know... a lot of this seems true, but also very simple, to the point that I don&#x27;t know if it needs a special mention. In other words, maybe, to get a better insight into how to make better API one needs to keep looking for &quot;deeper&quot; answers.<p>Also, a lot of practices and techniques this presentation argues against have their merits (eg. having explicit close() method is right out of &quot;Zen of Python&quot; which tells to use explicit over implicit).<p>Perhaps, a better analysis would try to defend the given approach <i>in the light of the justification for the opposite</i>, or, at least, try to assign weights to different approaches (eg. &quot;if explicit code makes user code more prone to error, then implicit should be preferred&quot;).
esafak大约 1 年前
recording: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0qYDmm1O7hc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0qYDmm1O7hc</a>
spenserhale大约 1 年前
link to YouTube video with better audio: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bVoM2WLt6Hk" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bVoM2WLt6Hk</a>
bloopernova大约 1 年前
Slightly API related rant:<p>I just wanted to get my free&#x2F;busy info from office 365. I wanted to control a &quot;do not disturb&quot; light without using a phone app. There doesn&#x27;t seem to be any straightforward method to &quot;generate a token, save it in Bruno or Postman etc, then POST to a specific endpoint&quot;. The docs I saw talk about registering an app, and all sorts of heavyweight stuff in Azure.<p>Why can&#x27;t I just call some URL, or add a webhook somewhere and be done with it?
评论 #40110161 未加载
评论 #40110868 未加载