Swift: Struct vs Class vs Actor, Value vs Reference Types, Stack vs Heap | Swift Concurrency #8

Swift: Struct vs Class vs Actor, Value vs Reference Types, Stack vs Heap | Swift Concurrency #8

Swiftful Thinking

2 года назад

29,336 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@spradohak
@spradohak - 03.12.2023 12:33

One of the best videos about this topic, Thank you so much Nick 👍🏼

Ответить
@ArthurSh
@ArthurSh - 03.12.2023 11:46

THATS WHAT I NEEDED ! THANK YOU SO MUCH I VE LEARNED ALOT

Ответить
@shootgunbrim7608
@shootgunbrim7608 - 17.11.2023 06:04

thank you, this topic really helping me. Im new in ios developer, i didnt have any experience with swift/obj C. My company used to create Android app only, but now it have to also support iOS. Im literally alone doing iOS developer here, no mentor, no senior, not even anyone here can help me. So, you are life saver! Thank you!

Ответить
@sagarkadam8036
@sagarkadam8036 - 14.11.2023 07:14

One of the Finest Video of yours.. !!!! Made things so easy and to the point crisp and clear.. :-) Specially using MVVM is not just for sake of using but making sure why and when we need struct for views and class for viewModels is super helpful to clear.. Also the reference articles that you took with due credits to all were exceptionally very well.. kudos and thanks to those person as for making it so simple.. Thank you so much Nick.. !!!!!!!

Ответить
@HumbleHustle101
@HumbleHustle101 - 14.11.2023 03:16

Nice video, I think closures also qualifies as reference type.

Ответить
@pakaponwiwat2405
@pakaponwiwat2405 - 01.11.2023 15:35

It is crystal clear! Thank you very much !

Ответить
@magicinternetmoney8715
@magicinternetmoney8715 - 22.10.2023 06:19

absolute banger of a video

Ответить
@Harm0Niz
@Harm0Niz - 08.10.2023 19:24

Thank you for this wonderful video. I assume that the fact that the view structures are recreated with each mutation makes it interesting, aside from code refactoring and readability. Breaking down a large view into multiple child structures/views to partially recreate only the view blocks.

Ответить
@motionblurgamer
@motionblurgamer - 08.10.2023 01:13

Thanks! I feel like I finally understand Stack vs. Heap.

Ответить
@TheVuk011
@TheVuk011 - 01.10.2023 21:28

Bravo! Thanks

Ответить
@leilaleila7802
@leilaleila7802 - 26.09.2023 20:27

you explained everything very well, thanks ❤

Ответить
@zaquin_1
@zaquin_1 - 07.09.2023 10:32

I wanted to say one thing: this was literally by far the best video I've ever seen on Class vs Struct.
A great video? Yes, but he approached it in such a didactic and simple way to understand, that literally, now I can say that I know the difference between class and structs, type of value VS types of reference, in addition to understanding well what Heap and Stack.
Sincerely, congratulations on the video!

Ответить
@KarthikeyaReddyAkepati
@KarthikeyaReddyAkepati - 30.08.2023 14:15

Thanks Nick This Video Helps Me A Lot

Ответить
@suryakantsharma6761
@suryakantsharma6761 - 27.08.2023 07:43

Even new learning for Senior Dev. Best video I even seen in this detail 💌

Ответить
@avirubhattacharjee8987
@avirubhattacharjee8987 - 24.08.2023 22:01

Awsome explanation ❤

Ответить
@manishparihar3361
@manishparihar3361 - 24.08.2023 18:02

Well Expained everything , Your way of teaching is super simple to understand . Hatsoff for your hard work for the tutorial 😊

Ответить
@syedtalib8700
@syedtalib8700 - 14.08.2023 19:48

one of the best explanation ever heard on struct vs classes

Ответить
@ghulamrasoolhashmi681
@ghulamrasoolhashmi681 - 08.08.2023 20:01

wowww.....
Just awesome

Ответить
@bartoszjurczyk6800
@bartoszjurczyk6800 - 08.08.2023 16:13

good

Ответить
@alxkub
@alxkub - 06.08.2023 18:59

You say several times that passing a value type as a parameter is more efficient than passing a reference type instance. But is it true? Passing to a function just a tiny address of a class instance should be a lot more efficient than copying all the data of a structure and putting it into the stack (stack size is limited and copying is expensive!). Without internal optimizations like copy on write and storing internally some (large) structs data in the heap performance of operations with large structs would be a disaster.

Ответить
@pasha7324
@pasha7324 - 04.08.2023 14:44

Perhaps the best video on Classes vs Structs I've seen in 5 years.

Ответить
@gregas3068
@gregas3068 - 02.08.2023 11:24

Really nice explanation. Learning a lot here. Keep pushing.

Ответить
@nickpavlov4012
@nickpavlov4012 - 30.07.2023 00:01

Hey Nick, do you offer private lessons or prepare to interview?

