![Ben Holmes](/img/default-banner.jpg)
- 127
- 1 497 811
Ben Holmes
Registrace 8. 05. 2019
The problem with server actions
Astro Actions add the BEEF to server actions. Try them out: astro.build/blog/astro-490/
Use Upstash for Redis NOW: upstash.com/
#javascript #react #next
Music from #Uppbeat (free for Creators!):
uppbeat.io/t/dan-barton/the-executive-lounge
License code: LRSQGNFHDV0YWIDM
Use Upstash for Redis NOW: upstash.com/
#javascript #react #next
Music from #Uppbeat (free for Creators!):
uppbeat.io/t/dan-barton/the-executive-lounge
License code: LRSQGNFHDV0YWIDM
zhlédnutí: 22 526
Video
Why you SHOULD deploy to the edge
zhlédnutí 54KPřed 4 měsíci
Cloudflare got the edge runtime right. Repo: github.com/bholmesdev/womp #javascript #webdevelopment #typescript #vercel #tutorial Music from #Uppbeat (free for Creators!): uppbeat.io/t/dan-barton/the-executive-lounge License code: IGOXGTHKTP3KRRJ0
React form validation explained - Next.js and Astro
zhlédnutí 8KPřed 7 měsíci
React form validation explained - Next.js and Astro
React server components from scratch!
zhlédnutí 33KPřed 8 měsíci
React server components from scratch!
⚛️ Dan Abramov explores React Server Components with us! [VOD]
zhlédnutí 29KPřed rokem
⚛️ Dan Abramov explores React Server Components with us! [VOD]
[VOD] React Server Components deep dive with @JamesQQuick 🤿
zhlédnutí 2,6KPřed rokem
[VOD] React Server Components deep dive with @JamesQQuick 🤿
Building with Astro x Wordpress - feat Jeff Everhart!
zhlédnutí 5KPřed rokem
Building with Astro x Wordpress - feat Jeff Everhart!
Make servers faster with cache controls 💰 #whiteboardtheweb
zhlédnutí 1,5KPřed 2 lety
Make servers faster with cache controls 💰 #whiteboardtheweb
Why everybody or very second grade developer is creating video only using Stripe? Does Stripe pay you? And if not then please look into small businesses, startups, or individuals who are facing problems like getting blocked with existing multi-thousands of dollars in the account with no legit reason by the worst Stripe. Why you guys don't make video on any other payment gateway integration? I understand that Stripe has best docs experience but this is not the legit reason to not make video on using any other payment gateway. Please do favour and help those business, startups that are getting shutdown only because of Stripe. This is really sad.😢
nice! now i can install my packages in 2 seconds instead of 15 and only spend the rest 10 hours trying to come up with a solution for a bug!
😂 Ben, you are my hero!
This short aged like fine milk 🤣
Hi Mr. Holmes, I'm a computer science freshman at UT Dallas and I want to get in contact for some insight on how the Hack4Impact website works, I reached out to you on twitter under the same name. Thanks!
I can't take you seriously without a turtleneck!
This is the best video on CZcams No questions asked.
Not true or valid anymore
How about react with million.js??
Hey! thanks for the video. Did you create those snippets or are you using an extension?
Seriously. What a terrible and irresponsible video
My man built Next in 20 mins.
this is really great explaining, thanks!
Seems like there should be a video every Sunday of what libraries and frameworks to use this week.
Great, I use it in useEffect fetch funtions
The alpine-ajax plugin for alpineJS gets you pretty close to this functionality, which is nice if you like alpine already
Would love to see more like this on things like hydration and react query. What are those guys doing with suspense, hydration and RSC?
Can you give a code example after the videos, it's hard to read text on tut board as you explain
Can you please guide me how to convert existing large react app to server side?
You make easy to understand thanks
Saw this trick few weeks ago on X.
I love you bro🫂
Great tip! I saw this somewhere, too. Probably a post by you haha. I like this pattern a lot.
one of the most common uses for abortController Signals, would be the classic annoying fetch inside your useEffect in a customHook. Initialise you abortController.signal and kill it in the clean up. Or just use a fetch library like a pleb
you're smart
This is like thymeleaf
Does it persist if the process restarts? That would be pretty damn awesome. Free KV store 😮
Yep, sure does! localStorage lets you specify the destination SQLite file with a CLI flag. You can also tie to the process memory with sessionStorage
The slowdown isn't due to dependencies; it's because that node would launch as an npm subprocess
Lets just not use js on the server
So they reinvented cookies?
What language is this
Me a non-programmer: I like your funny words magic man.
Lol how u end up here
I still want to see a real interface built with HTMX; so far, I’ve only seen these weak examples that even a React intern would be embarrassed to show.
How does the progressive enhancement work here? Does astro setup a form action when pre-rendering the page?
When using React 19: all form actions will fallback to the server, and reload the page with new data. Progressive enhancement just works (TM) When using other frameworks: you can pass an action directly to a form's `action` attribute. This will add a little ?queryParam to tell the server which action to call for progressive enhancement
So it's literally just a SQLite DB. Nothing we can't already implement with the sqlite3 package, which offers more features and a better API. I don't know who thought it was wise to copy what a browser environment has into a server environment.
A goal of the NodeJS project is to be compliant with browser APIs wherever possible. They decided localStorage was part of that, since it lets library authors write code for the browser that also works on the backend. I agree it's a bit unorthodox, but it's pretty powerful!
@@bholmesdev is that a new goal? they used to be perfectly happy rolling their own incompatible APIs until bun (earlier deno, but that didn't seem to make much of a difference) came around.
This might he a dumb question as someone who doesnt use node often, but is it being used as cache on the clientside or is it storing the KV pairs server side? Couldn't you already do this by creating a simple function that writes to disk
Ah, yes it's storing the KV server side using a SQLite table. This is a bit more durable than a `writeFile()`, since you can choose where that sqlite file lives with the --localstorage-file flag.
caching will be useful in this type of storage
💚
How can i be cool like you?
JavaScript is evil
Clickbait bull. Bun has SQLite as well..
Umm… debounce?
Idk why I never thought of streaming in the way that you do. Thank you. But is react really streaming tho?? Can you time what renders first? How do these use cases work?
they just stole it from bun lmao
Bunjs keeps everyone on their toes😂
I swear Ben your short vids usually have so much impact💯
What if I want to host my project in a provider that either conteinerize my app or run on serverless functions, can I still use an in memory database?
@@Cyandog hm, I’d be very careful with an in memory database. Regardless of your infrastructure, that database will reset every time you redeploy. I’d recommend a SQLite file. For serverless, you’ll need a connection *to* a hosted SQLite file (say with Turso)
@@bholmesdev Thanks for the reply!
ok
Fantastic
amazing work. Thank for helping of you.
In the documentation in the Routes part of Astro, it is very conventional the way it is done in NEXT, I simply hate the applied convection, it completely takes away the freedom of customizing the url, I use Vitejs and React with react-router-dom, I was able to configure it smoothly routes like any-coisas.localhost:3000/ or any-coisas.localhost:3000/slug,,, this in astro is quite annoying to configure and I don't even know how the urlr prefix would be done, something like maria.localhost: 3000/home I like having the freedom to define my routes and not pass data through parameters in the url but control via state... This was the annoying part of Astro that I've seen so far