Live data from Hacker News

Fresh is a new full stack web framework for Deno

deno.com

181–190 of 249 posts

Re: Fresh is a new full stack web framework for Deno

#181
Now only get Deno Deploy to implement dynamic imports, so fresh can remove its build step.

Yes, they also firmly keep the claim that fresh doesn’t have a build step. Hint: It does [^1]. They’ve just hidden it for most people by making it part of the local testing.

[^1]: https://news.ycombinator.com/item?id=31723205

Re: Fresh is a new full stack web framework for Deno

#182
post #61

The post seems to claim that there is no drawbacks others approach with the 0 bytes of js, and link to a blog post [1] that absolutely tells nothing how to properly manage back/front state and rendering consistency between the rendering and the «islands» on the client. [1] https://jasonformat.com/islands-architecture

Without having built in the "Island Architecture", it looks exactly like a page of old where you serve an entire page, accept form submissions, return the updated page, and make small elements interactive (islands). These islands contain only minimal local state and global updates happen through the aforementioned form submissions.

The difference being it's all one isomorphic (?) React-y Deno codebase instead of the tangled PHP+jQuery mess.

Promising enough, if you ask me.

Re: Fresh is a new full stack web framework for Deno

#183
post #91

Earlier quoted context omitted.

> 100ms added latency can cost you 7-8% in conversions i hear this metric (or something equally absurd) cited frequently and have never seen it to be true in my own experience. i guess if you have to load a product page with 100 images (or assets) and each has 100ms network latency, then it will add up to much more than that. but 100ms for a single interaction or network request (e.g. process payment POST) is not goi…

I've worked in e-commerce for a while and have heard similar stated from time to time and seemed like someone was trying to fit a linear line over what's almost certainly an s-curve distribution. At lower latencies no one is going to leave your site because it takes 1200ms instead of 1000ms to fully load a page. But at some point almost everyone is going to leave your site rather than wait. I also find these stats re…

Also, this can make me bounce: ,,payment failed, please start again with an empty shopping cart''. It happens on quite many webshops.

Re: Fresh is a new full stack web framework for Deno

#184
post #138

Earlier quoted context omitted.

IIRC Vercel and Netlify edge functions are actually using Deno Deploy. Edit: No, it's only Netlify.

No, Vercel Edge Functions use Cloudflare Workers. https://news.ycombinator.com/item?id=29003514

Thanks for the correction!

Re: Fresh is a new full stack web framework for Deno

#185

Earlier quoted context omitted.

> 100ms added latency can cost you 7-8% in conversions i hear this metric (or something equally absurd) cited frequently and have never seen it to be true in my own experience. i guess if you have to load a product page with 100 images (or assets) and each has 100ms network latency, then it will add up to much more than that. but 100ms for a single interaction or network request (e.g. process payment POST) is not goi…

I could see the 100ms/7% impact coming into play for a super impulsive shopper going from page to page compulsively until they pull the trigger on a product. I wouldn't be surprised if that was a lot of Amazon's business—people buying things they had not set out to buy. Makes less sense the smaller an e-shop gets since the consumer already needed intent to shop there. If I know I already want product X on Shop Y toda…

I've been thinking about that a lot lately. I have a medium-sized e-commerce. We sell hyper-customized products and, to be honest, the site's overall performance is not good. But when I looked into other stores in the same niche as ours, who are making a lot more money than us, I saw that their performance wasn't better than ours. I don't think people shop impulsively in our store because they have to customize the product and then make sure the customization is correct (it's a pretty complex customization). I believe that because the journey to checkout is so long and requires so much attention, the customers just don't give up due to high latency or slow responsiveness overall.

Re: Fresh is a new full stack web framework for Deno

#186

Earlier quoted context omitted.

CSR is expensive, because you lose customers over bad performance (measurably), and you can not scale the client. You can however scale the server.

modern JS runtimes are extremely fast on all hardware that's not a 2000-era phone or an embedded micro-controller with 4MB ram. if your CSR is slow on a modern client, then that same JS code will bring your server to its knees when you simply migrate it to an equivalent V8-powered JS backend. scaling the server will not solve this; you just have to write fast JS code and pay attention when you write it, not merely op…

In theory yes, but in practice the majority of modern SPAs are slow and bloated.

Re: Fresh is a new full stack web framework for Deno

#187
Have recently been getting pretty deep into Hugo for a 3rd project and while I love how fast the static sites Hugo builds are. I absolutely hate how every tool I love using takes hours to setup and how it take hours to debug random tooling integration issues between Hugo and node like postcss etc. so much so that despite how much I know Hugo and static sites in general are more often than not the way to go for a lot of things I have been recently reconsidering how much perfect optimization is worth if it takes so much effort to get when something like fresh can deliver what looks like a much better developer experience though perhaps without the perfect optimization

Re: Fresh is a new full stack web framework for Deno

#189
post #8

> But client-side rendering is expensive; the framework often will ship hundreds of kilobytes of client-side JavaScript to users on each request. These JS bundles often do little more than rendering static content that could just as well have been served as plain HTML. server-side rendering for each request in V8 might be more expensive to host than client side rendering in V8? for a properly-chunked app, hopefully m…

This was my thought, too. In reality, client side rendering today is “cheap” because you typically put a CDN in front of your application to serve static resources and scripts, and your backend only serves the API requests (if needed). Rendering everything on the backend means by contrast that you’re limited to the capacity of your server and the latency based on where it’s located.

Counter-point to this is that edge computing addresses the latency for compute in the same way that a CDN does for static assets.

SSR definitely has drawbacks in the old "run your app from a single VPS somewhere" model, but in a globally distributed edge computing model, you remove a lot (but not all) of those drawbacks.

Re: Fresh is a new full stack web framework for Deno

#190
post #186

Earlier quoted context omitted.

modern JS runtimes are extremely fast on all hardware that's not a 2000-era phone or an embedded micro-controller with 4MB ram. if your CSR is slow on a modern client, then that same JS code will bring your server to its knees when you simply migrate it to an equivalent V8-powered JS backend. scaling the server will not solve this; you just have to write fast JS code and pay attention when you write it, not merely op…

In theory yes, but in practice the majority of modern SPAs are slow and bloated.

Most of the slow SPAs I use are slow because they are waiting for api requests from the server.
Post reply on HN