Svelte is surprisingly easy

Поделиться
HTML-код
  • Опубликовано: 20 июн 2022
  • A first look at Svelte JS.
    💬 Topics:
    - The Svelte compiler;
    - Reactive statements;
    - Routing;
    - State management;
    - Working with Svelte.
    🔥 The "First Impressions" series:
    - Svelte Kit - • Svelte Kit is a nice s...
    - Fresh - • Fresh JS is worth chec...
    - Astro - • Astro JS is here to stay

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

  • @user-zq8bt6hv9k
    @user-zq8bt6hv9k 2 года назад +6

    Boring

    • @awesome-coding
      @awesome-coding  2 года назад +12

      Well, all things considered it’s still coding… what do you expect? :))

    • @user-zq8bt6hv9k
      @user-zq8bt6hv9k 2 года назад

      @@awesome-coding it's frontend so yeah basically just as interesting as a video about low code

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

      Decent things are usually boring. But doing their job perfectly.

    • @youkwhd2360
      @youkwhd2360 Год назад +3

      said a guy who has a public playlist of 5 hours long video 💀

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

      I honestly wonder who is making these bot users.
      RUclips is filled of them, and they're just giving destructive criticism.
      I'm sure they're all hate-bots.

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

    I don't often comment, but your video was informative. Keep it up bro you got what it takes.

    • @awesome-coding
      @awesome-coding  2 года назад +1

      Thanks for the kind words! I really appreciate it!

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

    I wish Svelte a success. Compiled disappearing frameworks is the next big thing in frontend. Authors got it right.

    • @awesome-coding
      @awesome-coding  2 года назад +1

      You are right about that - definitely the direction would be to move more of the workload from the initial load time to the compile time.

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

    Great video! Thanks! I never worked with Svelte before but I will definetely give it a go in the near future. Keep up the awesome work!

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

    I really like the how Harris took good parts from different stuff.

  • @danielboadzie8143
    @danielboadzie8143 2 года назад +10

    I love Svelte passionately!!!

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

    Your work introducing Svelte is amazing, great job.
    About Svelte: I didn't like the syntax style very much, although it doesn't change the DOM it changes a lot the way of writing javascript with its own tokens that require specific learning that is not reused in any other framework.
    When a framework is that specific, its syntax must be more elegant and sexy than the others to become a preference, and at least for me that wasn't the feeling.
    Keep doing the great job, you're really awesome!

    • @awesome-coding
      @awesome-coding  Год назад

      Thank you for the feedback and the kind words! I really appreciate it!
      I fell exactly the same. It's very difficult to explain why you need such a different way of doing things when React or solid feel like you are writing plain javascript / typescript.

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

    Svelte is really intuitive and easy to learn I love it

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

    Great video, now I can see why people would recommend Svelte over React.

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

    This is amazing. Thank you so much

    • @awesome-coding
      @awesome-coding  2 года назад +1

      You're very welcome and good luck!
      Next week I'm releasing a Svelte + Deno full stack app tutorial - maybe you'll find it useful to get started :)

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

    I like this step by step tutorial 😍

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

    svelte is so awesome. makes things fun!

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

    Love this! Great video!

  • @T--T
    @T--T 2 года назад

    that was really nice cause you actually showed a lot of code -- way easier to understand this way

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

    Awesome job. Keep up the good work.

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

    Great video!!

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

    Just a small, not svelte-related sidenote: You appear to use zsh but with a bash prompt, since your terminal showed a \w at the beginning. The zsh equivalent to your prompt is:
    PS1='%~ %(?.#.$) '

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

    awesome videos 🚀

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

    i dont see the full video yet, but Svelte looks like a mix good parts of Angular and React, i really interested!

    • @awesome-coding
      @awesome-coding  2 года назад

      You should!

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

      i think its quite different than both of them, because it moves the work into compile step to avoid unused code, and not to mention, it doesnt use vdom, which gives a large performance bonus. also, usually there is 30-40% less code required to create the same component in svelte compared to react

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

    Very clear video

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

    14:37 you don't need to case store type, you can define it using generic parameter like writable([])

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

    I’d like also see animations, networking, testing, components interaction in svelte.

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

    Nothing better than React. Btw I just started a week ago, gonna make my own framework because nothin fits the bill for me.

    • @awesome-coding
      @awesome-coding  2 года назад

      If you like React, take a look at SolidJS (www.solidjs.com/). It might be what you are looking for.
      Also Fresh (fresh.deno.dev/) just reached version 1.0. It uses Preact under the hood, and it looks like one of the frameworks that'll attract a lot of people on the long term.

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

    Where is that chart at the beginning?

    • @awesome-coding
      @awesome-coding  2 года назад

      2021.stateofjs.com/en-US/libraries/front-end-frameworks

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

    nice video, bg music?

    • @awesome-coding
      @awesome-coding  2 года назад

      Thanks!
      Caballero - Ofshane (ruclips.net/video/pTOVmsPJIBY/видео.html).
      You'll find it in the RUclips music library.

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

    Please try angular too

    • @awesome-coding
      @awesome-coding  2 года назад +2

      I'll have a video on Angular fairly soon. It is my default go to framework for any team larger than 4-5 frontend devs.

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

    Personally I don't like script tags or templating. I think JSX and the idea of turning html elements with attributes into functions with arguments was brilliannt.
    The kind of flexibility that gives you. Like the things you can do with just JSX is a killer feature for me. Like web components... but good. And far more declarative.
    I can understand the draw of Svelte though. Simple reactivity. It's nice. Very similar to Blazor.

    • @awesome-coding
      @awesome-coding  2 года назад

      The transition back Svelte's templates was the biggest drawback for me as well. Funnily enough, I felt the same way when I first tried JSX :D

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

      JSX is trash, curly braces hell, no if statements, having to use array.map to do a basic loop and fucked up html/css properties name make it way worse than a templating language.

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

      @@awesome-coding I really hope QwikJS becomes a thing. It's in a rough pre-alpha state right now, but Resumability with JSX is a dream.

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

    I don't necesarly find it easy and the main reason is that it uses *yet another set of conventions* which makes it look like a new JavaScriptish language with some PHPish flavours.

    • @awesome-coding
      @awesome-coding  2 года назад +1

      I get what you are saying, but I feel like feel like this is pretty much the norm in the frontend space - every few years we are completely rethinking the way in which we are writing apps. While Svelte comes with a lot of new approaches, I think the learning curve is still acceptable, and it is worth it considering the benefits.

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

      Because Svelte is compiler

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

      As much as being a framework Svelte is also a programming language built on top of js, html, and css. It adds some bits that are otherwise absent, and therefore makes some things possible that otherwise would not be. But all js is valid Svelte, so all your existing knowledge carries over. And svelte uses js ideoms for everything, so it's not like it does things is ways that are unusual is js. It just adds some useful stuff that is missing.

    • @awesome-coding
      @awesome-coding  2 года назад

      Great overview of the benefits!

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

    Wtf, why using .then to modify the variable instead of awaiting the future?? Thats horrible code

    • @awesome-coding
      @awesome-coding  2 года назад +2

      Hey! Thanks for the feedback! It's a matter of preference I guess. If there is only one promise I need to handle, and there is no callback hell type of a situation, I usually go with .then instead of async / await. Call it a bad habit maybe :)

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

      @@awesome-coding it definetly looks like something that you would do on React, but not the Svelte way. I love Svelte for its simplicity on side effects, futures,…

    • @awesome-coding
      @awesome-coding  2 года назад +3

      I'll keep that in mind - thanks!

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

      Saying it is horrible code is such a stretch.
      It would be a horrible code when you have multiple callbacks, depending on each other, callback hell.
      If someone uses ".then" it doesn't automatically makes it wrong or horrible, is just that it has the potential to become messy if the pattern keeps going deeper and deeper.
      But if it is just one call, it is fine and completely understandable.
      Completely understandable if you learnt all about promises of course, if someone only uses async/await without learning what is a promise, that ".then" might look alien.

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

    instead of a ternary operator for your class statements, you should use class:active={task.status === ToDo}. But otherwise, i loved the video

    • @awesome-coding
      @awesome-coding  2 года назад

      Hey! That's a very good point - thanks!
      I also mentioned this briefly at the 14:05 mark, but I should have done it in a bit more detail probably.