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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: There has to be a better way to write web pages, right?

3 点作者 awestbro超过 4 年前
I&#x27;ve been writing front-end code for about 9 years now. Everything from custom JS frameworks with XML&#x2F;XSLT bindings, to React, to plain HTML and a bit of jQuery and everything in between.<p>The whole time I&#x27;ve had the lingering thought, &quot;There has to be a better of doing this than popping open my text editor and manually writing all these tags&quot;.<p>Was it the &quot;field-group&quot; tag I needed to wrap these in? Why won&#x27;t this damn thing align vertically? What was the structure of that select element that&#x27;s not actually a &lt;select&gt;? Why did I think this was a good career choice again? Even with years of experience, little things like these eat up so much of my time. I&#x27;m jealous of tools like Elementor that work well in Wordpress but not for custom frameworks that so many of us work in from day to day.<p>Pretty much all the ui builder tools I&#x27;ve seen are scoped to a specific framework, or aren&#x27;t programmable&#x2F; extensible enough for me to drag and drop custom elements onto pages and save me dev time.<p>Has anyone else had the same thought? Are you using tools like this today and I&#x27;m just missing something?

2 条评论

qohen超过 4 年前
<i>&quot;There has to be a better of doing this than popping open my text editor and manually writing all these tags&quot;.</i><p>This isn&#x27;t a silver bullet, but perhaps the open-source tool, Emmet [0], can help remove some&#x2F;much of the drudgery. There&#x27;s a little demo on its docs page[1] and here&#x27;s how it&#x27;s described there:<p><i>Emmet takes the snippets idea to a whole new level: you can type CSS-like expressions that can be dynamically parsed, and produce output depending on what you type in the abbreviation. Emmet is developed and optimised for web-developers whose workflow depends on HTML&#x2F;XML and CSS, but can be used with programming languages too.</i><p>There are also a bunch of YouTube videos about it.[2]<p>(It even has a Wikipedia page[3]).<p>[0] <a href="https:&#x2F;&#x2F;emmet.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;emmet.io&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;docs.emmet.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.emmet.io&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;www.google.com&#x2F;search?q=site%3Ayoutube.com+emmet&amp;ie=utf-8&amp;oe=utf-8" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;search?q=site%3Ayoutube.com+emmet&amp;ie=...</a><p>[3] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Emmet_(software)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Emmet_(software)</a>
评论 #25150227 未加载
bird_monster超过 4 年前
I&#x27;ve had similar thoughts. It&#x27;s funny to me that it is possible to make a Diablo 3 clone in Unreal Engine without a single line of code, and yet simple two dimensional pages featuring largely consistent widgets (dropdowns, input fields, text boxes, scrolling, etc) is still such an unnecessarily massive undertaking.<p>I think web development is kind of a gateway drug into the rest of software development for a lot of people. New devs often start with Javascript if they aren&#x27;t coming from a college, so I think there is definitely some value in keeping the web using hand written software (to not further gatekeep the profession), but I agree with you entirely. Web development, I think, is complexity for complexity&#x27;s sake. I think people that master it are legitimately very talented engineers, I just wish engineers spent that time and talent on more interesting problems.<p>I am not speaking negatively about Javascript or front end development, I think it&#x27;s incredibly difficult to do well and applaud those that pull it off. I just don&#x27;t think it needs to be.
评论 #25144999 未加载