What Are Result Builders?

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • "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

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

  • @philcole4630
    @philcole4630 11 месяцев назад +7

    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  11 месяцев назад

      Amazing 🫡 Happy to be of service!
      Teaching Success! 🔥👨‍🏫🔥

  • @IkedaDogbo
    @IkedaDogbo 6 месяцев назад +3

    Top tier presentation

  • @RichardBaileyrichoncode
    @RichardBaileyrichoncode 7 месяцев назад +1

    Nicely presented. Thank you.

    • @kitlangton
      @kitlangton  7 месяцев назад

      Glad it was helpful!

  • @KeshenMac
    @KeshenMac 11 месяцев назад +4

    I religiously watch & Like all your videos

    • @kitlangton
      @kitlangton  11 месяцев назад +1

      O, Great Blessings! May your code compile swiftly and without error! ❤️‍🔥

  • @ghazitozri4989
    @ghazitozri4989 11 месяцев назад +2

    Thank you for sharing ! Dope edit btw !!

    • @kitlangton
      @kitlangton  11 месяцев назад +2

      Haha. Thank you! I put a little more elbow grease into the editing for this one 😜

  • @last_aid_kit
    @last_aid_kit 9 месяцев назад +1

    what great content. thanks for the video!

    • @kitlangton
      @kitlangton  9 месяцев назад

      Glad you liked it! 😎

  • @manasemichaelmhando8034
    @manasemichaelmhando8034 8 месяцев назад +1

    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 ✨

  • @Westmaner
    @Westmaner 2 месяца назад +1

    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  2 месяца назад

      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.

  • @movietime345
    @movietime345 11 месяцев назад +1

    very nicely explained, once again!

    • @kitlangton
      @kitlangton  11 месяцев назад

      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 11 месяцев назад +2

      @@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"

  • @Griffin12536
    @Griffin12536 11 месяцев назад +1

    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  11 месяцев назад

      Haha, oh no! I code-catfished you! `Result` must've confused the old RUclips 😜
      Thanks for the kind words despite my accidental duplicity! 🥰

  • @JumpingCow
    @JumpingCow 11 месяцев назад +1

    Fantastic! Another Apple thingy carefully demystified.

    • @kitlangton
      @kitlangton  11 месяцев назад

      Another thingy soundly defeated! 🤺

  • @chrisjackson9733
    @chrisjackson9733 11 месяцев назад +1

    Another great video but I'm a little confused. Sonic Beige sounds cool and all, but what happened to Liquid Beige?

    • @kitlangton
      @kitlangton  11 месяцев назад +1

      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 11 месяцев назад +1

      @@kitlangtonI only noticed because I'm going through a Liquid Beige phase, myself. 🥴

  • @brandonmaul
    @brandonmaul 11 месяцев назад +2

    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  11 месяцев назад +3

      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 8 месяцев назад

      @@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.

  • @sumanth3036
    @sumanth3036 11 месяцев назад +1

    How are you presenting? So cool. Is it a mac thing?

    • @kitlangton
      @kitlangton  11 месяцев назад +1

      Why, I made a little slide show DSL with SwiftUI! 🤓 And thank you! ☺️

    • @sumanth3036
      @sumanth3036 11 месяцев назад +1

      Awesome!! Subscribed. How about you doing a video about that? 🤓

    • @kitlangton
      @kitlangton  11 месяцев назад +1

      ​@@sumanth3036 That's a wonderful idea 😁 I've put it on the list 🥳

  • @aloussase
    @aloussase 11 месяцев назад +1

    Hi Kit! Do you have any thoughts on Flutter?

    • @kitlangton
      @kitlangton  11 месяцев назад

      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 10 месяцев назад +1

      @@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  10 месяцев назад

      @@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 😊