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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is it possible to write frontend without using JS Frameworks

7 点作者 mraza007超过 3 年前
Hello HN,<p>I’m trying build a small web application using flask as a backend. I would love to know what are your favorite frameworks which will let you write frotent with as little as possible javascript

7 条评论

vladstudio超过 3 年前
I was recently interested in similar topic. Here are 3 solutions I found:<p>* <a href="https:&#x2F;&#x2F;htmx.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;</a><p>* <a href="https:&#x2F;&#x2F;unpoly.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;unpoly.com&#x2F;</a><p>* <a href="https:&#x2F;&#x2F;hotwired.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hotwired.dev&#x2F;</a><p>My personal preference is Unpoly (the idea of &quot;layers&quot; is awesome). But the best explanation of concept as a whole (HATEOAS, keeping app state on server using partial page updates, etc) is at HTMX homepage, and in these essays:<p>* <a href="https:&#x2F;&#x2F;htmx.org&#x2F;essays&#x2F;hateoas&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;essays&#x2F;hateoas&#x2F;</a><p>* <a href="https:&#x2F;&#x2F;htmx.org&#x2F;essays&#x2F;locality-of-behaviour&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;essays&#x2F;locality-of-behaviour&#x2F;</a>
navaneethpk超过 3 年前
Using low-code tools might be a great idea to build frontends without coding at all. If you are using open-source frameworks such as <a href="https:&#x2F;&#x2F;github.com&#x2F;ToolJet&#x2F;ToolJet" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ToolJet&#x2F;ToolJet</a> , you can save some significant time building your application.
GianFabien超过 3 年前
I find that frameworks require varying amounts of learning curve and in my experience that is in addition to basic JS+HTML+CSS knowledge. I prefer to invest my learning bandwidth on fundamentals. So the simple webapps that I write are based on ES modules that I have refined over time. In the early days, I had to read up a great deal. Now, with a bit of reuse and polish, I can build webapps fast enough for my own needs. I also find WebSockets simpler for connecting with custom backends than fetch or XMLHttpRequest.
timinou超过 3 年前
I use Elm for my project. Once you accept thinking the way it wants you to, it&#x27;s a delight to develop front-end with it.<p>Side advantage, Elm-UI frees you from CSS: <a href="https:&#x2F;&#x2F;package.elm-lang.org&#x2F;packages&#x2F;mdgriffith&#x2F;elm-ui&#x2F;latest&#x2F;" rel="nofollow">https:&#x2F;&#x2F;package.elm-lang.org&#x2F;packages&#x2F;mdgriffith&#x2F;elm-ui&#x2F;late...</a> it&#x27;s like Tailwind but deeply intertwined with the language.<p><a href="https:&#x2F;&#x2F;elm-lang.org" rel="nofollow">https:&#x2F;&#x2F;elm-lang.org</a>
phendrenad2超过 3 年前
Yes, there are frameworks like Vaadin that let you write a desktop-like app. Your app will send a small bit of precompiled JS to the client, which will handle updating the page when the backend tells it to.<p>There are also many transpilers that compile other languages to JS. ScalaJS comes to mind, but almost every language has something like this. Thanks to Google&#x27;s attempt to push Dart, there&#x27;s even a way to get in-browser debugging for most transpiled langauges.
discordance超过 3 年前
Give HTMx a look: <a href="https:&#x2F;&#x2F;htmx.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;htmx.org&#x2F;</a>
austincheney超过 3 年前
I wrote a full Windows like GUI as close as possible to the standards for best case performance.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;prettydiff&#x2F;share-file-systems" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prettydiff&#x2F;share-file-systems</a>