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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

What it's like to run Htmx in Production

38 点作者 bnewton大约 1 年前

6 条评论

everybodyknows大约 1 年前
Interesting claim here about engineering org dysfunction:<p>&gt; FE code has gotten so complex that many orgs now have specialized positions - FE and BE. In practice this means that it&#x27;s very hard for any one developer to get a fullstack change out.<p>&gt; Short-term this means that all changes incur extra cost due to context switching and collaboration overhead between FE &#x2F; BE dev<p>&gt; Long-term this means a general architectural bias against doing things fullstack. Both sides will go to great lengths to not have to do things fullstack which often leads to suboptimal architectures throughout. This is how we got heavyweight client state management (Redux), interesting RPC protocols (GraphQL), and the push towards JS-only stacks (NextJS, Nuxt, SvelteKit, etc) - all methods to try and lower the pain of FE &lt;&gt; BE communication.
评论 #39977674 未加载
nesarkvechnep大约 1 年前
HTMX is closer to REST than your so-called JSON REST API.
评论 #39972604 未加载
lelag大约 1 年前
I would say that it misses one of the main drawback of using Htmx: it does not force you to create a proper API.<p>When you create a standard single page application, you generally start by building a JSON API on the server side, and a client application that can consumme that API.<p>Htmx server code is different as it just returns HTML code to be inserted back in the page. So while, writing an app with Htmx is very easy for that very reason, you will likely not build a proper public API while you build your app and the day that you realise you need one, you have to write it from scratch.<p>If you know you will need to provide a good public API, building it from the get go and a React&#x2F;Angular app on top might still be worth it.<p>(Just to be clear, I think Htmx is great still.)
评论 #39971553 未加载
评论 #39971205 未加载
评论 #39972602 未加载
评论 #39971031 未加载
000ooo000大约 1 年前
Concedes that there&#x27;s extra network requests and then just completely handwaved it away.
jdmoreira大约 1 年前
I&#x27;m not a web dev so my knowledge is limited here.<p>What is the canonical way to do &quot;components&quot; with this htmx workflow though? How do you create an abstraction for a button, or a card, etc... Do you just copy&#x2F;paste the html all the time?<p>Is it just BE templates?
评论 #39970810 未加载
tedunangst大约 1 年前
I&#x27;d really like to see some production web sites that use htmx.
评论 #39972598 未加载