I don't fully understand the difference between this (and something like Remix, which seems similar) and other frameworks like Next.js (React) and Nuxt.js (Vue). Can someone explain a bit about the differences, and pros/cons to each?
(I am not affiliated with any of these technologies, but am a Next/Vercel customer. I am also not super familiar with anything except Next, but this is my attempt at an explanation.) I think they all try to solve the same problem: how to get a modern interactive app to run on (and be performant) what is essentially a hacked-together ecosystem, HTML + Javascript, with decades of backward compatibility baggage. The ess…
Fresh – Next-gen web framework
131–140 of 463 posts
Re: Fresh – Next-gen web framework
#132Earlier quoted context omitted.
Deno vs Node appears to be one of them.
Sure - this seems to be an implementation detail, though - eg, Remix and Next.js are both on Node.js but seem to have some difference that's not abstracted away, in terms of how you develop, how concerns are separated, etc.
Deno has other advantages in paper, like official ts support, all the tooling was written in rust (so it's more performant that the default ones that the others use).
The only downside right now with deno is popularity and maturity of the ecosystem, it is just too new, so you will have hard time finding what you are looking for that works out of the box, while a lot of companies invested in node official packages.
Re: Fresh – Next-gen web framework
#133Re: Fresh – Next-gen web framework
#134Re: Fresh – Next-gen web framework
#135Re: Fresh – Next-gen web framework
#136On the part about adding interactivity: > "To include this in a page component, one can just use the component normally. Fresh will take care of automatically mounting the island component on the client with the correct props:" How does a developer know what rendering is going to take place client-side vs server-side, and is there any way to control this? Or is it all fully "magical"
What I read from other comments is that fresh does code splitting, so for example if the interactivity is out of your viewport and you scroll down to that element, it will then load the js required to make it interactive, while I find that idea cool, what worries my is that it could take a few ms to load the js and then other few ms to boot that component and render it interactive. But I don't have experience with any of the frameworks (besides next.js where I build a small demo project to try it out).
Re: Fresh – Next-gen web framework
#137Re: Fresh – Next-gen web framework
#138Fresh = Deno version of Astro (static-first with SSR) and Isle (vue-focused) and bigger Next.js/Nuxt SSR (with no client js) modes. Remix also does well here with a focus on only SSR. It's basically what the original "isomorphic" javascript promise was to have the same code seamlessly running on server and client with a flexible split on what part ran where, now possible down to an individual tag/component. Also wort…
Does that mean JS running server-side? That's a full-stop dealbreaker for me.
Re: Fresh – Next-gen web framework
#139is fresh dependent on deno ? can it also be run on vanilla node?
[0] https://github.com/lucacasonato/fresh/blob/main/src/server/d...
Re: Fresh – Next-gen web framework
#140Does anyone know what software can be used to design the juicy hero animation seen here?
It's an SVG animation. There are a number of programs that can be used to create such an animation. I use Flow, pretty simple to use and it's included with setapp (an app subscription platform on mac). https://createwithflow.com/ You can also check out svgator, it's an online based solution. https://www.svgator.com/ Cheers!