Ответить
@nickpavlov4012
@nickpavlov4012 - 29.07.2023 23:59

Incredible video, Thank you

Ответить
@suryabhan1000
@suryabhan1000 - 24.07.2023 21:04

a very details explanation, Thanks.. I own you beer

Ответить
@lixinfeng7873
@lixinfeng7873 - 18.07.2023 18:41

Great video! Thanks!

Ответить
@brandonhopkins3438
@brandonhopkins3438 - 10.07.2023 16:30

Incredible.

Ответить
@kumarutsav6653
@kumarutsav6653 - 06.07.2023 07:47

Awesome video again. You are the best teacher and yes I owe you coffee.

Ответить
@user-ou5mk6ke6b
@user-ou5mk6ke6b - 27.06.2023 16:21

Fantastic! Thank you this incredible video

Ответить
@xybnedasdd2930
@xybnedasdd2930 - 22.06.2023 19:41

Great video. One minor suggestion: a setter which returns a new copy should usually be named differently, depending on convention. For example, 'updatingName` or 'withUdpatedName`, which makes it more clear it's returning and not just mutating. Similarly as we have .sort for in-place sort and .sorted for a new list without mutating the original.

Ответить
@rajdhakate617
@rajdhakate617 - 20.06.2023 18:32

Highly informative video. You did a great job explaining every single thing. Kudos to you 🎉

Ответить
@giovanebarreira2513
@giovanebarreira2513 - 19.06.2023 20:38

Awesome explanation!

Ответить
@Noneless-bl1tr
@Noneless-bl1tr - 18.06.2023 16:41

Awesome videos, so much learned here, thanks

Ответить
@indomitabletr1834
@indomitabletr1834 - 11.06.2023 12:43

Can you update this series with structured concurrency as well ?

Ответить
@ionpavelescu2125
@ionpavelescu2125 - 10.06.2023 16:19

Wow . Why did I understand it sooooo easy? thank you .

Ответить
@Vinay-xd7du
@Vinay-xd7du - 03.06.2023 15:53

The best Video in the internet about structs, classes, actor if anyone understands this video no need to watch other videos, articles about them..Awesome explonation❤

Ответить
@mykhailotseitlin6979
@mykhailotseitlin6979 - 29.05.2023 19:04

Thank you very much for your video! 😊

Ответить
@muhammedmahmoud1236
@muhammedmahmoud1236 - 27.05.2023 11:30

Thank you very much for this video and for all these reference links in the description, You have answered a lot of questions that I have been asking before about keep it up <3

Ответить
@leonardogoncalves5896
@leonardogoncalves5896 - 15.05.2023 20:10

Amazing content! Thanks for sharing for free 🤩. Thanks from Brazil!!

Ответить
@bobbynwm
@bobbynwm - 12.05.2023 21:24

Thanks a lot mate! Indeed you did clarify simply how MVVM should be used and at the end all the pieces came together. I can't say I am mastering them all, but at least I understood now how to refactor my MVVM so far, and where shall I place the ObservableObjects and Structs and Views, as I was a bit confused between ViewModels, Models and Classes with more generic use overall in the app ( Actors ) not per View. Cheers!

Ответить
@NavdeepSingh-ut8md
@NavdeepSingh-ut8md - 01.05.2023 16:55

really very helpful for a beginner in iOS

Ответить
@tainguyen-ng3yl
@tainguyen-ng3yl - 27.04.2023 11:34

This is an amazing video, if you watched carefully the whole video, you would feel the superpower of SwifUI. Thank you very much, Nick 🙏

Ответить
@tainguyen-ng3yl
@tainguyen-ng3yl - 27.04.2023 11:27

Hi Nick, Could you please make a video to talk about VIPER architecture 🙏and which one is better in large apps?

Ответить
@tainguyen-ng3yl
@tainguyen-ng3yl - 27.04.2023 10:22

Shout out to Khanh Nguyen, from Vietnam with love <3

Ответить
@LeaTamola
@LeaTamola - 24.04.2023 05:58

This video is just amazing and clear 👌🏼

Ответить
@alexbui0609
@alexbui0609 - 21.04.2023 05:11

Have to say it, this is too good!

Ответить
@highRider72
@highRider72 - 20.04.2023 08:47

While I knew the main difference(s) between Structs and Classes, this video contains so much extra info that I did not know. Plus, I love the fact that you are repeating the difference between the two so so many times in this video, which in my case was important to just hammer it into my brain ;) Best video about this topic I have watched/read so far! Thanks for all the great content, Nick - this is all really amazing stuff you are putting out on your channel!

Ответить
@artemyvolkov
@artemyvolkov - 19.04.2023 16:35

Awesome, thank you!

Ответить
@jalapisco
@jalapisco - 18.04.2023 08:53

The difference between Structures, Classes, and Actors sounds so simple when you explain it. That said, it would have taken me ages to figure it out on my own so thanks a lot for this awesome tutorial.👍👍

Ответить