Write Better Code with Swift Algorithms

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • Apple's open source Swift Algorithms package comes with stacks of types and functions that help us write faster, simpler, safer Swift code. In this video I'm going to walk you through a handful of my favorite parts of the package so you can get started fast.
    01:51 Chaining sequences
    05:02 Chunking sequences
    12:32 Random sampling
    15:06 Striding over a sequence
    17:48 Finding unique elements
    21:10 Stripping out optionality
    22:44 Improving nested loops
    28:38 Sliding windows into sequences
    31:00 Minimum and maximum
    32:51 And there’s more!

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

  • @KiwiVanderman
    @KiwiVanderman 11 หลายเดือนก่อน

    lol this guys so good at articulating code related topics that its almost annoying. I wish my lecturers and even engineering mentors had had this talent...

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

    Thanks for this, Paul. Your enthusiasm for this framework is infectious! I’ll definitely be poking around in this one. Wish I’d done it a lot sooner! 👍🏻

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

    "Boris had a grade of F". Subtle, Paul. Subtle. :)

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

    Boris, at the end by himself, where he deserves to be. Bravo.😂

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

    Great! Thank you very much!

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

    Tony, Theresa, and Boris with the bad grades eh? 😜

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

    Such a good idea to release this video just at the start of the advent of code 💯👍🏻💛

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

    Thanks! Love it

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

    Awesome! Thank you very much, Paul!

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

    Great work on this video! You always help me level up my work. :)

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

    I absolutely LOVEEE this framework! Thank you for sharing this Paul ❤️❤️❤️

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

    Excellent package! Thank you for sharing

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

    So good! So helpful! Thank you Paul!!

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

    Super helpful resource, thank you!

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

    Hello Paul, I really enjoy your videos and teaching style. I’m a long time subscriber of this channel. Is there a chance you will ever cover data structures and algorithms in swift?

  • @pokiishere-sebastian2126
    @pokiishere-sebastian2126 2 ปีที่แล้ว

    Excellent video, thanks! 👍🏻

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

    A lot of Boris shade in this video 😂

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

    Pretty nice demo!

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

    It is sooooo useful! Thank you a lot!

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

    I have a weird problem on my swift app. It runs perfectly on iPad, but on iPhone, it's like, the interrupt slows down, but if I touch the screen, it can speed up to normal again.

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

    wow! amazing! Thanks a lot!

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

    Paul, can you do a video on how to solve leetcode problems using swift? You have such a good job, and I would love to learn more . I’m new to swift, and programming. Thank you for your video :)

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

      Yes, that would be perfect

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

    You should make an BLE Mesh tutorial with the nrfmesh sdk, minimum viable to dim a led ;) You are awesome by the way !

  • @Kucchuu
    @Kucchuu 9 หลายเดือนก่อน

    👍👍👍

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

    Great

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

    Hi! What do you think what do developers do in the companies? They are using such kinds of libraries or they write the code manually following good algorithms practices? For interviews and live tasks you need to to manually without libraries :)

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

      For those who, you know, maybe want to get things done faster and don’t want to work for companies with absurd requirements to reinvent the wheel, this might be useful. Just sayin’

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

    Theresa and Boris with grades of D and F chosen totally randomly i suppose :D

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

    I have an unrelated question, if I may ask: is Swift good to perform calculations with big set of data, let's say for statistics purposes?

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

      The swift compiler produces very good code. The type safety and other restrictions that are at compile time give it some very good hints that aid in optimization.

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

    Hi Paul 🙋‍♂️

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

    Hi Paul, swift beginner here.
    Please send me link to your beginner swift course video that’s updated.

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

    Mar5 22

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

    Finally, somebody teaches as not Python or Java or C++, but something really cool. But IDE is terrible, if I type just 'a', the IDE should know that I need algorithms. When Apple will learn how to use A?I? Who knows.

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

      XCode is like 10 years behind Intellij and has a lot of bugs which have not been solved for years -> probably just because this is not a focus of Apple. There is no alternative for XCode so things will most likely remain like this.

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

      @@tbg6nb Maybe Apple consider that iOS development isn't for every one. It is for highly intelligent people who are tolerant to the imperfection.

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

    You are lucky you video didn't watch Parag.

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

    It is sooooo useful! Thank you a lot!

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

    It is sooooo useful! Thank you a lot!