News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by ravenstine on Thursday November 11, 2021 @12:27PM (#29190557)
Awesome news! Having worked with frontend frameworks for years, I've grown pessimistic about them in general, but I'm enthusiastic about Svelte because it does so many things right that actually avoid a lot of the issues other frameworks claim to solve but actually make worse.

Interacting with the Svelte compiler is ridiculously easy. Though the documentation can be improved, I found it trivial to import the Svelte compiler and prerender a component into an HTML string. Yes, this is somewhat of a niche thing to do, but I appreciate it when libraries and frameworks make it easy to access its internals. Heck, I pretty easily managed to implement Typescript support for Svelte components using Deno's `emit` function; hooking into Svelte's preprocessing was trivial, the complexity I ran into being on the Deno side.

Contrast that with Ember, which seems to have an attitude of "no one would or should ever want to do that", making it really hard to do anything slightly off the beaten path without lots of trial and error or entering the Ember inner-circle.

Yes, I know I'm comparing a component library to a framework, but what I'm commenting on is more about development philosophy.

It's good to hear the creator of Svelte will be able to dedicate his time to it and be able to provide project guidance. I think he has the right vision for what Svelte should be.

Re:Rich Harris joins Vercel to work on Svelte full time by cobertos on Thursday November 11, 2021 @12:48PM (#29190790)
Ember was the first framework I used and also the most frustrating. At least with Vue and React I can poke at the internals and they make sense, but Ember's internals had so many oddities that thoroughly confused me.
Re:Rich Harris joins Vercel to work on Svelte full time by ravenstine on Thursday November 11, 2021 @01:30PM (#29191267)
What I like about Ember is that it gives a lot of rigid structure that, at least at one point, made it comparatively easy to work on multiple Ember based projects and be productive sooner.

As you've pointed out, a problem with that project is that there's a ton of intimate knowledge for how things work under the hood or why things are the way they are. They also seem to oscillate between opting for simplicity and opting for complexity and magic.

One example would be the latest version of Ember which doesn't even ship with `@ember/render-modifiers` by default despite how everyone will end up installing it out of necessity anyway.

Why might that be, you may ask?

> [...] we recommend using these modifiers with caution. They are very useful for quickly bridging the gap between classic components and Glimmer components, but they are still generally an anti-pattern.

https://github.com/emberjs/ember-render-modifiers

Why on earth did they reinvent components and ship them without providing the supposedly correct way of interacting with their lifecycle? You actually have to install a separate add-on to develop a production-ready app with Ember, which completely flies in the face of the idea that you can run `ember new` and have pretty much everything you need. Go ahead and try interacting with individual elements of a Glimmer component in a vanilla Ember project and see how productive and ambitious your web app will be.

Strangely (and thankfully), the RFC for what I think is a needlessly complicated alternative for lifecycle interaction is effectively stalled:

https://github.com/emberjs/rfcs/pull/567

By their own verbiage, the only official way to interact with component/element lifecycle is an antipattern.

So far Svelte and SvelteKit are avoiding all that extra crap. The day that Svelte calls its own solutions "antipatterns" and spends years pontificating things like the actor pattern will be a sad one.

/rant

Re:Rich Harris joins Vercel to work on Svelte full time by sxiao on Thursday November 11, 2021 @02:02PM (#29191669)
This is so HN, in an Svelte thread memories from Ember (sharing your sentiments though).
Re:Rich Harris joins Vercel to work on Svelte full time by ravenstine on Thursday November 11, 2021 @02:49PM (#29192284)
HAHAHA

I try not to go full HN, but sometimes you do.

And I shouldn't have made it about that. As I get older I the more I just get tired of extra things. There's always a price when you add more things. Svelte technically does add things, but I think it has better bang for its buck. The fact it doesn't pointlessly impose OOP constructs upon the end-developer is a big win for me.

Re:Rich Harris joins Vercel to work on Svelte full time by sxiao on Thursday November 11, 2021 @02:58PM (#29192398)
Yeah, Svelte is pure gold.
Re:Rich Harris joins Vercel to work on Svelte full time by sxiao on Thursday November 11, 2021 @01:43PM (#29191413)
Why is this 'awesome news' for us devs, the market and competition if one vendor now controls all modern SSR frameworks plus significant parts of the tool chain (swc)?
Re:Rich Harris joins Vercel to work on Svelte full time by afavour on Thursday November 11, 2021 @01:51PM (#29191539)
Does Vercel actually “control” Svelte, though? The existing governance structure is untouched, they’re just paying the salary of the lead (and definitely not only) developer.
Re:Rich Harris joins Vercel to work on Svelte full time by sxiao on Thursday November 11, 2021 @01:57PM (#29191617)
Not sure if this topic is worth our time to debate. There are millions of ways of subtly controlling/influencing entities. And it's much easier if you pay money, ESOP and pay even more money if future goals and exits come alive.
Re:Rich Harris joins Vercel to work on Svelte full time by DonHopkins on Thursday November 11, 2021 @03:53PM (#29193015)
The Zope Corporation hired Guido van Rossum to work on Zope for three years (a Python web application server and content management system), then he moved on. That didn't destroy Guido, or Zope, or Python.

https://en.wikipedia.org/wiki/Zope

https://en.wikipedia.org/wiki/Guido_van_Rossum#Work

>He has worked for various research institutes, including the Centrum Wiskunde & Informatica (CWI) in the Netherlands, the U.S. National Institute of Standards and Technology (NIST), and the Corporation for National Research Initiatives (CNRI). From 2000 until 2003 he worked for Zope Corporation. In 2003 Van Rossum left Zope for Elemental Security. While there he worked on a custom programming language for the organization. From 2005 to December 2012, he worked at Google, where he spent half of his time developing the Python language. In January 2013, he started working for Dropbox. In October 2019, Van Rossum officially retired before coming out of retirement the following year to join Microsoft.

Guido and Rich are both uncontrollable forces of nature!

Re:Rich Harris joins Vercel to work on Svelte full time by afavour on Thursday November 11, 2021 @02:14PM (#29191873)
Even if Vercel came out and said “we’ve bought Rich Harris’s voice, every choice will be controlled by us” (which they haven’t!) they still wouldn’t control the project because Rich isn’t a BDFL.
Re:Rich Harris joins Vercel to work on Svelte full time by sxiao on Thursday November 11, 2021 @02:30PM (#29192064)
Good point and I agree about Rich but I rather trust healthy markets and competition more than people.
Re:Rich Harris joins Vercel to work on Svelte full time by DonHopkins on Friday November 12, 2021 @01:42AM (#29196876)
If we have such trustworthy markets and competition, then how the hell did we end up with React and Angular, huh?

Ayn Rand sucks at software design, as much as she sucks at philosophy and economics and social design and writing. Your trust in her is certainly misplaced.

Anyway, why do you have such a huge problem with Rich acting in his own best self interest, that you found a need to personally attack him so viciously and often as you did in this discussion for all that he's done for himself and the Svelte community?

Don't you believe the invisible hand of the market, which you trust so much, will prosecute your vengeance on Rich, who you find so untrustworthy?

Re:Rich Harris joins Vercel to work on Svelte full time by ahevia on Thursday November 11, 2021 @02:01PM (#29191658)
Wouldn't Vercel benefit from being the defacto platform to deploy Next & SvelteKit apps?
[dead]
Re:Rich Harris joins Vercel to work on Svelte full time by ahevia on Thursday November 11, 2021 @03:25PM (#29192697)
Calling someone weak is a personal attack. You are not Rich. Don’t speak for him or his attributes. Keep the discussion constructive, you’ve already been asked in this post to calm down the personal attacks even after Rich gave you a kind reply

https://news.ycombinator.com/newsguidelines.html

Re:Rich Harris joins Vercel to work on Svelte full time by leeoniya on Thursday November 11, 2021 @02:17PM (#29191912)
> We can only blame Rich who got weak but yeah, nobody is perfect.

this comment. just wow.

Re:Rich Harris joins Vercel to work on Svelte full time by emteycz on Thursday November 11, 2021 @02:13PM (#29191856)
He did not leave the market and on top of that now has financial safety so can work on the project 100%. That's a net gain.
Re:Rich Harris joins Vercel to work on Svelte full time by brightball on Thursday November 11, 2021 @02:15PM (#29191893)
I'm definitely curious about it. I'm one of those "swore off frontend framework" people who's attracted to tools like Phoenix Liveview so I never have to deal with it.

Svelte does look pretty sharp and simple though. I wonder how well it works with something like LiveView? Does it really depend on the styling structure mentioned or can I use it with Tailwind?

Re:Rich Harris joins Vercel to work on Svelte full time by dceddia on Thursday November 11, 2021 @02:21PM (#29191966)
It works great with Tailwind, I’m doing that in a project right now. I haven’t tried pairing Svelte with LiveView and I’d worry they would end up fighting over elements of the page, but I’d think you could have them control separate parts of the same page, or have them controlling distinct pages just fine.
Re:Rich Harris joins Vercel to work on Svelte full time by leerob on Thursday November 11, 2021 @12:53PM (#29190831)
What could be improved in the documentation?