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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Abstractions should be deep not wide

4 点作者 dmarto大约 1 年前

1 comment

eternityforest大约 1 年前
I prefer just pretending the APIs are the same. Write abstractions that only support the common features, unless there&#x27;s some really really big performance boost from using them, with a few conditionals littered around.<p>The whole situation is a great example of why I don&#x27;t like pseudo standards and optional features, they create a need for tons of different code paths if you actually want to use all the different features. The open source world is full of fragmentation, since everyone loves modular open standards with tons of different implementations with different subsets of features.<p>In a perfect world, GitHub and GitLab and Git itself could get together and work on some common API standards for this stuff.
评论 #39914445 未加载