Write Better Code with Swift Algorithms

  Переглядів 31,327

Paul Hudson

Paul Hudson

2 роки тому

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!

КОМЕНТАРІ: 40
@hansrietmann9511
@hansrietmann9511 2 роки тому
I absolutely LOVEEE this framework! Thank you for sharing this Paul ❤️❤️❤️
@CodeSlicing
@CodeSlicing 2 роки тому
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! 👍🏻
@KiwiVanderman
@KiwiVanderman 7 місяців тому
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...
@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!
@calebhermann
@calebhermann 2 роки тому
Great work on this video! You always help me level up my work. :)
@liokskarbach
@liokskarbach 2 роки тому
Awesome! Thank you very much, Paul!
@pokiishere-sebastian2126
@pokiishere-sebastian2126 2 роки тому
Excellent video, thanks! 👍🏻
@BTFranklin
@BTFranklin 2 роки тому
"Boris had a grade of F". Subtle, Paul. Subtle. :)
@multitudes389
@multitudes389 2 роки тому
Such a good idea to release this video just at the start of the advent of code 💯👍🏻💛
@thyself125
@thyself125 2 роки тому
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?
@egormerkushev
@egormerkushev 2 роки тому
Pretty nice demo!
@Rekotek
@Rekotek 2 роки тому
It is sooooo useful! Thank you a lot!
@GONGELOS
@GONGELOS 10 місяців тому
Thanks! Love it
@DmitryKanunnikoff
@DmitryKanunnikoff 2 роки тому
Great! Thank you very much!
@atlassimulor8512
@atlassimulor8512 2 роки тому
wow! amazing! Thanks a lot!
@BlackPocketYT
@BlackPocketYT Рік тому
Boris, at the end by himself, where he deserves to be. Bravo.😂
@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 !
@milesedgeworth60
@milesedgeworth60 2 роки тому
Tony, Theresa, and Boris with the bad grades eh? 😜
@hamslammula6182
@hamslammula6182 2 роки тому
A lot of Boris shade in this video 😂
@navjotsingh2251
@navjotsingh2251 2 роки тому
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
@darkslashhero
@darkslashhero 2 роки тому
Great
@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 10 місяців тому
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.
@dimitardimitrov7868
@dimitardimitrov7868 Рік тому
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 10 місяців тому
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’
@Kucchuu
@Kucchuu 6 місяців тому
👍👍👍
@f00kwhiteblackracismwarsh07
@f00kwhiteblackracismwarsh07 2 роки тому
Hi Paul, swift beginner here. Please send me link to your beginner swift course video that’s updated.
@famuleolamide7026
@famuleolamide7026 2 роки тому
goodluck!!
@axemanaxeman
@axemanaxeman 2 роки тому
Hi Paul 🙋‍♂️
@dominikgrodl7822
@dominikgrodl7822 2 роки тому
Theresa and Boris with grades of D and F chosen totally randomly i suppose :D
@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 Рік тому
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 Рік тому
@@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!
8 Things I Wish I Knew When I Started Programming
19:51
Paul Hudson
Переглядів 36 тис.
5 Steps to Better SwiftUI Views
31:19
Paul Hudson
Переглядів 54 тис.
I PUT MY ARMOR ON (Creeper) (PG Version)
00:19
Sam Green
Переглядів 6 млн
Пескоструйный АППАРАТ! #shorts
01:00
Гараж 54
Переглядів 2,8 млн
Why Is Lua So Popular?
8:03
Awesome
Переглядів 78 тис.
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Lex Clips
Переглядів 146 тис.
Big Tech AI Is A Lie
16:56
Tina Huang
Переглядів 55 тис.
STOP Learning These Programming Languages (for Beginners)
5:25
Andy Sterkowitz
Переглядів 622 тис.
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Переглядів 72 тис.
How use async and await
17:38
SwiftSimple
Переглядів 1,1 тис.
8 Common SwiftUI Mistakes - and how to fix them!
28:05
Paul Hudson
Переглядів 49 тис.
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Переглядів 2,4 млн
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24
Компьютер подписчику
0:40
Miracle
Переглядів 207 тис.