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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tenets

201 点作者 wilbertliu超过 1 年前

24 条评论

rykuno超过 1 年前
The direction React&#x2F;NextJS has taken modern web development is a modern day abomination. I say this as a passionate fullstack developer whos worked for YC startups and a fortune 10 company within the past decade. I appreciate Vercel as a company too; I have no hate towards them but the NextJS 13 release almost made me quit web development.<p>Svelte is an absolute love language to the web and a direction for healing the damage caused by modern &quot;web frameworks&quot;. It&#x27;s the absolute direction we need to head in.<p>Here&#x27;s something beautiful. I&#x27;m teaching my brother-in-law programming to get a job when he&#x27;s out of the military. He&#x27;s learning JS&#x2F;CSS&#x2F;HTML and doing quite well. With about a 2 minute tutorial of how Svelte works; he was able to start creating some pretty impressive projects. A day later because he already knew the basics of how the web works, he was in Sveltekit building fullstack apps -_-.
评论 #39328379 未加载
评论 #39331850 未加载
评论 #39331066 未加载
评论 #39328346 未加载
nightski超过 1 年前
Now I know why I dislike Svelte so much, I don&#x27;t believe in its principles. Which is perfectly fine, a framework can&#x27;t please everyone.<p>HTML is not the mother language - It&#x27;s actually pretty terrible for describing dynamic user interfaces. This is why JS solutions are so appealing. If HTML is so magical why do they need a fancy template language?<p>Magical, not magic - I really don&#x27;t want it to feel magical either. I like explicit behavior and I think that is my problem with the whole wrap everything in observables approach. It&#x27;s too magical.<p>No one cares - The countless blogs, posts, and communication around frameworks implies that yes, developers do indeed care. Details are important. You can&#x27;t waive away concepts like memoization because they need to be used in the right context. There&#x27;s no one size fits all solution to caching.
评论 #39328175 未加载
评论 #39328834 未加载
评论 #39328152 未加载
评论 #39330114 未加载
评论 #39330410 未加载
评论 #39328144 未加载
评论 #39328355 未加载
评论 #39328774 未加载
评论 #39328879 未加载
评论 #39330086 未加载
评论 #39328089 未加载
评论 #39328200 未加载
评论 #39329311 未加载
评论 #39332381 未加载
评论 #39331050 未加载
preommr超过 1 年前
&gt; Instead of striving to be the fastest or smallest or whateverest, we explicitly aim to be the framework with the best vibes.<p>Except that svelte advertises itself constantly as being faster and with smaller bundle sizes. Which is a good thing. I don&#x27;t buy that it priortizes &#x27;good vibes&#x27; at the cost of those other things. If it&#x27;s saying it prioritizes &#x27;good vibes&#x27; and everything else, then that&#x27;s pretty meaningless - they might as well say they&#x27;re good at everything.<p>Would also help to actually define what &#x27;good vibes&#x27; are because I think every tool tries to make DX as nice as possible.<p>I honestly dislike fluff like this because it conveys nothing and gives fodder for people to ignore practical evidence in favor of biased advertising i.e. someone&#x27;s going to make a bullet point list about things they dislike, and someone will just point to this and say &quot;nuh uh, you&#x27;re wrong, they care about being user-friendly, it says so right here&quot;.<p>Since we&#x27;re talking about front-end frameworks, I still maintain that vue has some of the best documentation. I fell in love with vue 2 because the documentation did a great balancing act between being brief, simple, and somehow dense at the same time. In particular, I remember a page about it&#x27;s comparisons to other frameworks that in a few paragraphs, gave a history lesson, simplified differences to barebones, explained the practical implications all in a way that put vue in a good light. It was much better than the angular and react docs at the time.
评论 #39328242 未加载
评论 #39330924 未加载
评论 #39330185 未加载
评论 #39330127 未加载
levmiseri超过 1 年前
As someone used to doing everything with vanilla JS and having troubles with getting deep into any web frameworks (especially React), Svelte has been a godsend. I&#x27;m in love with the philosophy and approach and its natural combination of JS&#x2F;CSS&#x2F;HTML is, in my personal bubble, second to none. Most recent experiment was <a href="https:&#x2F;&#x2F;meoweler.com" rel="nofollow">https:&#x2F;&#x2F;meoweler.com</a>, but I&#x27;m now trying more complex projects and can&#x27;t sing high enough praises. I sincerely hope the future of Svelte is bright.
评论 #39328994 未加载
评论 #39330793 未加载
pm超过 1 年前
Svelte and SvelteKit have earnt a place in my heart. They&#x27;ve allowed me to enjoy learning reactive- and component-based development. In comparison, React has always felt like a chore, and I avoid it as much as possible, despite it being the most popular framework.<p>(Side note: I rate Vue as well, though I prefer SvelteKit over it these days)<p>Rich Harris and the Svelte family have always been pragmatically minded, and there&#x27;s value in expounding one&#x27;s development philosophy, but I&#x27;ve gained no insights with this list. Perhaps it&#x27;s the language used, rather than the tenets themselves.
rich_harris超过 1 年前
Ha, did not expect this to be on the front page of HN today! Some quick context: in January I was in London for a few days, and while I was there we had a Svelte Society London event.<p>This document is a text version of a talk I gave there, which expands on some of these ideas: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=eswNQiq4T2w&amp;t=5211s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=eswNQiq4T2w&amp;t=5211s</a><p>It&#x27;s deliberately brief and vague in parts, because it&#x27;s designed to spur conversation. It&#x27;s not set in stone, nor is it an Official Statement on behalf of the Svelte team — it&#x27;s an attempt to articulate the way that the maintainers tend to find ourselves thinking about some of these topics, as viewed through my personal lens. If it helps explain why you like Svelte, great! If it helps explain why you hate it, that&#x27;s great too — that&#x27;s the whole point. Have fun with it, and if there are parts you disagree with then your homework is to think through what kind of tenets would describe your ideal framework.<p>Also, it&#x27;s Saturday — get off Hacker News :)
评论 #39328948 未加载
评论 #39330527 未加载
评论 #39328569 未加载
评论 #39329322 未加载
bohlenlabs超过 1 年前
After several React projects, I recently went “back to the roots” and created an app with server-generated HTML using the ages-old Mustache templates.<p>For interactivity, I added a bit of HTMX, and to have beautiful forms, I added the web components from Shoelace, all wrapped up in a Vite build.<p>And I must say that this was a relaxing experience: No complicated React stuff anymore, and the Typescript-based server components on AWS Lambda render the pages within 30 msecs each. AWS DynamoDB powers the data layer.<p>Feels like 1997 again, but I am Happy with the new stack!
DotaFan超过 1 年前
Chose Svelte for a client project 5 months ago, client loves the speed, I love developing with it. In general it&#x27;s quite a nice tool, fast development, feels easy to learn. I do dislike server-less functions, which comes in pair with Svelte ability to do SSR, which doesn&#x27;t have to do anything with Svelte tho.
nathias超过 1 年前
Svelte to me is how objective progress in building the web looks like, much like React was just much better than Angular 10 years ago, Svelte just makes sense.
bowsamic超过 1 年前
Whenever I&#x27;ve tried Svelte I&#x27;ve honestly had a horrible experience, which surprises me somehow. It definitely failed on the &quot;magical, not magic&quot; thing. The exact workings of $ is still extremely confusing<p>It&#x27;s funny, a lot of the Svelte fans made me think that it would be very simple and nice, and that React was much clunkier, confusing, and implicit, but my experience was the total opposite
评论 #39331148 未加载
评论 #39330848 未加载
ramesh31超过 1 年前
&gt; We want Svelte to feel magical — we want you to feel like a wizard when you&#x27;re writing Svelte code... So when we design things we need to think about the people who haven&#x27;t read the docs in a while, if at all, and don&#x27;t care about things like that. This means that things need to be intuitive, that we shouldn&#x27;t need to worry about manual optimisations like memoisation, that we should have as few APIs as possible, and that things need to be discoverable<p>Amen. After being forced into working on a large Vue project as a React dev who had sworn it off, I&#x27;ve slowly come around to falling in love with it. Once you get over the &quot;black magic&quot; of it all, the productivity is insane. For people who just need to get things done, and couldn&#x27;t care less about millisecond level rendering benchmarks, I would easily suggest it over React at this point.
评论 #39328143 未加载
评论 #39328995 未加载
laurels-marts超过 1 年前
Svelte 5 moves closer to React in quite a few ways. The single component per file is still a dealbreaker for me. React got it right with composition and being able to break a component out into its sub-components.
c0brac0bra超过 1 年前
&gt; &quot;we explicitly aim to be the framework with the best vibes.&quot;<p>I quite love this.
评论 #39328359 未加载
评论 #39328049 未加载
pier25超过 1 年前
I started using Svelte a couple of years ago and I love it. Very quickly it became the only client side solution I want to use.<p>Can&#x27;t say the same about SvelteKit though. I&#x27;ve tried it a couple of times and it&#x27;s just not fot me. It&#x27;s really a tool built around a client side library and it shows (instead of being a backend framework).
评论 #39329265 未加载
SandraBucky超过 1 年前
I am doing UI in svelte for few months now, I worked on React before, It feels like some weight has been lifted off my shoulder.
xk_id超过 1 年前
I think it’s wonderful that their official website doesn’t even work in iOS 14.3 Safari, which is only 3 years old (it crashes completely with “500 internal server error”). I encourage everyone who genuinely cares about the web to stop updating compulsively and just allow themselves to be gracefully excluded from this foolishness.
dayjah超过 1 年前
Can anyone fill me in on the backstory about lighthouse? What is it? Why is it a bad measure?
评论 #39329514 未加载
xwowsersx超过 1 年前
One of the comments on GitHub says:<p>&gt; the first time I use Svelte &amp; Kit I feel the same joy as I feel when the first time learning web development in 2015<p>That sounds pretty awesome. If you have experience with Svelte and this resonates with you, could you explain why?
xigoi超过 1 年前
I like the general idea of Svelte, but last time I tried it, it required a lot of bloat (tens of files) for just a simple “hello world” project, which put me off.
k__超过 1 年前
That whole text sounds like he gave up.<p>Like, Svelte isn&#x27;t better than any alternative in a meaningful way, he&#x27;s just doing it because he wants to.
TehShrike超过 1 年前
I like using Rich Harris&#x27;s tools because he cares about actually getting stuff done and he&#x27;s allergic to bullshit
评论 #39327726 未加载
评论 #39328103 未加载
baxtr超过 1 年前
Anyone know why these principales are called tenets? I believe it’s a concept that originates from amazon.
评论 #39330485 未加载
评论 #39331100 未加载
arxpoetica超过 1 年前
&gt; The web matters<p>nuff said
moffkalast超过 1 年前
&gt; Instead of striving to be the fastest or smallest or whateverest, we explicitly aim to be the framework with the best vibes.<p>Wat.