4 ms·
Qwik Reaches v1.0
- benatkin 4y agoI like it uses .value instead of () to read a signal like Solid. More keystrokes but feels cleaner.
- rektide 4y agoQwik is really interesting. Initially the page is rendered server-side, then sent to the page. But what happens is very unlike most we apps, which then have to re-run most of the app to hydrate: > Qwik is different because it does not require hydration to resume an application on the client. Not requiring hydration is what makes the Qwik application startup instantaneous. > All other frameworks' hydration replays all the application logic in the client. Qwik instead pauses execution in the server, and resumes execution in the client. https://qwik.builder.io/docs/concepts/resumable/ https://qwik.builder.io/docs/concepts/resumable/ It stores state in the DOM tree in a way that lets it "resume" running. If you click a link, a top level handler can recurse down the page to find listeners. It can gather any extra state & on the fly spin up components needed by the handler. In general I think the topic of serializing & exposing application state is a vast untapped trove of awesomeness that compsci could be mining. 9p is the best reflection we have. But we also see a steady stream of git-based data projects coming out, that also reflect the value of serializing your state in a valuable way. The twist here of using serialized app state, baked into the DOM, to allow instant resumability is awesome. On-demand paging back in state is like live migrating a vm or user process, just an awesome feat that redefines the computing model in such a more open way. Congrats on your 1.0!
- gdsdfe 4y agohaven't done frontend in years ... so how do I use this with say my spring boot backend ??
- benatkin 4y agoSpring Boot is a fullstack web framework but it can be used as a backend web framework. You would use Spring Boot as the backend web framework and Qwik as the fullstack web framework that, instead of using a database*, uses an API powered by Spring Boot to access information. Everything in the Spring Docs about HTML/CSS/JavaScript would cease to be relevant. https://spring.io/guides/gs/serving-web-content/ https://spring.io/guides/gs/serving-web-content/ * Qwik is perfectly capable of using a database despite being a frontend-heavy framework. It's like Next.js in that the backend runs in Node.js and you can use any npm package that runs on Node. The server-side part of Qwik would be lighter weight with it just passing requests on to the Spring Boot app.
- aatd86 4y agoBasically, needing two servers... One for the API, one (mandatorily a js one, nodejs or deno or whatever... ) to serve the pages. Personally, I don't like much where the frontend is trying to lock people into.(javascript)
- edge-guy 4y agoApart from just disliking JavaScript as a whole, what specifically would you improve to make it acceptable? I think any problems it has on BE would also apply on FE, and should be improved?
- benatkin 4y ago> Apart from just disliking JavaScript as a whole That isn't how I read it. To me it sounded like the issue was having to run a JavaScript web server. They might like JavaScript on the frontend. > I think any problems it has on BE would also apply on FE, and should be improved? Isometric js isn't all-or-nothing, but it sometimes feels that way with a fullstack js framework.
- _jezell_ 4y agoNot to be confused with Quic.
- benatkin 4y agoThat makes me think of Oui or "Ouic" which would sound like "weak". Free startup name: Ouil "wheel" Free quip: ouicsauce
- tuyenhx 4y agoAt first, I thought it was a python framework from making desktop UI. As I remember, there is a python framework with almost similar name. Congratz on the first stable version! P/s: as I am getting older, I am just too tired for new frontend stuffs.
- AbuAssar 4y ago> Frameworks such as React, Vue, Angular, Svelte, SolidJS, and their meta frameworks (Next.js, Nuxt, SvelteKit, SolidStart, Astro) angular has a meta framework called analogjs, as it is not mentioned in the post as an example.
- mrath 4y agoMore and more frontend frameworks are now somewhat mandating a server part. I know pretty much all(sveltekit, nextjs) say you can do static export, but docs are more focused to use with a server. IMO it appears like this is being pushed by cloud vendors sponsoring those projects. If you want to build a plain old SPA, the new react docs pretty much have no info. Sveltekit docs discourages it. I have not looked much into vue, but it appears like vue does better here. Qwik while has a static export, looks like you lose all the good parts of you don’t use a server. I can certainly see the SEO and other good thing that comes with SSR but not everyone needs it.
- pier25 4y ago> IMO it appears like this is being pushed by cloud vendors sponsoring those projects. Having a server component is just the natural step after a decade of bloated and unnecessary SPAs. That said, I do think Vercel has probably influenced the design of Next and SvelteKit so that it fits better with their platform.
- mrath 4y ago> Having a server component is just the natural step after a decade of bloated and unnecessary SPAs. Not sure I buy that argument. While I am not totally against the idea of server based frameworks, what is disappointing is the frameworks are appearing to plant the above message. SPAs provided us a good boundary and that is blurred by all these server based frameworks. You now have server for UI, server for BE. While I agree some SPAs are heavy, I think we have reasonable solutions for most. And these server based framework still need all the work that is done in SPA, just that routing and some aspects of bundling are taken care.
- pier25 4y agoThere's no conspiracy. SPAs should have never become the default way to make web front end. Making a good SPA takes a lot of work and almost nobody has time to do it properly. Even Google with all its resources is incapable of making a good SPA for the Google Cloud console. This article hits the nail in the head: https://nolanlawson.com/2022/06/27/spas-theory-versus-practice/ https://nolanlawson.com/2022/06/27/spas-theory-versus-practi... "The best SPA is better than the best MPA. The average SPA is worse than the average MPA" I'm not saying SPAs do not have their use cases. They totally do (Gmail, Twitter, Spotify, etc) and use them daily.
- jgalt212 4y agoI think Qwik is totally cool. An interesting critique brought up by Rich Harris[1] (I'm paraphrasing) was it's not clear to the developer what code runs on client and what runs on server. Given this, it's too easy for code that should not be exposed (server only stuff with database schemas, or worse) may end up being exposed (shipped to the client). Is this a valid critique? [1]Rich Harris on frameworks, the web, and the edge https://www.youtube.com/watch?v=uXCipjbcQfM https://www.youtube.com/watch?v=uXCipjbcQfM