News for hackers. Stuff that matters.

wirahx

Re:Remote MCP Support in Claude Code on Sunday July 06, 2025 @04:06AM (#44478753)
I wanted this workflow but we absolutely share the same problems. However it took a few minutes on their site to see that the workflow involves explicitly assigning tickets to cheepcode in order for it to work on them.

That being said, I tried to sign up, and it broke horribly, and it looks like it was knocked out in 5 minutes, so my desire to give it access to my production codebase is fairly minimal.

Re:Ask HN: Learn React or Vue? on Tuesday January 16, 2024 @02:13AM (#39010345)
The only reason React et all need an ecosystem is because they're hard to integrate vanilla libraries with, or harder to develop components for.

Vue suffers less from this issue, as you'll well know, and Svelte doesn't suffer at all.

The same can be said for people being skilled in it. It takes longer to skill up on React, less on Vue, and the least on Svelte.

A lot of people end up using React because of these invented scenarios, when in reality, building something rapidly like a start-up is significantly quicker with Svelte. Trust me, I've done it, and we're post Series A, and now reaching profitability.

Re:Svelte 5: Runes on Wednesday September 20, 2023 @10:17AM (#37584436)
I'll be the first to mourn the (future) loss of $: but the video clearly shows that the changes are a pretty enticing way to make your code that little bit cleaner, and solve all of the "but Redux!" style questions.

Svelte for Apps. Svelte for Sites.

Re:The Truth about Svelte on Wednesday July 12, 2023 @06:49AM (#36692690)
> I don’t follow… in what sense is this JavaScript? > <button on:click={incrementCount}>

it's not. it's html. incrementCount is a pointer to a javascript function.

> Or what about this… is this JavaScript? > $: doubled = count * 2;

Yes. $: is a javascript label. We use it to indicate that a function should be reactive - if the count variable changes, the right hand will be rerun and double updated.

> <button on:click|once={handleClick}> Click me </button>

html again. the |once is a modifier to click which detaches the handler after a single use. It's a directive in the html markup (still valid html) which the compiler picks up and converts into node.removeEventHandler.

Re:The Truth about Svelte on Wednesday July 12, 2023 @06:44AM (#36692646)
it's not. `toggle` is a pointer to a function name and "toggle()" appears to be an expression which is parsed and then executed (scary).

you can on on:click={() => toggle()} in svelte which is more similar, but it isn't parsed and executed, it is a pointer to an anonymous function which is directly executed.

on:click={toggle()} in svelte would run the function immediately (probably not what you want) and return the result as the handler for the on:click

so quite different, really.

Re:The Truth about Svelte on Wednesday July 12, 2023 @06:42AM (#36692633)
not everybody was excited about the virtual dom. people who looked closely at it weren't particularly excited.
Re:The Truth about Svelte on Wednesday July 12, 2023 @06:32AM (#36692569)
you're equating it to string interpolation. It isn't. It's a compiler directive which disappears when compiled, which is why it is expressed as a brace expression rather than a tag.
Re:Svelte is migrating from TypeScript to JSDoc on Wednesday May 10, 2023 @03:35PM (#35892386)
Yep, but slowly converting it all over to SvelteKit. Saves me having to maintain servers, watch setups, build processes, deployment processes, routing, bundling, and so on.
Re:SvelteKit 1.0 on Wednesday December 14, 2022 @01:19PM (#33987465)
That's the tutorial - which uses WebContainers, which are indeed an experimental technology. It has nothing to do with the production readiness of SvelteKit the framework.
Re:SvelteKit 1.0 on Wednesday December 14, 2022 @12:27PM (#33986722)
don't forget to watch the livestream!
Re:Svelte Cubed on Tuesday November 23, 2021 @02:27AM (#29315426)
There is only Safari on iOS. It's just called "chrome" or "Firefox". It's not a very good browser and struggles with a lot of things.
Re:SvelteKit Is in Public Beta on Tuesday March 23, 2021 @08:02PM (#26561926)
It's vastly simpler. You should try something before you write it off.
Re:SvelteKit Is in Public Beta on Tuesday March 23, 2021 @08:01PM (#26561919)
ElderJS is a very specific use-case, which is mass static generation, designed for SEO heavy sites. It's a very narrow usecase.

SvelteKit is designed to let you build anything at all with Svelte.

ElderJS, JungleJS, Primo etc, are all specialisms.

Re:SvelteKit Is in Public Beta on Tuesday March 23, 2021 @03:30PM (#26559296)
I think there is a faster TSC, I forget what it's called, but it's significantly faster. It just isn't as fully fledged as TSC.
Re:SvelteKit Is in Public Beta on Tuesday March 23, 2021 @03:29PM (#26559278)
The banned user is a person who intentionally trolls comment sections, chats, and other forms of feedback. It's genuinely their goal to get banned.
Re:SvelteKit Is in Public Beta on Tuesday March 23, 2021 @03:27PM (#26559260)
FWIW this person is also banned from the Svelte github and the Svelte discord for similar behaviour.
Re:SvelteKit Is in Public Beta on Tuesday March 23, 2021 @03:19PM (#26559154)
There's a link right next to the main headline - "What's the deal with SvelteKit"
Re:Svelte took #1 spot in State of JavaScript 2020 survey on Wednesday January 13, 2021 @01:10PM (#25765828)
From an outsiders perspective, that's fair enough. However, Rich's time and focus as well as a number of other maintainers is currently on Svelte-Kit, which gets a commit around every 6 minutes at its peak, and at least every hour otherwise. Rich is ridiculously active.

Your comments are fair, but misguided.

Re:Show HN: A cool Drag-and-Drop implementation for Svelte on Tuesday January 12, 2021 @12:46PM (#25750421)
can confirm that dragula works well. If you don't need all the crazy browser support though, doing it like this is much more lightweight.
Re:Show HN: A cool Drag-and-Drop implementation for Svelte on Tuesday January 12, 2021 @12:44PM (#25750393)
the code is readable enough that you can just change the animation delay ;)
Re:Svelte and TypeScript on Wednesday July 22, 2020 @08:04AM (#23916070)
Easier, due to the language-server Svelte uses to support TypeScript. It should be relatively trivial for somebody to implement now.
Re:Svelte and TypeScript on Wednesday July 22, 2020 @08:04AM (#23916067)
https://beyonk.com

Everything we do is written in Svelte + Sapper, not just our site, but all the backend apps as well that we use for admin + providers.

Re:Svelte and TypeScript on Wednesday July 22, 2020 @08:03AM (#23916058)
Svelte will never have JSX, not natively anyway. It's completely against the philosophy.

Not all of us think JSX is a great thing. The "templating" language in Svelte isn't really a templating language at all, it's just Javascript with some (unavoidable) helpers. It takes about 2 minutes to learn since there are really only maybe 5 helpers.

Re:Svelte Is Unappealing on Tuesday March 24, 2020 @10:55AM (#22675116)
I feel like the author would benefit from writing some tests or isolating his code better. It doesn't feel like a language or framework problem.
Re:Svelte Is Unappealing on Tuesday March 24, 2020 @10:53AM (#22675106)
So your overarching point is that compiled languages are unappealing. Obviously, this isn't correct.

If a fresh user were to spend a few minutes learning React (or Preact), Svelte, Vue, or Angular, they'd almost definitely pick the terse and simple API of Svelte, or Vue, over the others. I've in fact tested this with a number of Junior and Senior developers.

Every language has downsides and upsides, some people find interpreted languages easier to hack around with than compiled ones, but the sheer speed of Svelte's complilation (especially when you try out the new HMR stuff) really excludes Svelte from this anyway.

Your other point is about every component having it's own runtime. This also isn't correct. Have a look at the code outputted from the REPL to see the "runtime" (which is just a set of shared functions in pure javascript) being declared. These are global to your entire Svelte app. It's as close as Svelte gets to a runtime, and it's shared.

As for changing data somewhere and looking how it all renders differently, that's what the Store is for. It's a cross-component store of data, and if you change it, dependends will render differently.

It's not that there's no merit to your article, it's just that a lot of it applies to most development languages, and it would be silly to call them all unappealing. Upsides and downsides, that's all. And my personal feeling about interpreted frameworks like React or Preact is that they offload the downsides to the user, which is unnacceptable.

Re:Why Svelte is our choice for a large web project on Wednesday March 11, 2020 @05:55AM (#22544469)
Hey - Svelte Calendar actually has an open PR for a date-range picker which just needs a bit of testing to get it over the line. Feel free to take a look

https://github.com/6eDesign/svelte-calendar

As for the other components, as the ecosystem grows, these things start to appear. The advantage to Svelte is that it's super-easy to integrate any vanilla component into, much more so than other frameworks. You can totally do away with nonsense wrapping projects, and just add the component verbatim.

As somebody who doesn't want typescript support, at all, I relish the lack of typescript support!

Also the component model isn't "hacky". It's logical, unopinionated and straight-forward. I don't know how much you know about Rich Harris but he's not one for producing "hacky" public APIs.

That's sort of the beauty of Svelte. The surface area is minimal, and as such - though there are gotchas, you can almost count them on one hand.

I learned to use Svelte (granted, v1), in 45 minutes, and build something using it. I guarantee that a developer won't need 2 weeks to become comfortable in it.

I don't think it's fair to compare the community of a framework which is less than half the age of the ones you are comparing it to, but I agree community is a big one - luckily I've found the Svelte community super helpful, so I've really not suffered at all.

As for 3rd party libraries - it's ludicrously easy to integrate anything you want with Svelte. I've built wrappers for Vue and React before, and I can safely say that it isn't necessary for Svelte. Things just work.

I've been using Svelte for nearly 4 years now, with nearly 3 of those in production. Our entire site https://beyonk.com as well as our admin, backend, and client apps, widgets, and SDKs are all built in Svelte.

I'm a competent all-round developer, but I (was) more comfortable on the server-side than the client-side. However, Svelte has been the first framework (I've used Angular a lot, Vue a lot, and React somewhat) where I've felt fully comfortable working on the client-side too. It's clean, understandable, fast, and it makes sense. It's easy to maintain, and scale my frontend, whereas I've not felt that when I've built similar sized applications with other frameworks.

Svelte, logically, makes sense to me - the API is consistent and sensible, and I can often take a good guess at how to do something without reading the docs. Having no client-side dependencies makes it an absolute ideal fit for distributable libraries too - people can just "slot" our widgets into their site, in one line.

My criticism, as somebody else voiced, is testability. I'm a huge fan of testing, and I generally look for libraries and frameworks which are test-first/test-centric - for instance I use Hapi on the backend, not Express, for this exact reason. That's not to stay that Svelte isn't testable, it's just not been a focus of the framework, and I'd really like it to be. I've had success using [https://github.com/testing-library/svelte-testing-library](h..., and it works well.

I originally built Beyonk in Nuxt but I switched over to Svelte as I had prior knowledge of it, and felt like Vue wasn't quite as nice to code in. After doing so my code was much terser, cleaner, and easier to understand, so I stuck with it and built out the other applications directly in Svelte.

I don't think I could face using any other framework after using Svelte, it would feel like a backwards step. Single-file components are a massive bonus, and scoped styles... I don't know how I lived without them.

It's worth mentioning that when I first learned Svelte (v1) it took me 45 minutes to get the basics and build what I wanted to build. I think the current v3 API could be learned from scratch by a decent frontend developer within a day. That learning curve is drastically lower than that of any other frontend framework I know, and for that reason I'm not concerned about hiring for Svelte.

I think that's about it really. I really enjoy, and in fact, look forward to writing code in Svelte on a daily basis - and for me, that was historically something I never expected to say!

Older »