What Are Result Builders?

  Рет қаралды 2,508

Kit Langton

Kit Langton

Күн бұрын

"What are Result Builders?" you scream madly into the night.
Why, they're the secret sauce behind SwiftUI! They're the magical mechanism enabling Swift's special blend of declarative DSLs. So, let's tear them apart and see how they work, so you can start putting them to work in your own code.
Become Magical Code Buddy: / kitlangton
Further Ramblings: / kitlangton

Пікірлер: 40
@eliasayele1102
@eliasayele1102 4 ай бұрын
Well I thought I was just lazy and didn’t want to learn, but it turns out I was simply missing great teachers like this in my life.
@philcole4630
@philcole4630 Жыл бұрын
Wow, great video!!! I struggle to watch lecture videos let alone come away feeling a learned something the first time. I watched this whole video (the first time) and I retained the information you presented on result builder. Subscribed
@kitlangton
@kitlangton Жыл бұрын
Amazing 🫡 Happy to be of service! Teaching Success! 🔥👨‍🏫🔥
@IkedaDogbo
@IkedaDogbo 11 ай бұрын
Top tier presentation
@ghazitozri4989
@ghazitozri4989 Жыл бұрын
Thank you for sharing ! Dope edit btw !!
@kitlangton
@kitlangton Жыл бұрын
Haha. Thank you! I put a little more elbow grease into the editing for this one 😜
@KeshenMac
@KeshenMac Жыл бұрын
I religiously watch & Like all your videos
@kitlangton
@kitlangton Жыл бұрын
O, Great Blessings! May your code compile swiftly and without error! ❤️‍🔥
@RichardBaileyrichoncode
@RichardBaileyrichoncode Жыл бұрын
Nicely presented. Thank you.
@kitlangton
@kitlangton Жыл бұрын
Glad it was helpful!
@last_aid_kit
@last_aid_kit Жыл бұрын
what great content. thanks for the video!
@kitlangton
@kitlangton Жыл бұрын
Glad you liked it! 😎
@movietime345
@movietime345 Жыл бұрын
very nicely explained, once again!
@kitlangton
@kitlangton Жыл бұрын
Woo! That's great to hear. I become increasingly skeptical of what I've made the further I get into editing 😅. There's still so much to talk about, but I don't think anyone wants a 5-hour Result Builder epic.
@movietime345
@movietime345 Жыл бұрын
@@kitlangton I'd vote *for* it. I personally enjoy these deep dives, and you really know how to also bring the "why" in the discussion, along with the "how"
@brandonmaul
@brandonmaul Жыл бұрын
Well done again Kit. Are these all done in Keynote or Final Cut? Or was the snippet you showed at 8:45 actually how you're building these?
@kitlangton
@kitlangton Жыл бұрын
For this one, I wrote a SwiftUI slideshow DSL and did it in that-so yeah, 8:45 is a bit meta 😄 It uses ResultBuilder as well!
@arulpraveen
@arulpraveen Жыл бұрын
@@kitlangtonWhat!!! This is super impressive. You are the kind of person the world needs. Could you help me get started with this meta project too? I really aspire to build something like this.
@aleksandrzinovev429
@aleksandrzinovev429 3 ай бұрын
I laughed at some points like with 3 result budders and Steve
@manasemichaelmhando8034
@manasemichaelmhando8034 Жыл бұрын
Honestly, I almost drop out the first 30-60secs THEN gave in to give it a shot later to find this entire video very useful. The intro was a bit stretched out and delayed the main point but overall great video and thanks for putting hours to create such resourceful content. SUBSCRIBED ✨
@Griffin12536
@Griffin12536 Жыл бұрын
Took me 20 seconds to like you and realize you weren't talking about Rust. YT algorithm fail. Love your style. Good luck with the content.
@kitlangton
@kitlangton Жыл бұрын
Haha, oh no! I code-catfished you! `Result` must've confused the old KZbin 😜 Thanks for the kind words despite my accidental duplicity! 🥰
@chrisjackson9733
@chrisjackson9733 Жыл бұрын
Another great video but I'm a little confused. Sonic Beige sounds cool and all, but what happened to Liquid Beige?
@kitlangton
@kitlangton Жыл бұрын
NOOOO! Where's my script supervisor?! 🚨🚨🚨Continuity Alert! 🚨🚨🚨 (haha, I think it briefly crossed my mind that I might've bungled a beige somewhere between segments).
@chrisjackson9733
@chrisjackson9733 Жыл бұрын
@@kitlangtonI only noticed because I'm going through a Liquid Beige phase, myself. 🥴
@aloussase
@aloussase Жыл бұрын
Hi Kit! Do you have any thoughts on Flutter?
@kitlangton
@kitlangton Жыл бұрын
Not particularly, to be honest. I've never used it myself. I am primarily interested in writing for iOS and macOS, simply because I'm a user of those platforms. Also, I've been quite pleased with the direction of Swift and SwiftUI-so a cross-platform app development platform probably wouldn't compete favorably given the whole Swift/Apple vertical integration thing 😅 But happy to look into something specific, if you'd like me to form an opinion on something 😁
@aloussase
@aloussase Жыл бұрын
@@kitlangton Well the reason I asked is because thanks to your videos Ive developed a liking for UI stuff. I wanted to use Swift but dont have a Mac or Iphone so I started learning Flutter instead. I found some similarities, for example Dart has a feature similar to result builders for arrays. Anyway, I think everything you're showing is super cool and will definitely try recreating it with Flutter!
@kitlangton
@kitlangton Жыл бұрын
@@aloussase ❤ That sounds great! I find UI programming to be very fun. There's a bit more tactility & delight than with straight backend work-though that can be fun too! Flutter would certainly be the closest thing to SwiftUI out there-I'm sure SwiftUI was partially influenced by it. Give it a whirl and let me know how it stacks up 😊
@sumanth3036
@sumanth3036 Жыл бұрын
How are you presenting? So cool. Is it a mac thing?
@kitlangton
@kitlangton Жыл бұрын
Why, I made a little slide show DSL with SwiftUI! 🤓 And thank you! ☺️
@sumanth3036
@sumanth3036 Жыл бұрын
Awesome!! Subscribed. How about you doing a video about that? 🤓
@kitlangton
@kitlangton Жыл бұрын
​@@sumanth3036 That's a wonderful idea 😁 I've put it on the list 🥳
@Westmaner
@Westmaner 7 ай бұрын
Kit, Amazing video. Thank you. Keep up the great work. Perhaps you could build a small app to show us your work flow of app development. I am particularly interested in how you handle mac and iOS differences in a multiplatform project.
@kitlangton
@kitlangton 7 ай бұрын
That's a great idea! I've been wanting to build a lil' meditation timer app for myself, so perhaps this is a good opportunity.
@nicklegorrec6859
@nicklegorrec6859 2 ай бұрын
do any ios developers actually use custom result builders at their company job?
@kitlangton
@kitlangton 2 ай бұрын
It's more likely relevant to people developing libraries. Of course, it be useful to understand how it works in order to interact with said libraries, especially when things don't behave as you'd like them to. 😄 But yeah, I doubt people are often making a bunch of custom protocols all the time for app work.
@JumpingCow
@JumpingCow Жыл бұрын
Fantastic! Another Apple thingy carefully demystified.
@kitlangton
@kitlangton Жыл бұрын
Another thingy soundly defeated! 🤺
@aleksandrzinovev429
@aleksandrzinovev429 3 ай бұрын
you are best )
Understanding SwiftUI ViewBuilders
21:57
Stewart Lynch
Рет қаралды 10 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 40 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 270 М.
Spring Animation from Scratch - Part 1 of 2
28:52
Kit Langton
Рет қаралды 2,6 М.
Custom Swift Property Wrappers
23:59
Stewart Lynch
Рет қаралды 4,5 М.
I tried Swift and came out a different person
1:56:59
Tsoding Daily
Рет қаралды 136 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 855 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 106 М.
Result Builders in Action: Simplifying HTML Generation in Swift
10:40
Swift and Tips
Рет қаралды 2,9 М.
Swipe Actions from Scratch - Part 1 of 2
47:20
Kit Langton
Рет қаралды 2,7 М.