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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Htmx: Simplicity in an Age of Complicated Solutions

14 点作者 jjude11 个月前

3 条评论

iamsaitam11 个月前
&quot;First of all, JavaScript. JavaScript is not a great language for anything except inside the browser. It never was and it likely never will be, unless it gets a decent standard library and ditches its type coercion and many other broken language features. No amount of developer discipline and linting can truly mitigate this. Unfortunately, we’re kind of stuck with JavaScript in the browser, but let’s not use it anywhere else if we can help it.&quot;<p>He should have started with this paragraph.. because every other language out there doesn&#x27;t have flaws.<p>Also, where is the error handling in the htmx example? The React snippet handled that. It&#x27;s very easy to make contrived happy path examples. What about input sanitation?<p>I think the author isn&#x27;t objective at all and makes a poor case for htmx.
mediumsmart11 个月前
<i>Fortunately, the vast majority of applications are just text and images and do not suffer from these limitations. For that vast majority, htmx is likely a good solution</i><p>There is a lot to unpack here so let’s go step by step. To display text and images using pure vanilla html in an app is doable, no doubt, but let’s be honest, a little simplistic when we want the real thing - <i>Simplicity</i><p>But we are in luck! Not only are text and images the vast majority of content on the internet, they also come without the limitations of the other things on the internet.<p>And this is where htmx, which hits that <i>simplicity sweet spot</i> we are aiming for comes into play.<p>No matter what language you want to tack on, it has your back and is likely the premier <i>as good as it gets</i> solution for this vast majority.<p>And guess what, people will be able to search for the text and images on your site so you just have to pop up a little “what did you find on my site?” Form field along the way to start a positive feedback loop, build a community and ultimately head for IPO of course.
cztomsik11 个月前
I don&#x27;t like where this is going. There&#x27;s nothing wrong with htmx except that aggressive marketing. SPA frameworks are overused but we got there because React was pushed everywhere exactly like htmx is being pushed right now.<p>SPAs are useful, not for everything and certainly not for most sites, but bashing SPAs without further thought will only lead back to dark ages of smart backends, postbacks, and huge session states with impossible to scale infrastructure.<p>Just my 2 cents.
评论 #40609767 未加载