Svelte Crash Course

แชร์
ฝัง

ความคิดเห็น • 321

  • @TraversyMedia
    @TraversyMedia  3 ปีที่แล้ว +156

    Around 44:45 a few minutes got cut off when I created the Button.svelte component. It's not a big deal, you can see the code, but it cut out me creating it. Sorry about that. Also, the repo is in the description if you need to see any part of the code.

    • @shocchosolutions6275
      @shocchosolutions6275 3 ปีที่แล้ว +1

      Sir i dont know you see my comment or not i am yor huge fan please do react advance project video

    • @44galore
      @44galore 3 ปีที่แล้ว

      th-cam.com/video/kEQAYXcR6YQ/w-d-xo.html is that video copying known / permitted ? Someone took your video with his own audio overlay 😮

    • @12B-m6l
      @12B-m6l 2 ปีที่แล้ว +1

      @@shocchosolutions6275 this is English language misuse, Sir

    • @l.halawani
      @l.halawani 2 วันที่ผ่านมา

      can't see the code

  • @mohammadrezakarimi2400
    @mohammadrezakarimi2400 2 ปีที่แล้ว +137

    00:20 What is Svelte
    00:49 Compare to React
    01:39 Why use Svelte
    03:16 What should you know first
    03:45 Svelte Component
    04:46 How to get started
    05:14 Project overview
    06:30 Let's get started
    08:01 VS code extension
    08:17 Generated files explained
    11:29 Basic fundamentals
    15:47 Conditionals
    17:16 Foreach loop
    20:20 Starting a real-world application
    01:03:34 Adding some transitions
    01:06:02 Stores

  • @hakakahamuta7175
    @hakakahamuta7175 3 ปีที่แล้ว +223

    You are a life changer for me! Following you for a year, I got a job. I have no words to thank you enough. I wish you all the best, buddy.

    • @vectoralphaSec
      @vectoralphaSec 3 ปีที่แล้ว +3

      cool. How long did you start learning web dev before you got the job? Congrats.

    • @narcissisticnarcissus4956
      @narcissisticnarcissus4956 3 ปีที่แล้ว

      Same for me. Self studied programmer.

    • @hakakahamuta7175
      @hakakahamuta7175 3 ปีที่แล้ว +6

      @@vectoralphaSec Thank you. I have been following Brad for about 10 months now, I have completed Brad's Modern HTML & CSS and Modern JavaScript courses, where I gained the most knowledge, but his free content on youtube is also enough to get a job. Good luck.

    • @Almighty_Flat_Earth
      @Almighty_Flat_Earth 3 ปีที่แล้ว +2

      When Svelte enters the room, the poor react, vue and angular bow down the king. But when "neo.mjs" enters the room, the svelte bows down to the legend.

    • @TheCodebookInc
      @TheCodebookInc 2 ปีที่แล้ว +1

      I started my own youtube channel and now a company. Thnxx Brad. Programming dad

  • @szabolcsjobbagy30
    @szabolcsjobbagy30 ปีที่แล้ว +34

    This is the BEST SVELTE VIDEO FOR BEGINNERS,
    I recommend this one to everyone who wants to learn Svelte.
    And yesterday, on DEC 14, 2022
    as a historical moment,
    Sveltekit 1.0.0 was officially RELEASED,
    so the formerly beta version is now fully stable, official version!
    CONGRATULATIONS to the Svelte & Sveltekit Team!! :)

  • @sajidshaikh3155
    @sajidshaikh3155 3 ปีที่แล้ว +14

    Thank you Brad for this crash course. I had asked you on Twitter if you are planning a crash course on Svelte and you had said "Yes " and you delivered 👍

  • @themongru
    @themongru 2 ปีที่แล้ว +5

    Great tutorial as always.
    As a bonus, you could implement the each loop instead of hardcoding all ten rating selections:
    {#each [...new Array(10)].map((_, i) => i + 1) as rating}

    {rating}
    {/each}

  • @SiddheshNan
    @SiddheshNan 3 ปีที่แล้ว +77

    Was waiting for Svelte content since long time... Thanks a lot, Brad!

    • @TraversyMedia
      @TraversyMedia  3 ปีที่แล้ว +50

      More to come. SvelteKit will be next

    • @nitrox5631
      @nitrox5631 3 ปีที่แล้ว +1

      yes me too

    • @andrewshorts1198
      @andrewshorts1198 3 ปีที่แล้ว +2

      @@TraversyMedia I'm looking forward to this

    • @computerscience1152
      @computerscience1152 3 ปีที่แล้ว +1

      Me tooooo!!!!

    • @Almighty_Flat_Earth
      @Almighty_Flat_Earth 3 ปีที่แล้ว +2

      When Svelte enters the room, the poor react, vue and angular bow down the king. But when "neo.mjs" enters the room, the svelte bows down to the legend.

  • @-ambatuedit
    @-ambatuedit ปีที่แล้ว +1

    This is an amazing video for beginners, thanks for making it free 🙏
    Tip that could be useful for someone: instead of typing all html radiobuttons one by one a foreach can be used like this:
    {#each [1,2,3,4,5,6,7,8,9,10] as currRating}


    {currRating}

    {/each}

  • @bootcampdev
    @bootcampdev 3 ปีที่แล้ว +29

    Svelte is getting very popular, that's awesome! 😁

    • @TraversyMedia
      @TraversyMedia  3 ปีที่แล้ว +11

      Hopefully we see more job openings for it. It really is an awesome framework

    • @ahmad-murery
      @ahmad-murery 3 ปีที่แล้ว +1

      if you are Falvio Copes the one I know then I'm expecting a new book will be added soon to your free books collection :D

    • @Almighty_Flat_Earth
      @Almighty_Flat_Earth 3 ปีที่แล้ว +3

      When Svelte enters the room, the poor react, vue and angular bow down the king. But when "neo.mjs" enters the room, the svelte bows down to the legend.

  • @omedjamal1056
    @omedjamal1056 2 ปีที่แล้ว +8

    for the radio buttons, we can use (bind:group={selected}).I think its more Svelte-like. thanks Brad as always.

    • @pickavana8056
      @pickavana8056 2 ปีที่แล้ว

      Can you please show the code for implementing this?

  • @ryanwood9288
    @ryanwood9288 3 ปีที่แล้ว +3

    If you are running an m1 mac, you may get an error when you npm run dev for the first time "You are not authorized to view this page" or similar.
    Port 5000 is being used by the airplay receiver, you need to use a different port. In package.json, add --port "new port number here" without the quotes to the start script and you're good to go. This will also change what port the dev script uses.

  • @urssounds
    @urssounds 2 ปีที่แล้ว +5

    I'm 17min in and this is by far the best svelte tutorial I've seen so far already! 🙏💪

  • @dragonballmysteries7580
    @dragonballmysteries7580 3 ปีที่แล้ว +8

    I have been waiting a long time for Brad to make a course like this! I have wanted to study svelte for a while now and Brad makes it easy. Love to you and your family!

  • @justingolden21
    @justingolden21 3 ปีที่แล้ว +46

    Svelte is sooooooooooo much easier than React to learn, read, and write.
    Svelte kit is awesome too.
    Glad you made this video. Love your content man.

  • @ArifBillahOnGoogle
    @ArifBillahOnGoogle 2 หลายเดือนก่อน

    This is my first Svelte course. If I ever do anything significant with Svelte, you have a big credit to that, Brad. Thank you very much.

  •  3 ปีที่แล้ว +8

    nice to see some love for svelte, being using it for 1 year and half in production, never going back to react lol, great content

    • @felixvargasjr6678
      @felixvargasjr6678 ปีที่แล้ว

      I’m looking to learn svelte, coming from react would you say that it’s just an easier tool compared to react? Sorry I’m just learning and hoping to get some insight

  • @toongurl
    @toongurl 2 ปีที่แล้ว +5

    Oh man I'm, so happy you're doing svelte kit. I got my start as a react dev with your videos. Now we've migrated to Svelte Kit and I'm struggling. Your content makes learning this so much easier. I hope you do a bigger project with stores and reactivity if you have the bandwidth. Even a copy of one of your old react projects but built with svelte instead would be super helpful.

  • @WolfManThoughts
    @WolfManThoughts ปีที่แล้ว

    Coming from a React Developer. I really like this framework a lot. Very precise, simple and helps you to exactly what you want to do.

  • @harigovind511
    @harigovind511 ปีที่แล้ว

    The first 20 mins of this video covers more than most videos on TH-cam, you are doing great work.

  • @2018-g4o
    @2018-g4o 3 ปีที่แล้ว +4

    The stores feature of Svelte is simply amazing

  • @kvncnls
    @kvncnls 3 ปีที่แล้ว +18

    Yesss!! I love Svelte. Big companies need to start adopting it asap! :D

    • @salehmdev
      @salehmdev 3 ปีที่แล้ว +4

      Of course you'd be here :P
      I agree!

    • @TraversyMedia
      @TraversyMedia  3 ปีที่แล้ว +4

      @@salehmdev Kevin is the man 😉

  • @it-s-me-mohit
    @it-s-me-mohit 3 ปีที่แล้ว +12

    Perfect timing. Was starting to learn it. 👍👍

  • @stephenjames2951
    @stephenjames2951 2 ปีที่แล้ว

    I really like the pace of these crash courses. Not too slow and since they are relatively short they can be rewatched if needed.

  • @s000sdas
    @s000sdas 3 ปีที่แล้ว

    Mr. Brad is that kind of teacher whom everybody wanted to be in his class

  • @davidpineda7072
    @davidpineda7072 3 ปีที่แล้ว +2

    Thanks Friend! I just started getting into Svelte, coming from an Angular and Ember background. So much wow on how easy this is. Keep up the good work!

  • @AramKoshgerian
    @AramKoshgerian 3 ปีที่แล้ว +15

    Amazing and so well explained as always

    • @TraversyMedia
      @TraversyMedia  3 ปีที่แล้ว +5

      Alpine is on the list for future videos 😊

  • @stevenharder308
    @stevenharder308 2 ปีที่แล้ว

    Wow. Thanks for taking the time to show the different store and variable structures.

  • @luismartins1150
    @luismartins1150 3 ปีที่แล้ว +6

    Great video as aways. I was planning on start using Svelte and this came at the perfect time.
    I hope you do a Sveltekit crash course!!

  • @anupamaweerawardhana9652
    @anupamaweerawardhana9652 3 ปีที่แล้ว +22

    It would be great if you can do SvelteKit or Svelte + Tailwind tutorial next.
    Great tutorial as always! ❤️ from Sri Lanka

    • @pickavana8056
      @pickavana8056 2 ปีที่แล้ว

      I think James Q Quick has one with Kit + Tailwind and he is another amazing instructor.

  • @kittymedusa3618
    @kittymedusa3618 3 ปีที่แล้ว +2

    Thanks for doing a new video! You’re always staying on top of the tech trends.

  • @pemrograman-cepat3393
    @pemrograman-cepat3393 ปีที่แล้ว +1

    I wonder what is the easiest js framework to work with? I don't care of job market, etc etc. What I care much is about development time.

  • @ScrappyCoCo0
    @ScrappyCoCo0 2 ปีที่แล้ว +2

    The ul inside the RatingSelect component can be easily refactored to not use the same code 10 times for each input:
    {#each Array(10) as _, index (index)}


    {index + 1}

    {/each}

  • @BrettCoetzee
    @BrettCoetzee ปีที่แล้ว

    Likes the video so thanks. Somthing that could be better is the RatingSelect HTML:
    {#each [1,2,3,4,5,6,7,8,9,10] as num}


    {num}

    {/each}

  • @jonathanemmett8043
    @jonathanemmett8043 2 ปีที่แล้ว +1

    Dude this was great, you make things super relatable and easy to comprehend. More svelte content please.

  • @GGSoft2009
    @GGSoft2009 ปีที่แล้ว

    When I find some new future, I always begin it with your crash course, Thanks!!!

  • @l.halawani
    @l.halawani วันที่ผ่านมา

    This is the button css that worked for me:
    button {
    padding: 10px 30px;
    border: 1px solid #ff6a95;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 5px 10px;
    }
    button:disabled {
    cursor: not-allowed;
    background-color: #ccc;
    border: #888;
    }
    button:disabled:hover {
    background-color: #ccc;
    transform: scale(1);
    }
    .primary {
    background-color: #202142;
    }
    .secondary {
    background-color: #ff6a95;
    }
    button:hover {
    transform: scale(0.98);
    background-color: #ff6a95;
    }

  • @skryonline5825
    @skryonline5825 3 ปีที่แล้ว +2

    For average and count I would do derived store. This would make it even cleaner code. Great tutorial, thought. Keep up with the Svelte, Brad! I think it has lots of potential and tutorials like this help people to learn about it. Thanks

  • @SeattleSpursFan1882
    @SeattleSpursFan1882 ปีที่แล้ว

    This was great. Thank you. I'm stoked I was able to solve the challenge you set forth AND I was able to refactor on my own once you introduced the "store" concept. All the best!

  • @renarsdilevka6573
    @renarsdilevka6573 3 ปีที่แล้ว

    Such a pleasant feeling to hear your voice, so much ease and knowledge. This is golden :)

  • @cosput
    @cosput 2 ปีที่แล้ว

    Thanks for the crash course, it's well done. Some constructive feedbacl: 7:28 degit doesn't clone, it downloads the tar for the latest commit, which is faster than cloning, and you won't get the commit history.

  • @wils-caru
    @wils-caru 3 ปีที่แล้ว +19

    Svelte is to React what React is to angular.

  • @user-jb2vv1ie2w
    @user-jb2vv1ie2w 3 ปีที่แล้ว

    Your voice + Your keyboard sound = fantastic programming code.

  • @mageprometheus
    @mageprometheus 2 ปีที่แล้ว

    Excellent! I'm looking at Svelte for plugins in Obsidian so I won't need some of the app boilerplate but this completely cleared up the brain fog. Time to watch a demo using the latest and check what's changed in the past 12 months.

  • @rah2023
    @rah2023 2 ปีที่แล้ว

    this is by far the best Svelte tutorial.

  • @klhmia
    @klhmia 2 ปีที่แล้ว +5

    Awesome tutorial as always, Brad. Thank you so much.
    Svelte really trolled us with these file extension names... I miss .js / .jsx - but the overall tech is awesome. Looking forward to more Sveltelteletle

  • @dav3evans
    @dav3evans 2 ปีที่แล้ว +1

    Really nice video mate, thankyou!
    For anyone getting to the point where you have to do the dispatch and then create the event forwarding to pass things up to the main App - If like me you thought something like "hhmmm, that's kinda clunky", absorb it as an approach and wait for the Store implementation at the end - MUCH nicer, and worth it to see how much cleaner it is.
    Question! - So I can learn more, does anyone have a take on why you'd ever use that approach with the store technique being there? Is it a legacy approach that will just be used less? Having seen both in action I can't see an immediate reason to not use a store, even for a small app.

  • @vaniad555
    @vaniad555 3 ปีที่แล้ว

    Perfect timing delivering svelte crash course/21 not too much out there and once again Brad delivers to us, thank you!

  • @madhanganesh1
    @madhanganesh1 3 ปีที่แล้ว +1

    This is simply awesome, I could not stop the video once started ☺️. You have sparked a interest to do Svelte.

  • @th3oth3rjak3
    @th3oth3rjak3 2 ปีที่แล้ว +1

    This was a great intro to Svelte! I've been exploring a lot of front end frameworks like Angular and React. I honestly find that this is way easier to use then either of those based on this video. I'm going to have to make a few projects in it and try it out!

  • @harsimransinghbatth5032
    @harsimransinghbatth5032 3 ปีที่แล้ว

    Damn! Talk about timing, I've been looking to get into Svelte for the past month or so. Thanks a lot!

  • @bingers_uk
    @bingers_uk 3 ปีที่แล้ว +4

    This is awesome. Would love it if you could do a SvelteKit tutorial

  • @clingyking2774
    @clingyking2774 2 ปีที่แล้ว

    I can't beleive I just completed a svelte crash course! Thanks Brad.

  • @theMiaow
    @theMiaow ปีที่แล้ว

    12:25 reactive value
    19:50 overwriting array-ish vars

  • @pappapuddins
    @pappapuddins 3 ปีที่แล้ว +5

    Hey Brad, solid video. Just a quick question though, wouldn't it be a bit more efficient in the feedback form component to make use of reactive values instead of creating the function that handles input? You could have one reactive value that checks if the length of text is correct, another reactive value for the disabled state of the button, and finally another one for the message, which is simply an empty string if the form is valid, or a string with your message if the form is not valid. Seems like you're missing out on Svelte's amazing reactive value system here, since two-way data binding for the text is already handled by the input.

    • @justinoneill2837
      @justinoneill2837 2 ปีที่แล้ว

      this is why i read the comments... valuable insight like this :)
      thanks Chris!

  • @paulthomas1052
    @paulthomas1052 2 ปีที่แล้ว

    Great introduction to Svelte - just what I needed. I really enjoy your work, Thanks so much.

  • @ABsazerNer
    @ABsazerNer 2 ปีที่แล้ว +1

    I really loved svelte through your video, it'll be my next project

  • @Almighty_Flat_Earth
    @Almighty_Flat_Earth 3 ปีที่แล้ว +1

    When Svelte enters the room, the poor react, vue and angular bow down the king. But when "neo.mjs" enters the room, the svelte bows down to the legend.

  • @___Kevin
    @___Kevin 2 ปีที่แล้ว

    First of all thank you very much, I was looking for some lightweight framework to make a simple but elegant website for a friend. Svelte is perfect for this kind of project

  • @ScriptRaccoon
    @ScriptRaccoon 3 ปีที่แล้ว +3

    Great tutorial! Svelte looks good, but I still haven't seen any JS framework where the communication (in particular, upwards) between components is really easy. All that code (creating stores, importing them, or using event dispatchers) is not necessary when you write vanilla JS / jQuery. Also I really don't want to import specific animation effects before using them as in Svelte - jQuery is much better here.

  • @somerset006
    @somerset006 ปีที่แล้ว

    Thanks for the fantastic tutorial! One thing I may have missed is why you did not use a loop to lay out the ratings.

  • @greggreenhaw
    @greggreenhaw 2 ปีที่แล้ว

    I’m a knockout js user and feel it’s simpler and cleaner. I could build this example in a fraction of the time with 75% less code using knockout. After 2 years of js development I really believe native js and knockout is the best combo

  • @IonizedComa
    @IonizedComa 8 หลายเดือนก่อน

    As someone who usually does backend, svelte is a lifesaver for hobby projects. React had me banging my head against the wall.

    • @darthtrex9356
      @darthtrex9356 5 หลายเดือนก่อน

      Same i usually use htmx and svelte as i find react overkill for my simple projects 😂

    • @IonizedComa
      @IonizedComa 5 หลายเดือนก่อน

      @@darthtrex9356 how is htmx? I never really tried it before, I'm not sure how request responses or errors would be handled in html

  • @VenkateshMogili
    @VenkateshMogili 3 ปีที่แล้ว

    Thank you Brad, learned a new language today , feeling satisfied for the day❤️❤️❤️

  • @jhonatanjacinto
    @jhonatanjacinto 2 ปีที่แล้ว +4

    Excellent tutorial... I'm really considering migrating from React to Svelte... Things seem much much simpler with this framework. Thanks again for your work, man!

  • @TrevorTinker
    @TrevorTinker ปีที่แล้ว

    Big fan of your content. This tutorial was awesome. Thank you!

  • @paul2DD
    @paul2DD 2 ปีที่แล้ว

    a great tutorial to get you started with svelte, thank you Brad !!!

  • @MikeKoss
    @MikeKoss 2 ปีที่แล้ว +1

    Would it not be better to pass the store to be used down as props into the list and item components? That way you could have multiple feedback lists or whatever, and you wouldn't have multiple components depending on kind of a global state.

  • @jialx
    @jialx 3 ปีที่แล้ว

    what are the odds you drop this video the day I start caring about svelte. 🚀

  • @kellthusad
    @kellthusad 2 ปีที่แล้ว

    Even though I really like Svelte so far (I've created the Chart app with it and its very good and performant) I wouldn’t just jump into building complex prod ready apps with it just yet, instead what I'd do is 1) either create widget like apps; 2) have a monorepo with bunch of both Svelte and React apps

  • @Ahmet_Altun
    @Ahmet_Altun 2 ปีที่แล้ว +1

    Svelte is amazing!

  • @michelchaghoury870
    @michelchaghoury870 3 ปีที่แล้ว +2

    hello brad, gr8 vid like always, can u please show us the best way to develop large-scaled react/Next apps (no need to build an entire project) if you can give us some recommendations and best practices, how, when and other tips that help us to have a clean and well structured project even if it getts big and bigger

  • @nukoolchompuparn8570
    @nukoolchompuparn8570 2 ปีที่แล้ว

    You are the best Svelte teacher.

    • @pickavana8056
      @pickavana8056 2 ปีที่แล้ว

      How many Svelte teachers have you tried?

  • @ozgurNY
    @ozgurNY 21 วันที่ผ่านมา

    Your tutorials are awesome. I will try to rebuild your feedback app in Svelte 5. Thanks!

  • @gasparcoding
    @gasparcoding 3 ปีที่แล้ว

    perfect summary about the latest features

  • @MyALPHAguy
    @MyALPHAguy 3 ปีที่แล้ว +2

    I love this framework... Too bad they don't have any jobs with it in my country.... I'd definitely go for it.

    • @TraversyMedia
      @TraversyMedia  3 ปีที่แล้ว +2

      Yeah. Give it some time. I think we’ll see some popping up

  • @multitasker8830
    @multitasker8830 3 ปีที่แล้ว

    You are a game changer of web development 🔥🔥

  • @df29208
    @df29208 ปีที่แล้ว

    Very thankful for his work, but given changes have occurred, what version of Svelte dies relate to or up to? What has changed or no longer applicable.
    Around the 8:23 minute mark when it showing the package dependencies it shows 3.0.0 for the Svelte compiler. I think at one point there was a 'breaking change', one guy wrote a book and a month later Svelte changed so drastically that he said his book was out of date completely and basically not worth buying - I think it had everything to do with 'routes'. I am sure the basics are always there - or at least good to know the background of a project - to help you understand an on going continuously improving application/environment/programing language, etc. FYI MS Visual Basic had a 'language break' where nothing written in a prior version could be run with the new version - things change life must go on.

  • @ccmm4094
    @ccmm4094 3 ปีที่แล้ว

    Great job buddy. Concise and skillful.

  • @abdullahmoiz8151
    @abdullahmoiz8151 2 ปีที่แล้ว +1

    Everything seems so sensible

  • @matthewritter8988
    @matthewritter8988 3 ปีที่แล้ว +1

    Great crash course! Thanks for all the great content, Sveltekit crash course next 🙏

  • @alwayzsmarter
    @alwayzsmarter 3 ปีที่แล้ว +1

    Svelte is my #1 fav go svelte! Go brad!

  • @Franchyze923
    @Franchyze923 3 ปีที่แล้ว +4

    Excellent! I've been seeing Svelte more and more lately and I've been curious about it.

    • @TraversyMedia
      @TraversyMedia  3 ปีที่แล้ว +2

      It really is great. Some things are just so simple compared to react

    • @ba8e
      @ba8e 3 ปีที่แล้ว

      @@TraversyMedia It completely obsoletes React. I cannot look at any other framework anymore.

  • @SRG-Learn-Code
    @SRG-Learn-Code 2 ปีที่แล้ว

    Awesome as always, worth to watch even if you already have used svelte before.

  • @blankslate6393
    @blankslate6393 3 ปีที่แล้ว

    Great tutorial. Clear and conscise. Please make a follow up for sveltekit.

  • @webspaceadam
    @webspaceadam 2 ปีที่แล้ว

    Just commenting this to push the algorithm for svelte

  • @Erik-rj5xz
    @Erik-rj5xz 2 ปีที่แล้ว

    Nice! This video was exactly what i needed to get started!

  • @thalibmuhammad9519
    @thalibmuhammad9519 3 ปีที่แล้ว +1

    1:15:52 " i dont know why it got here" i saw many of that in other of your videos, the reason is you do typo, and the auto import executed

  • @lone-eltemplodeltalento6196
    @lone-eltemplodeltalento6196 3 ปีที่แล้ว +1

    Hey, I was learning React and saw some videos about Svelte. It seems to do the same things but in a easier way, with lees code and more readable. Im wondering if Svelte is as poweful as React? Couse im falling in love with it! Thanks.

  • @TannerBarcelos
    @TannerBarcelos ปีที่แล้ว

    Damn state and updating state is so easy. It feels like plain programming : defining variable, due to some condition update variable. No fancy hooks or other stuff like React.
    The reactive values are still a little foggy with syntax and when to exactly use them (because my mindset is so React centric) but wow im amazed

  • @jeff_tech
    @jeff_tech ปีที่แล้ว

    Awesome course! I learned a lot. Thank you Brad!!

  • @johetajava
    @johetajava 2 ปีที่แล้ว

    At 20:00, you can use list.push(object) as long as you reassign the reference of the list variable to itself like this:
    list.push(obj)
    list = list
    It is better I think, as it doesn't copy the whole content of the array, which could be a little slower with a large list length.

    • @prch818
      @prch818 2 ปีที่แล้ว

      Hey! Beginner here. Why do you have to do the 'list = list'? Why isn't the list.push(obj) enough?

    • @johetajava
      @johetajava 2 ปีที่แล้ว

      @@prch818 The program has to update the DOM according to the data, which doesn't happen by default. The compiler takes care of this, and regenerates the view when it recognises an assignment. However, it cannot detect all kinds of changes made by a simple function call. It would be hard for it to recignise. Therefore, you can say list = list and give it a hint that it should update the view.

  • @Evildragonfirez
    @Evildragonfirez 2 ปีที่แล้ว

    Great video, and Svelte is awesome however events fired using the "createEventDispatcher", don't bubble, meaning I have to "bump" them up myself. That part of Svelte feels a tad bit undercooked, but thankfully, can be avoided by using the browser's native events and explicit event listeners.

  • @_whatistruth
    @_whatistruth 3 ปีที่แล้ว

    its good to have a table of contents. Thank you

  • @xtapa3271
    @xtapa3271 2 ปีที่แล้ว

    Svelte looks really interesting and I liked the tutorial. Guess I will try recreating your Feedback app. Thanks!

  • @maelstrom57
    @maelstrom57 3 ปีที่แล้ว

    const indices = Array.from({ length: 10 }, (_, i) => i + 1);
    {#each indices as i}


    {i}

    {/each}

  • @justindlb
    @justindlb 3 ปีที่แล้ว +2

    I am finishing up your Modern JavaScript course on Udemy and couldn't decide on what JS framework to commit too. This looks promising, but do you believe Svelte will rise to be a contender?

    • @denniszenanywhere
      @denniszenanywhere 3 ปีที่แล้ว +2

      I remember when my father worked for a top 10 company and he said they were still using windows xp when at the time the world has moved on to using windows 10. It just means some things stay up because most companies use one thing and it’s hard for them to start over or restart or change because it would be too costly to change.

  • @yehuda4904
    @yehuda4904 ปีที่แล้ว

    That is very interesting, thank you so much for taking the time to share...
    The only question: "how do you do unit testing with variables that are global in a store..."

  • @vitoroliveira6170
    @vitoroliveira6170 3 ปีที่แล้ว

    Cool introduction about Svelte, thanks Brad.

  • @yan.mendes
    @yan.mendes 2 ปีที่แล้ว

    Very nice video! Congratulations and thank u for this content. I came from Vue but now im in love with Svelte 🤣🤣🤣

  • @badasscoder4481
    @badasscoder4481 3 ปีที่แล้ว

    wao. Awesssome Your website is now updated. It looks amazing.