I'm Finally Excited About Web Dev Again

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 104

  • @PixyTech
    @PixyTech Рік тому +8

    This is literally web forms in 2005 when i started web dev. Fashion made a circle.

  • @stephengruzin
    @stephengruzin Рік тому +38

    I rrcently learned that you can invalidate the page data. So when adding a new todo, you can just use:enhance={()=>invalidateAll()} and the todos get automagically refetched without reloading the whole page.

    • @fakenameforgoogle9168
      @fakenameforgoogle9168 Рік тому

      just `use:enhance` alone would do that as well

    • @abd-ulbasit
      @abd-ulbasit Рік тому +2

      but in that case, it would make a whole new fetch request to the server. The way Ben is doing, help to reduce unnecessary load on server

    • @henri470x
      @henri470x Рік тому

      @@abd-ulbasit well said sir.

    • @stephengruzin
      @stephengruzin Рік тому +1

      @@abd-ulbasit What ben is doing is a normal post request. Not only does the server handle the post request, it also has to resend all the static assets and JavaScript bundle. By using enhance, you only need to invalidate the data and not refresh the whole page.

  • @datadi
    @datadi Рік тому +15

    I'm honestly surprised at how the universe is working right now. I just started a svelte + golang project a few days ago, and watched a video or two of yours on Golang development. Now I find a video on this from you? Sick!

    • @JorgeMartinez-xb2ks
      @JorgeMartinez-xb2ks Рік тому +1

      Same feeling here, it's seems the universe is deterministic.

  • @KevinVandyTech
    @KevinVandyTech Рік тому +10

    I used svelte 2 years ago for a side project and it really got me back into loving web development again. I haven't been able to use it since though. Seem to be forever stuck deep in react land now.

    • @cantstudy2421
      @cantstudy2421 Рік тому +1

      it's sad that corporate prefer react while svelte really will boost productivity with it simple way of thinking

  • @tcurdt
    @tcurdt Рік тому +29

    You do know that's pretty much the old way of doing things with just some star dust on top. That said - the star dust is pretty cool :)

    • @bmdavis419
      @bmdavis419  Рік тому +28

      The older I get the more I think they just got this right in the 90s and we just made things worse for very specific problems most people don’t have

    • @tomich20
      @tomich20 Рік тому +5

      Exactly what I love about sveltekit. Jump straight from jquery to svelte skipping all the other garbage Js frameworks. i only hope more people use it.

  • @austincodes
    @austincodes Рік тому +22

    I'm pretty far into the Nextjs ecosystem but I'm Sveltekit curious

  • @raphael7781
    @raphael7781 Рік тому +2

    been a Rails fan since 15 years ago. Did more backend in the last 5 years. But yeah, Sveltekit made me excited about web dev again like Rails did 15 years ago. Impressive.

  • @deado7282
    @deado7282 Рік тому +12

    I love my current Stack!
    Go + Postgres + SQLC + Svelte (+ Tauri).
    Im not using Kit if there is no reason to though.
    This constant "upselling" to meta-frameworks is just annoying.
    Probably because they want you to deploy on the edge with vercel.
    I get very decent performance just throwing everything containerized on Hetzner VPS's.
    It's multible times cheaper than anything else.
    RAW SQL is also the way to go for me. Those API's for SQL constantly hit "edge cases" where you have to build workarounds for simple transactions.

    • @papajohnsuk5965
      @papajohnsuk5965 Рік тому +1

      how do you handle optional fields in sqlc, for example when making a patch request, only certain fields need to be sent

    • @deado7282
      @deado7282 Рік тому +2

      ​@@papajohnsuk5965 You can either use boolean flags or nullable parameters.
      In the SQLC documentation you can read more about this at HOW-TO GUIDES/Naming parameters/Nullable parameters
      Edit: The first method would look like this:
      UPDATE todos
      SET
      title = CASE
      WHEN $1 = TRUE THEN $2
      ELSE title
      END
      done = ...
      WHERE ...
      RETURNING *;

    • @bmdavis419
      @bmdavis419  Рік тому +2

      Yea u definite do not need a meta frame work, I personally like having it but it’s not needed

    • @phoneywheeze
      @phoneywheeze Рік тому

      what's sqlc?

    • @deado7282
      @deado7282 Рік тому +1

      ​@@phoneywheeze it's a compiler
      U write vanilla SQL and it will create a type safe data-access-layer using the standart Go SQL standard library
      you will get structs for the tables (your models)
      and a method for each querry (+ a params struct that defines the params for the querrie)
      The nice thing about it is that you still have vanilla SQL without abstractions on top of it.
      It also saves you from all those stupid mistakes you can make when writing SQL (typos & syntax)
      It's another option to interact with a database additionally to
      ORM's, vanilla or the SQLx thing Ben showed in his previous videos

  • @malipetek
    @malipetek Рік тому +2

    I had similar experience 2 weeks ago. I said to myself "This should have been the web dev all along". But now I am back to nextjs because of a UI library I should use.

  • @massy-3961
    @massy-3961 Рік тому +10

    Well it’s absolutely worth it to use a meta framework for actual web apps as seo and robots require contentful html. If your planning on building an internal tool or a desktop using tauri or electron that doesn’t require seo and robots to understand them then just throw that meta framework out the window and use svelte by itself and Golang as the backend. Perfectly reasonable.

    • @xijinping5064
      @xijinping5064 Рік тому

      Couldn't have said it better!

    • @dandogamer
      @dandogamer Рік тому +1

      The only reason I can think of using sveltekit in a desktop app is to simply the routing. If you have a complex app such as a game with multiple levels/scenes. Clean up is really simple by just loading a seperate endpoint.

    • @massy-3961
      @massy-3961 Рік тому

      @@dandogamer lol just use svelte routing or routify, I’m not even sure if it’s possible to run a meta framework on electron but I’m positive it’s not applicable with tauri. Also using a whole server for one user on a desktop app would be wack but yeah essentially your right routing is good but I think sveltekit would be complete overkill for just that.

    • @dandogamer
      @dandogamer Рік тому

      @@massy-3961 haha I was trying to clutch straws with that one

    • @guillaume_s
      @guillaume_s Рік тому

      I think even for internal tools using Sveltekit makes sense, as it adds a real opinionated structure to your Svelte app and for a company project working on a team it can benefit from it, as it adds a bunch of useful features (and default routing). I am personally building at my company a project based on Sveltekit frontend + Spring boot backend API in Kotlin to avoid boilerplate.
      BTW you can make SvelteKit work only client side by disabling Server Side Rendering globally, and for me it's better than just using Svelte as it's basically Svelte SPA + the structure of SvelteKit. The only downside is that you miss access to SvelteKit features and libraries that work with server side, so for now I am using the same setup as in this video.

  • @MerkieAE
    @MerkieAE Рік тому +2

    i love sveltekit so much. i mostly use it just standalone with prisma for an ORM. i should probably branch out more and learn how to write backends in go

  • @TedoHamTole
    @TedoHamTole Рік тому +1

    I started working with this stack a year ago never been relaxed like this. thanks for this video

  • @DevlogBill
    @DevlogBill Рік тому

    I noticed the same thing with React [ timeline | 15:00 ], they are at this moment going through a transition and starting to do things differently. When I began learning React was when the changes began. The moment I began to kind of understand the useState and useEffect was when out of nowhere these changes occurred. I got turned off Because of this and gave up and decided to jump onto Android and even did some Django for the backend for my Android app which I am working on.
    But anyways, congratulations on your project! I am very impressed with what you demonstrated; it is inspiring to see what you created so far. I hope to reach the level of mastery you have. Very impressive work. You are very skilled at your craft.

  • @lopo889
    @lopo889 Рік тому +2

    A suggestion, you may increase the ide font size because it will help a lot for people who watch from phone 😊

  • @greendsnow
    @greendsnow Рік тому +2

    I tweak Pocketbase and use SSG + hydration.
    I'm not into Edge craze.

  • @qrthack
    @qrthack Рік тому +1

    What theme VSCode are you using?

  • @denniszenanywhere
    @denniszenanywhere Рік тому

    I have quite an experience in my work in marketing but I am so excited for Svelte. I would trade my marketing work for a low salary in a different country just to do what you do. I'm learning more JS for now.

  • @Darkurge666
    @Darkurge666 Рік тому

    I'm old enough to have started with the web in the late 90's and watching this, is giving me nostalgia... XD

  • @techinsider3611
    @techinsider3611 Рік тому +4

    I use django with sveltekit ❤

  • @igortalic2021
    @igortalic2021 9 місяців тому +1

    What a flashback to when I was doing php 12 year ago 😁 But this is great! Keep up the awesome videos! 😊

    • @igortalic2021
      @igortalic2021 9 місяців тому +1

      And the problem before with form actions was that you had to refresh the hole page, so we moved to client setup and had a validation on client so the feedback is faster, but now it's just small html being sent back and the hole page is not refreshing, so just validate on the BE 😁 really nice!

  • @charlesbcraig
    @charlesbcraig Рік тому +3

    Call me crazy but I just started learning F# yesterday and am really enjoying it (Been reading books on functional programming this year and really love it). I may try their SAFE stack. If my delusion wears off, I’ll run back to Go land and hop on this stack haha

    • @robertmrobo8954
      @robertmrobo8954 Рік тому +2

      😂.. that's what made us Engineers in the first place, not afraid to get our finger tips dirt.

  • @OldKing11100
    @OldKing11100 Рік тому

    I'm running into this weird split where I do like SvelteKit with Go Fiber backend, but it's a pain to deal with two servers. You can make beautiful websites with SvelteKit and SkeletonUI, but for laughs I'm going to give HTMX and Picocss in Fiber. If I can make it 90% pretty and reactive I might split my projects types in two where I use either SvelteKit only or Fiber only.

  • @parzev
    @parzev Рік тому +4

    Only thing missing from svelte is shadcn/ui library. I know that there is a svelte port but I need data tables and it is not available yet.

    • @ArcticPrimal
      @ArcticPrimal Рік тому

      Yea Im not a svelte user but i came across the video "The Anti Component Library" it was cool

    • @camoman1000
      @camoman1000 Рік тому

      There's tanstack table, also drizzle orm just made a studio with svelte could leverage to see what they did for their data table

    • @one2play4
      @one2play4 Рік тому +1

      Yeah the data table is built on top of tanstack table which has a svelte adapter. It shouldn't be too hard to port, I'd expect it co come out soon

    • @dandogamer
      @dandogamer Рік тому

      The cool thing about svelte is that many vanilla js libraries work with it. Hope that expands your search beyond the "svelte-*" libraries

    • @enisbu
      @enisbu Рік тому

      It's available now btw (look into the docs of shadcn-svelte)

  • @SilvestreVivo
    @SilvestreVivo Рік тому +4

    I moved 4 years ago from React to Svelte. No regrets... Svelte makes my life easier and happier.

  • @sevindis
    @sevindis Рік тому +1

    Great video, thanks for the insight. However, I found background music to be load and really annoying, you might consider it for future videos.

    • @bmdavis419
      @bmdavis419  Рік тому

      Yea I definitely screwed that one up lol, it was way too loud I edited this waaaaay to late at night

  • @bonniesimon14
    @bonniesimon14 Рік тому +1

    It would be cool if the terminal is not taking up half of the screen xD

  • @good-dev-student
    @good-dev-student Рік тому +1

    Today, I made a new friend and met a new teacher. 🎉❤
    I have an opinion. I believe it would be great if you added validation to the inputs. I'm not sure how to do it, but I think it would be beneficial to include it in both the front end and back end. 😊 Would you consider implementing this?

  • @BabyPigmanRobot
    @BabyPigmanRobot Рік тому +1

    I noticed that you're hiding your id input with a CSS class. Is there any reason not to use ?

  • @memelol1859
    @memelol1859 Рік тому +7

    Quick correction: excited not exited. All good we all make small mistakes

    • @bmdavis419
      @bmdavis419  Рік тому +12

      WHY DON'T THEY PUT SPELL CHECK IN THE TITLE BOX I PHYSICALLY CANNOT SPELL

    • @johnychinese
      @johnychinese Рік тому +1

      ​@@bmdavis419God Damn youtube

  • @roshawnbrooks4091
    @roshawnbrooks4091 Рік тому +1

    Did you use a tutorial to learn before building? Or you just googled as built?

  • @good-dev-student
    @good-dev-student Рік тому

    3 days no news video, i miss you man ❤😢

  • @techinsider3611
    @techinsider3611 Рік тому

    I think it has a little problem
    Like
    A request comes to the frontend server, and from there it goes to backend server if both servers are different that is an overhead.

    • @driden1987
      @driden1987 Рік тому +5

      I’m not a frontend guy, I dont really understand these metaframeworks but my impression is he ended up using 2 backends in this video

  • @Refresh5406
    @Refresh5406 Рік тому

    This is a great approach. Isomorphic javascript is one of the worst things to ever happen to the web. Properly separating frontend and backend and using appropriate technologies for each is the best way to go.

  • @ripple123
    @ripple123 Рік тому +1

    am i right in saying that in sveltekit (and other frameworks) that pages are either hydrated or not? i.e SSG vs SSR with CSR taking over in the browser. What about your thoughts on the Island Architecture for frontend, i.e partial hydration? The framework astro does this and you can use svelte for the interactive islands

    • @ripple123
      @ripple123 Рік тому

      hmmm it seems astro needs to use SSR mode to use form actions

    • @bmdavis419
      @bmdavis419  Рік тому

      Partial hydration is really cool and probably the future, for now svelte is just ssg or ssr which imo is fine, I would bet sveltekit 5 is gonna do something like that

  • @matthewstraughn3539
    @matthewstraughn3539 Рік тому +2

    Yes!!! Svelte and golang for the win!!!

  • @hipertracker
    @hipertracker Рік тому

    The only problem with Svelte is lack of rich and mature UI components like Quasar, Vuetify, PrimeVue, PrimeNg, PrimeReact. For this reason I prefer Nuxt with Quasar. I have no time to reinvent the will and dig into css or tailwindcss

    • @bmdavis419
      @bmdavis419  Рік тому

      Skeleton UI is really really good

  • @naranyala_dev
    @naranyala_dev Рік тому +1

    thanks Ben

  • @LuciusAugustusRomanusInvictus
    @LuciusAugustusRomanusInvictus Рік тому +5

    Htmx + go backend will be the future

    • @bmdavis419
      @bmdavis419  Рік тому

      Yea we’re gonna be trying this sometime this month

  • @xatatech
    @xatatech Рік тому

    How did you handle infinite scrolling?

  • @erassylzh5658
    @erassylzh5658 Рік тому

    Did you consider of using phoenix (elixir) instead of go?

  • @viniciusrangel544
    @viniciusrangel544 Рік тому

    i just release 2 softwares, one using next13 and another one with sveltekit and sveltekit looks pretty better right now, beside next13 router its super slow, which is annoying.
    and all backend go

  • @emmanuelU17
    @emmanuelU17 Рік тому +4

    You got a thing for uploading videos past 1AM EST

    • @bmdavis419
      @bmdavis419  Рік тому +2

      My internet takes 2 hours to upload videos and I work very weird hours so it has kinda become the norm lol

    • @Glitch-txs
      @Glitch-txs Рік тому +1

      3am on my end, still watching 😁😁

    • @stephengruzin
      @stephengruzin Рік тому +2

      It's worth the wait for me

    • @twitchizle
      @twitchizle Рік тому +1

      ​@@bmdavis4191mbps

  • @yjawhar
    @yjawhar Рік тому

    Yes, please that video about combining SK and Go instead of just Svelte! JavaScript would be a bottleneck, no?

  • @universe_decoded797
    @universe_decoded797 Рік тому

    The problem is that there are no jobs for svelte in most countries.

  • @edrissndiaye
    @edrissndiaye Рік тому +1

    LFG 💪🏾

  • @DanteMishima
    @DanteMishima Рік тому +1

    Your background music at the start was distracting

    • @bmdavis419
      @bmdavis419  Рік тому

      Yea that was an editing screw up, will fix it in the future!

    • @DanteMishima
      @DanteMishima Рік тому +1

      @@bmdavis419 Alright, alright :)

  • @dongdoriya
    @dongdoriya Рік тому

    You are watching the video well. I have a question.
    Why is the configuration of the go fiver server different from the one you uploaded, 'ua-cam.com/video/Gktt4w74LO4/v-deo.html'?
    I know this is a video uploaded by upgrading the existing 'ua-cam.com/video/6C-2R92L01Q/v-deo.html'.

  • @nathanhettige8465
    @nathanhettige8465 Рік тому

    I'm excited for you

  • @sunny7268
    @sunny7268 Рік тому

    why do you prefer it over solid?

  • @nixoncode
    @nixoncode Рік тому

    New project excitement

  • @readywhen
    @readywhen Рік тому

    Love sveltekit!!

  • @hamm8934
    @hamm8934 Рік тому +1

    I haven’t tried svelte, but the thought of yet another JavaScript runtime environment is not appealing.
    Node and the browser is more than enough environments, I don’t need to learn another environment which is framework specific. I’ll stick with Vue. :)

    • @fakenameforgoogle9168
      @fakenameforgoogle9168 Рік тому

      there's no new environment

    • @hamm8934
      @hamm8934 Рік тому

      @@fakenameforgoogle9168 the compiler might as well be a new environment. It’s not 100% v8 JavaScript

  • @janvarga7547
    @janvarga7547 Рік тому

    you must have not sen solid or qwik

  • @botyironcastle
    @botyironcastle Рік тому

    best

  • @zainbaloch4850
    @zainbaloch4850 Рік тому

    svelte is the best

  • @leandrocampos8760
    @leandrocampos8760 Рік тому +2

    What its the point to replicate all that back-end logic, using literally native browser functions just to "do not refresh the page"? any back end language + MVC would make the same thing, even more complexe steps and flows on the frontend (with useCase Pattern + DDD), and if you need some interaction on the client, why not just add some little bit of js code instead using this heavy js framework runtime with re-rendering on the front end, even with "compilation", "its just js on the client-site" ? just to "not refresh" the page? i know that's is why people are saying that next js, sveltkit, and all this metaframework its becoming php, this old, realiable techs past the test of the time, and now, here we are, svelte kit + go for me, dont make any sense, Simple SPA's for APPS on the client (hybrid mobile apps and PWA are an amazing use case). PHP, Go, or anything and just the minimal javascript, for the real full stack.

  • @edhahaz
    @edhahaz Рік тому

    Sorry but praising a js framework for "no js on the client" capabilities is just a bad meme. Sure that might be true in this case, then what? do you build for nojs users? good luck with that! Problem is it's TOO HARD to predict/understand when the functionality will be or not javascript, gets messy real quick.

    • @bmdavis419
      @bmdavis419  Рік тому

      I probably phrased it wrong then because what I meant to praise was MINIMAL js. I am not a no js guy, I am a minimal js guy and Svelte is perfect for that with progressive enhancement.

  • @kdiffin
    @kdiffin Рік тому

    bro backtracked on his opinion in 2 days

  • @jawyor-k3t
    @jawyor-k3t Рік тому

    you look like ben award and mizkif mixed together. sorry i am in a bad mood