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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Stop building REST APIs for your Next.js apps, use tRPC instead

2 点作者 jack335大约 3 年前

1 comment

john_the_writer大约 3 年前
I sort of wonder what happens when you use that API on a different language. Like if you spend the time building trpc, and then decide to allow a Droid to use your api do you have to create a new api?<p>What if you have an untyped language interact with it?<p>Like what if you build this API out and then add&#x2F;build an admin site in rails, but it uses the API?<p>Now you may say, we&#x27;re never going to need to worry about that. If javascript has taught me anything it&#x27;s that Javascript practices change really fast. I still have maintain coffee script, jquery and backbone from time to time. :)<p>I don&#x27;t want to have to maintain two different versions of the API.. and the one thing I can say about REST.. it&#x27;s worked for a very long time.
评论 #30940527 未加载