SvelteKit | Rich Harris | ViteConf 2022

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 104

  • @dr-maybe
    @dr-maybe 2 года назад +130

    Everything about svelte(kit) just screams developer experience. Props for building it, Rich!

    • @MrEnsiferum77
      @MrEnsiferum77 2 года назад

      This one does not make sense, because not matter how good some framework is, first u are working on current app in different framework and if u are from 3rd world country, probably u will work on app made with svelte kit, after 2-3 from now, when the app is already dead and badly developed from other people testing and play around the framework just for CV entries

    • @danielbolivar9134
      @danielbolivar9134 Год назад +2

      @@MrEnsiferum77 wtf?

    • @MrEnsiferum77
      @MrEnsiferum77 Год назад

      @@danielbolivar9134
      Ok here is explanation in nutshell:
      I'm working on a project in 3rd world country. The project was inherited from 1 developer that was jerking on the project, and probably have some weird fetish too. After his baby playground, he runaway from the company and now after puting crap and crap and crap and crap code on frontend, because client thinks more people, more developers on FE, even he works backend (hey!, how smart, right?)
      After the project is in post mortem stadium, we are returning the app from the dead, for 2+ weeks, and u know what, u get new API from stupid backend developers, just fo fun, instead solving performance issue. And now, go to your church and let everyone knows svelte is the new kid in the town because someone made todo app on youtube.

    • @pengain4
      @pengain4 Год назад

      I was truly amazed when tried Svelte for the first time. It seems so elegant and simple that I was asking myself all the time: "why didn't humanity create it much earlier and was doing `this.foo.bind(this)` instead".

    • @IStMl
      @IStMl Год назад +1

      @@MrEnsiferum77 can you write in English please?

  • @adityakadam2256
    @adityakadam2256 2 года назад +67

    The creator himself knows how to simplify things while explaining them. No doubt they will be reflected in the creativity of the framework. Super simple and powerful features. Loving the power of Svelte Kit✌Thanks for giving us such a simple to use powerful framework.

  • @jaykhan_sound
    @jaykhan_sound 2 года назад +29

    Sveltekit is very intuitive and simple. Really enjoying it so far!

  • @joppekoers3992
    @joppekoers3992 2 года назад +4

    That was an amazing presentation!
    Super clear, to the point and concise. This is up there with my favourite tech videos!
    The single super small note I could maybe add is that the sverdle part was a very little bit rushed. But then again: it also makes me want to find out how it works for myself.

  • @vasiovasio
    @vasiovasio 2 года назад +15

    Excellent presentation, Rich!
    It will be a good idea if you update the Documentation with these Must Have code snippets - CSRF tokens, XSS protection, Security Header policies, and everything other related to Security because many people want to use SvelteKit for serious projects with user authentication, database access, and SvelteKit must offer out of the box features like a Laravel and Django following the best practices.
    I think Sveltekit is the Only JS framework right now that do it in the right Way - Write Less code and have a Much More Joyful Developer Experience!

    • @_danisson
      @_danisson Год назад

      I agree with you. The documentation should be updated

  • @baka_baca
    @baka_baca 2 года назад +9

    By comparison, both React and Vue have taken an enormous amount of time to onboard with as compared to Svelte. I'd say I was up and running with Svelte in about 3-4 hours. In those few hours, I was about as productive as I was with React or Vue when I had been using each for a number of months. I am so excited to see SvelteKit 1.0 has dropped and I hope I can find the time to build something with it soon! Seems like it may have a lot of the missing features needed to even consider it at my job!

  • @jitxhere
    @jitxhere 2 года назад +21

    Quite excited for 1.0
    Svelte is really easy and even ships less javascript than Nextjs.
    I know Nextjs is more mature and more feature packed but still not every project needs that much of power.
    Svelte is a really a good fit and would developers and companies adopting it.

  • @mariners_platter
    @mariners_platter Год назад

    Vite and Svelte are 2 of the coolest tech tools I have discovered in the last 5 years

  • @adriman2
    @adriman2 2 года назад +7

    Can't believe it's finally in 1.0 😭 so good

  • @tedwardtiny
    @tedwardtiny 2 года назад +8

    New to svelte(kit) and really enjoying it.
    One thing I’m confused about is the type generation. Rich mentions at 11:49 that svelte creates the types behind the scenes but I can’t figure out where that happens. I don’t see new types being generated when I add code that I’d like to type.
    Where can I read more about types and svelte? Thanks!!

    • @SamGreeningSJG
      @SamGreeningSJG 2 года назад +5

      Types are generated for load functions, page data etc when the dev server is running. They are placed under the .svelte-kit directory (it's something like .svelte-kit/generated).

  • @itsthesteve
    @itsthesteve 2 года назад

    Congrats on the 1.0 milestone, and thanks for sveltekit!

  • @yuliankarapetkov
    @yuliankarapetkov 2 года назад +1

    SvelteKit is the best framework ever.

  • @theSlavenIvanov
    @theSlavenIvanov 2 года назад +2

    Have been fooling around with SvelteKit for a while now. Looks fantastic so far! The only thing I am missing is server-side debugging with source maps :)

  • @c3vette47
    @c3vette47 Год назад

    This looks amazing.

  • @jtwozniak
    @jtwozniak 2 года назад

    Incredible project, thanks!
    That cookie state example on a server side is amazing 10:54

  • @harishdurga
    @harishdurga 2 года назад +3

    Simple yet powerful 👌

  • @alexodan
    @alexodan 2 года назад

    it there a repo for this presentation?

  • @DamonMedekMusic
    @DamonMedekMusic Год назад

    Great video, I do wish there was way more on how vite.config and svelte.config worked. I'm trying to build a static site AND a dynamic site with backend into two separate build folders and its not easy to understand documentation on that. Or if its even possible to create a custom output path.

  • @ArchPolandPL
    @ArchPolandPL 2 года назад

    Can we get a source code too look through this small app?

  • @opalralph6607
    @opalralph6607 Год назад

    Does it support BOOSTRAP?

  • @meyou118
    @meyou118 2 года назад

    does it have server side debugging?

  • @parkerAmv
    @parkerAmv 2 года назад +1

    Now i have using sveltekit for my project. I hope in next version of sveltekit have websocket support's

  • @daniedmola7465
    @daniedmola7465 2 года назад +2

    The component structure is really similar to vue js which makes it’s very for beginners to pickup

  • @beatsbycf
    @beatsbycf 2 года назад

    I wish sveltekit had endpoint layouts (per endpoint hooks)

  • @cannyaii
    @cannyaii 2 года назад

    Does anybody know how the "hover component to open in vscode" is possible?

    • @MrEvilGalith
      @MrEvilGalith 2 года назад +1

      Just a guess:
      The development server adds the feature to your page, on components selection it communicates with vscode debug api to make the match

    • @cannyaii
      @cannyaii 2 года назад

      @@MrEvilGalith in all cases, a top notch DX
      I'm wondering if it's possible in neovim

  • @tubecrawler8532
    @tubecrawler8532 2 года назад

    Is there a way to post a form action without any form or input tag, just within a JS function? This would make posting data to the server so much easier and more flexible.

    • @danvilela
      @danvilela 2 года назад

      You can without js though. Really easy

  • @ChrisJaydenBeats
    @ChrisJaydenBeats 2 года назад

    Im so happy 1.0 is out❤!!

  • @_Amilio_
    @_Amilio_ 2 года назад

    Legendary 👌

  • @zhanezar
    @zhanezar 2 года назад

    Love you Rich !!

  • @maskman4821
    @maskman4821 2 года назад

    Awesome 🤩

  • @flogginga_dead_horse4022
    @flogginga_dead_horse4022 2 года назад

    great overview

  • @bigmistqke
    @bigmistqke 2 года назад

    6:15 lol. most of the time when i navigate to another page, i do not want to select a needle in a haystack of the same names.

    • @danisimeonov4759
      @danisimeonov4759 2 года назад +2

      You wouldn’t have to, the folder name is the “unique” page name you’re looking for. Can just search that and the folder with your +page and other files will be on top.

    • @bigmistqke
      @bigmistqke 2 года назад

      @@danisimeonov4759 fair point!

  • @kashnigahbaruda
    @kashnigahbaruda 2 года назад

    The way he throw acid and stabbed Remix in the face was pretty respectful. However, I wish sveltekit had a couple of features that Remix does.
    Having said that, SvelteKit is likely my next app.

    • @cud0s
      @cud0s 2 года назад

      Which features from remix would you like sveltekit to have? It’s interesting to see how many frameworks are consolidating on this new approach that is very similar between them

  • @pasizdobrekuce
    @pasizdobrekuce 2 года назад +3

    Wow! inspector: true; 😲

  • @0xedb
    @0xedb 2 года назад +6

    1.0 loading

  • @johnnash143
    @johnnash143 2 года назад +1

    finding a good svelte tutorial is not easy. that's what's holding me back from learning it, that i might not find resoucres to fix bugs

    • @IStMl
      @IStMl Год назад

      search for crash courses

  • @pixel7038
    @pixel7038 2 года назад +1

    I’m stalking svelte kit 1.0 milestone page

  • @michaelbitzer7295
    @michaelbitzer7295 2 года назад +2

    We need websocket support

    • @anagnose
      @anagnose 2 года назад +1

      Just run a second server

  • @leonardodeslf
    @leonardodeslf 2 года назад +3

    I feel bad for all those people who are still working with jQuery 😅

  • @zorolindo
    @zorolindo 2 года назад +6

    9:37 gosh my dirty mind

  • @ThannMalin
    @ThannMalin 2 года назад +1

    Man he types very fast

  • @modernkennnern
    @modernkennnern 2 года назад +1

    I didn't realize Svelte was developed by Vercel. Vercel does a lot of huge things nowadays, don't they.

    • @alexandrodisla6285
      @alexandrodisla6285 2 года назад +9

      Rich Harris develop svelte, sapper (abandoned) and sveltekit with the core team.
      Vercel offer them to come and work fulltime on svelte and sveltekit

    • @denniszenanywhere
      @denniszenanywhere 2 года назад +4

      @@alexandrodisla6285 I believe Vercel is only funding Rich to develop Svelte further. I don't think Vercel is involved in development except funding Rich.

  • @theLowestPointInMyLife
    @theLowestPointInMyLife 2 года назад +4

    I'm using Solid JS with C++ backend, good luck with your server side rendering.

    • @oceanusdigital3621
      @oceanusdigital3621 2 года назад

      Sounds like an interesting project, is it open source? I'm interested in dropping SPA's altogether and using compile time generated templates with something like htmx in front of a Rust API.

    • @theLowestPointInMyLife
      @theLowestPointInMyLife 2 года назад

      @@oceanusdigital3621 not open source no, unfortunately everyone is pretending money is important and forcing each other to have some in order to live

    • @oceanusdigital3621
      @oceanusdigital3621 2 года назад

      @@theLowestPointInMyLife Hmm, that's a strong opinion about the big picture. Also, I think I saw your comment on Theo's recent video about the rat race.
      It sounds like you've been programming for longer than I have and I like the stack that you use, would you be willing to bounce ideas off each other in a Discord or Matrix chat? Or make a friend?

    • @theLowestPointInMyLife
      @theLowestPointInMyLife 2 года назад

      @@oceanusdigital3621 Based on your github were on very similar timelines, 2017 start for me, 2018 for you. I just followed you on Github and added on discord.

  • @frog_daee
    @frog_daee 2 года назад +2

    9:39 pushy and fussy 👁👃👁

  • @elmotareal
    @elmotareal 2 года назад

    Common good? İ disagree on that, united nations has nothing to do with common good. 🇵🇸🇵🇸🇵🇸

  • @junejones7101
    @junejones7101 Год назад

    😚 promo sm

  • @alexy.3512
    @alexy.3512 Год назад

    UN... DoT.... The comparison of Vite with them is just plain idiotic.

  • @MagicNumberArg
    @MagicNumberArg 2 года назад +1

    Svelte had potential, but decision to invent a new dialect of JS kills it dead in the water. SolidJS has all of the benefits of Svelte and none of its flaws.

    • @danvilela
      @danvilela 2 года назад +2

      When solid decided to call a component “A” I stopped trying it immediately. Bad design.

    • @mileselam641
      @mileselam641 2 года назад

      $: is not "a new dialect". Also, JSX is an abomination. If you think any framework that depends on JSX has no flaws, you are either delusional or suffering from Stockholm Syndrome. HTML&CSS in JS was a bad idea 10 years ago. It's an even worse idea today. Svelte is the closest you can get to plain HTML, CSS, and JS while using a framework. This means whether you are making a static HTML site or dynamic with Svelte, it's all basically the same.

    • @MagicNumberArg
      @MagicNumberArg 2 года назад

      @@mileselam641 Svelte decided to use module exports for properies. Let me directly quote the docs "Just like $:, this may feel a little weird at first. That's not how export normally works in JavaScript modules! " It only takes trying to make your first generic component or component with union props to realise, just how bad the idea is.

    • @mileselam641
      @mileselam641 2 года назад +2

      @@MagicNumberArg You are trying to write HTML&CSS in JS like React and therefore "fixing" a problem that shouldn't exist in the first place. When HTML is your base mental model to start with, this largely becomes a non-issue. And yes, export has been overridden. So now you've listed two bits of syntax that you equate to a whole distinct dialect while completely ignoring the cognitive overhead of createSignal(…) with [foo, setFoo], props object access, onCleanup(…) handlers, createEffect(…) to track reactivity, a render(…) function just to show some HTML, string template literals to use the framework, worrying about when to use createMemo(…) or not, explicitly subscribing and unsubscribing to stores, etc. But sure... Svelte redefined $: and export. 🙄 I reiterate: any framework that relies on JSX and other React-like library nonsense is fundamentally flawed. It's like Subversion's early motto "CVS done right" where CVS was a fundamentally broken model to start with.

    • @MagicNumberArg
      @MagicNumberArg 2 года назад +1

      @@mileselam641 you make it sound like Svelte is somehow different in its approach, does not have onDestroy or $:console.log(...). If you are using it, you already don't have HTML mental model. Compared to SolidJS, Svelte uses the same mental model, but with more magic and less well thought out synyax.

  • @iivarimokelainen
    @iivarimokelainen 2 года назад +1

    Wipe your greasy camera, my man

  • @kivylius
    @kivylius 2 года назад +1

    Still no where near how good reactjs is. Organisation way to messy.

    • @flogginga_dead_horse4022
      @flogginga_dead_horse4022 2 года назад +3

      people only still use react because it's popular. It's actually the worst at this point.

    • @kivylius
      @kivylius 2 года назад +1

      @@flogginga_dead_horse4022 people switched fromjQuery fast once other more organised frameworks came out, people are not switching from react because no other framework is AS organised. You missing the point of enterprise apps.

    • @flogginga_dead_horse4022
      @flogginga_dead_horse4022 2 года назад +1

      @@kivylius What exactly do you mean by organized? React is just a library. How is it organized? Now if you said Next or something that would make sense. Even Angular and Vue are more organized. I've been writing enterprise apps for 20 years. you? Also there is a whole lot of JQuery use still out there...

    • @danvilela
      @danvilela 2 года назад +3

      Because of these small minds that people still uses react.. (And other crappy stuff for that matter)