Тёмный

Cleaner, Safer Code with Swift KeyPaths 

Sean Allen
Подписаться 155 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@seanallen
@seanallen 10 месяцев назад
Level up your iOS Dev skills at seanallen.teachable.com
@yashpatil5946
@yashpatil5946 10 месяцев назад
I love your way of explanation , the way you teach the swiftUI stuff and more..
@andrewshomemovies
@andrewshomemovies 10 месяцев назад
I’m a simple man. I see a Sean Allen video, I watch it.
@seanallen
@seanallen 10 месяцев назад
I appreciate it!
@Vamo_Alla
@Vamo_Alla 10 месяцев назад
We are two then!! when I get his notifications, I like 👍 his videos before watching them 😎🙌
@seanallen
@seanallen 10 месяцев назад
Haha, thanks for that.
@Vamo_Alla
@Vamo_Alla 10 месяцев назад
@@seanallen it’s my pleasure 🙌😎!but definitely that’s what I first do, like 👍 the video to make sure I contribute 😄. You’re an inspiration because i remember when you first started this journey and all the struggles you’ve mentioned in your videos at the beginning . I’ve been following you for awhile and look now how you became an iOS developer master and how you play with the iOS ecosystem. This means, hard work and persistence pay off. You have been one of the honest RU-vidr and this channel you should have more subscribers. Keep up the good work 😎🙌
@seanallen
@seanallen 10 месяцев назад
I appreciate you recognizing that. Hard work and persistence pays off :)
@kickedanon
@kickedanon 10 месяцев назад
Always great to see a Sean Allen video in my notifications.
@seanallen
@seanallen 10 месяцев назад
Hope you enjoy it!
@user-gt2rg7hs5q
@user-gt2rg7hs5q 10 месяцев назад
I have been using them with map() for a while but not filter() 😅 Thanks for the tip, Sean!
@seanallen
@seanallen 10 месяцев назад
Happy to help!
@undefined5317
@undefined5317 10 месяцев назад
Last week I was trying to learn about KeyPaths but the learning materials I was using wasn't quite landing for me, and then this beauty of a video comes out, and it makes sense now. I rarely comment on videos but just wanted to express my gratitude, your teaching style works so well for me. I'm new to the world of Swift, having just started a year ago. An area I'm struggling with is bugs. It can be so difficult to go into a codebase of experienced programmers and identify where they've gone wrong, as a newbie. This brings me to a suggestion I have for a series you could think about: Footage of you fixing bugs, from assignment to resolution. It would be great to see the full end-to-end process of how you approach it, what research you do, how you use debugging tools, and see a plethora of solutions. It would work best if these were real bugs that you haven't looked into prior to recording. Also, content on Combine would be interesting too!
@seanallen
@seanallen 10 месяцев назад
I appreciate the kind words. I've thought about how to do videos like that in the past, but every code base is so different (some easier to navigate than others). I understand it's still valuable to see the process, but I don't have access to an app where I would be unfamiliar to the codebase to play out the scenario.
@undefined5317
@undefined5317 10 месяцев назад
Ah, that makes sense. Definitely a shame. Would going into open source projects be a possible solution? Or even engaging with your community to solicit opportunities from people who have encountered bugs they'd like you to fix? Either way, appreciate the response and your videos, please do keep it up!
@LPLeo1000
@LPLeo1000 10 месяцев назад
Good video! Whenever I watch one of your tutorials, I think Swift isn’t that complicated all all.
@seanallen
@seanallen 10 месяцев назад
Glad my style resonates with you :)
@kdtechniquesofficial6153
@kdtechniquesofficial6153 6 месяцев назад
"Let's be honest It's just slightly cleaner" 3:10 I like your honesty... 👻
@seanallen
@seanallen 5 месяцев назад
I do my best :)
@notlekrut
@notlekrut 10 месяцев назад
I'd go more for an implementation through an extension or in some other place to "clean" it. Using keypaths is not as efficient as the closure method too. Not too slow that it'll make a difference for most apps, but worth a consideration. I personally still prefer the closure option for being consistent across the app
@danrleiribeiro7959
@danrleiribeiro7959 10 месяцев назад
Thank you for sharing this! Your content is awesome!
@seanallen
@seanallen 10 месяцев назад
Thanks. I appreciate that.
@imam_robani
@imam_robani 10 месяцев назад
the explanation is easy to understand, thanks
@seanallen
@seanallen 10 месяцев назад
Glad you think so!
@TarotPolitics
@TarotPolitics 10 месяцев назад
Sean love your videos I learn so much! I love how you think!
@seanallen
@seanallen 10 месяцев назад
I appreciate that!
@vladislav2587
@vladislav2587 10 месяцев назад
Thanks! I like the way you explain things!
@seanallen
@seanallen 10 месяцев назад
Glad to hear that!
@jerrick.warren
@jerrick.warren 10 месяцев назад
perfect !!
@heavenheavenheavenheavenheaven
@heavenheavenheavenheavenheaven 10 месяцев назад
One downside is negating doesn't work, so you can only compare the keypath against true.
@seanallen
@seanallen 10 месяцев назад
Very good point.
@chezchezchezchez
@chezchezchezchez 10 месяцев назад
I don’t know where else to ask you experts questions like this, so I want to ask a general swift data question. I’m really confused on this because it seems like Paul Hudson and Stuart Lynch are saying different things. General question with SwiftData: Is this set up correct? ----------------------------------------------------------- Game needs ONE location Locations can be assigned to many different games. @Model final class location { var id: UUID var text: String } @Model final class game { @Attribute(.unique) var id: UUID … var location: location? }
@kdtechniquesofficial6153
@kdtechniquesofficial6153 10 месяцев назад
Can you do a video on Predicate, wanna watch that topic from your voice... Thanks.
@seanallen
@seanallen 10 месяцев назад
I'll add it to the list.
@kdtechniquesofficial6153
@kdtechniquesofficial6153 10 месяцев назад
@@seanallen Thanks for your consideration.
@chezchezchezchez
@chezchezchezchez 10 месяцев назад
I’ll never write code the same again! 🎃 This was good. By the way, this symbol is called a backslash “\” This is called forward slash (or slash, for short) “/“
@seanallen
@seanallen 10 месяцев назад
Haha, I always get them mixed up 🤦
@chezchezchezchez
@chezchezchezchez 10 месяцев назад
@@seanallen to try to help you remember it just think about the very top part of the slash. Does it lean back? Or lean forward? There you go 😛
@davidruvinskiy6347
@davidruvinskiy6347 10 месяцев назад
Thanks Sean! Would it be correct to say that a key path is like a closure since a closure is a reference to a function (not the result of calling the function) and a key path is a reference to a property (not the value of the property)?
@seanallen
@seanallen 10 месяцев назад
I haven't heard it put that way, but yes, a KeyPath is a reference to the property itself, not the value the property represents.
Далее
Swift Closures Explained
14:23
Просмотров 64 тыс.
How to use KeyPaths in Swift | Advanced Learning #29
25:12
Your App Will Get Rejected | New Privacy Rules - 2024
11:26
Understanding Swift KeyPaths
28:06
Просмотров 4,2 тыс.
Swift - Class vs. Struct Explained
7:28
Просмотров 33 тыс.
Five tips to improve your Swift code 💪
11:28
Просмотров 4,8 тыс.
The Anatomy of a Key Path
13:43
Просмотров 3,2 тыс.