Ben Holmes
Ben Holmes
  • 127
  • 1 497 811
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
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 Suspense from scratch!
zhlédnutí 7KPřed 6 měsíci
React Suspense from scratch!
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

Komentáře

  • @sujayxaradhya
    @sujayxaradhya Před 3 hodinami

    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.😢

  • @SirXtC
    @SirXtC Před 10 hodinami

    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!

  • @buzzeins
    @buzzeins Před 6 dny

    😂 Ben, you are my hero!

  • @St0rMsk
    @St0rMsk Před 6 dny

    This short aged like fine milk 🤣

  • @JoshuaMoinzadeh
    @JoshuaMoinzadeh Před 10 dny

    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!

  • @jamesdim
    @jamesdim Před 12 dny

    I can't take you seriously without a turtleneck!

  • @zanec7202
    @zanec7202 Před 14 dny

    This is the best video on CZcams No questions asked.

  • @scientificshiv
    @scientificshiv Před 14 dny

    Not true or valid anymore

  • @user-us8pk3jj8c
    @user-us8pk3jj8c Před 19 dny

    How about react with million.js??

  • @gaastonsr
    @gaastonsr Před 20 dny

    Hey! thanks for the video. Did you create those snippets or are you using an extension?

  • @xen2297
    @xen2297 Před 26 dny

    Seriously. What a terrible and irresponsible video

  • @HurmaanAhmed
    @HurmaanAhmed Před 27 dny

    My man built Next in 20 mins.

  • @user-hi6bh4ef7s
    @user-hi6bh4ef7s Před 27 dny

    this is really great explaining, thanks!

  • @andyengle
    @andyengle Před 27 dny

    Seems like there should be a video every Sunday of what libraries and frameworks to use this week.

  • @dhruvverma1001
    @dhruvverma1001 Před 29 dny

    Great, I use it in useEffect fetch funtions

  • @benbowers3613
    @benbowers3613 Před 29 dny

    The alpine-ajax plugin for alpineJS gets you pretty close to this functionality, which is nice if you like alpine already

  • @shawnmclean7707
    @shawnmclean7707 Před měsícem

    Would love to see more like this on things like hydration and react query. What are those guys doing with suspense, hydration and RSC?

  • @FS-yq9ef
    @FS-yq9ef Před měsícem

    Can you give a code example after the videos, it's hard to read text on tut board as you explain

  • @code_lab_9994
    @code_lab_9994 Před měsícem

    Can you please guide me how to convert existing large react app to server side?

  • @code_lab_9994
    @code_lab_9994 Před měsícem

    You make easy to understand thanks

  • @imamansoni
    @imamansoni Před měsícem

    Saw this trick few weeks ago on X.

  • @crim-son
    @crim-son Před měsícem

    I love you bro🫂

  • @xorlop
    @xorlop Před měsícem

    Great tip! I saw this somewhere, too. Probably a post by you haha. I like this pattern a lot.

  • @vicentealmeida1336
    @vicentealmeida1336 Před měsícem

    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

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 Před měsícem

    you're smart

  • @jaja7830
    @jaja7830 Před měsícem

    This is like thymeleaf

  • @gerhardsteenkamp562
    @gerhardsteenkamp562 Před měsícem

    Does it persist if the process restarts? That would be pretty damn awesome. Free KV store 😮

    • @bholmesdev
      @bholmesdev Před měsícem

      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

  • @xseman
    @xseman Před měsícem

    The slowdown isn't due to dependencies; it's because that node would launch as an npm subprocess

  • @HabibiGib
    @HabibiGib Před měsícem

    Lets just not use js on the server

  • @DoubleBob
    @DoubleBob Před měsícem

    So they reinvented cookies?

  • @horatiuscocles8052
    @horatiuscocles8052 Před měsícem

    What language is this

  • @nawafmostafa4924
    @nawafmostafa4924 Před měsícem

    Me a non-programmer: I like your funny words magic man.

  • @danielsoares1608
    @danielsoares1608 Před měsícem

    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.

  • @NipunaGunathillake
    @NipunaGunathillake Před měsícem

    How does the progressive enhancement work here? Does astro setup a form action when pre-rendering the page?

    • @bholmesdev
      @bholmesdev Před měsícem

      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

  • @69k_gold
    @69k_gold Před měsícem

    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.

    • @bholmesdev
      @bholmesdev Před měsícem

      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!

    • @Tigregalis
      @Tigregalis Před měsícem

      ​@@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.

  • @krishp1104
    @krishp1104 Před měsícem

    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

    • @bholmesdev
      @bholmesdev Před měsícem

      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.

    • @trsofttech5147
      @trsofttech5147 Před měsícem

      caching will be useful in this type of storage

  • @afuzzybearsyoutubechannel2812

    💚

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 Před měsícem

    How can i be cool like you?

  • @MasonSchmidgall
    @MasonSchmidgall Před měsícem

    JavaScript is evil

  • @chef2654
    @chef2654 Před měsícem

    Clickbait bull. Bun has SQLite as well..

  • @syedhaider0916
    @syedhaider0916 Před měsícem

    Umm… debounce?

  • @teenytinyteetee
    @teenytinyteetee Před měsícem

    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?

  • @kollpotato
    @kollpotato Před měsícem

    they just stole it from bun lmao

  • @solomonogu1393
    @solomonogu1393 Před měsícem

    Bunjs keeps everyone on their toes😂

  • @RonnieDenzel
    @RonnieDenzel Před měsícem

    I swear Ben your short vids usually have so much impact💯

  • @Cyandog
    @Cyandog Před měsícem

    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?

    • @bholmesdev
      @bholmesdev Před měsícem

      @@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)

    • @Cyandog
      @Cyandog Před měsícem

      @@bholmesdev Thanks for the reply!

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 Před měsícem

    ok

  • @chimbu4822
    @chimbu4822 Před měsícem

    Fantastic

  • @minhđoàncông
    @minhđoàncông Před měsícem

    amazing work. Thank for helping of you.

  • @alexon2010
    @alexon2010 Před měsícem

    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