NOT JUST FOR BEGINNERS!!! (Paused again at 10:46 to say OMG!) I have 1 app on the App Store and 3 others that are being tested on TestFlight - so I’d be hard pressed to call myself a beginner at this point. My apps use dictionaries and arrays all over the place - and omg have I been making things so hard on myself! I had no idea that a For statement could have a where clause - and I had no clue that I could get Key and Value together so easily when looping through a dictionary!!! To put this discovery into the proper context. Here is what I’ve been doing to iterate through my dictionaries: someDict[String:Any] (data returned from Firebase) for key in someDict.keys { let dictKey = key var dictVal:[String] = [] if let val = someDict[key] as? [String] { dictVal = val } } So ugly - right? OMG - this video is going to improve my coding dramatically. Thank you, thank you, thank you!!!
Yeah, I'm not a beginner either, but I still enjoy Sean's videos because several things I thought I knew I really wasn't clear on. Oh, and I feel "so superior" when I know more than he is showing... Which is a good teaching style that helps build the confidence of the student. Sean is honest. He shares through his mistakes and keeps the flow of incremental coding going. Yes, I want more advanced "lessons," but I get a lot out of watching and listening to Sean every time I do. I'm sure it isn't easy to keep working on these videos for us all to enjoy without some good feedback every now and then.
@Tenly2009 Nice! I try to put little gems in all my videos if I can. I was hesitant to call this a beginner video (even though it's aimed at beginners) because I figured there's be some insights that even experienced developers might not be clear on.
There is a convenient way to go through array’s index and element: for (index, player) in nbaAllStars.enumerated() { print(“\(index + 1). \(player)”) } PS: Sean probably cut this out since it’s beginner video.
So - is “index” a special keyword when using enumerated() - or can it be “idx” or “playerIdx” or something else at the programmers whim? It’s definitely a good tip. I’ve been using: var i = 0 for player in nbaAllStars { i += 1 print(“\(i). \(player)”) } Using enumerated() seems much cleaner.
Hey Sean... great video as always. Will definitely be sitting my son down in front of your “Beginner Series” videos. Just one piece of constructive criticism so far (I paused at 4:40 to write this comment): Had I been an actual beginner, I would have become distracted by your use of “0..
You have discovered one of Sean's effective teaching techniques... introduce syntax or concept in real usage, then explain it later when it the usage story/result has been completed. Repeating later to solidify the new term.
Hey Sean nice and short video covers loops perfectly and the explanation is too the point. Especially like the analogy of while and repeat while. Have you thought of making videos on data structures and algorithms using swift or can you suggest some good books to me for learning data structures and algorithms because I feel I am very week at that and wanting to improve as it has been asked in many of my interviews and I suck in that.
No. If you're applying for an iOS developer job at a company, the vast majority of the time there's not an expectation that you know multiple languages. It can be helpful and a nice bonus, but not a requirement.
Given same condition, same loop content, and of course assuming condition is side-effect free as it should be. The only difference between while vs repeat-while (do-while elsewhere) is at the first loop. If while run once, so does repeat-while. If while run twice, so does repeat-while, and so one. If while doesn’t run, repeat-while run once, which is the sole difference in behavior.
The check-before-do vs do-before-check is a myth really, since you always check before doing the *next* one. The question is really if you check before doing the *first* one.
Some feedback to the Swift Devs. The pace of language evolution is so fast that a lot of devs are just over the constant need to re-write and update. Unlike python, which is stable, the core team works on developing support infrastructure and libraries. This came up when thinking about SwiftUI. The paradigm shift and changes are so big, than no big studio or team is thinking of using it, even for new apps. Some large apps I work with are still in Objective-C due to the cost of re-rewrite, and Objective-C is stable. The swift people need to really slow down with the language changes and focus on support libraries. It's getting out of hand. * END RANT *
Glad you liked that. You just inspired me to make a video on all the uses of .random() since it's relatively new in Swift. Many may not be aware of all the uses.
Watch Next - iOS Dev Job Interview Practice - Take Home Project Course - ruclips.net/video/MSIe2y6Fee8/видео.html
I love that roadrunner/coyote illustration for a good repeat-while explanation
It's a good one
Haha. Just saw that. May need to find that for Wednesday
Fan of your podcast!
dude i love your videos i am saving them for watch later, however this one is awesome.
Happy to hear that you enjoy them, Meshall 😀
Sean's response to Lebron's score at 15:18 lol
That coyote illustration! Will never look at a repeat/while loop the same way again 😂
Haha, I thought it was great too.
GREAT TUTORIAL, JUST WHAT I NEEDED...THX!!! LOVED THD ROADRUNNER CARTOON :-)
Glad it helped!
Very educational, thanks
Glad you liked it, Erhan 😀
Could you please Explain briefly about GCD and ARC
I have an older video that goes into that a bit. ruclips.net/video/VcoZJ88d-vM/видео.html
Yeah I saw that but I wanna learn little bit more stuff on the same Kindly do the one video about GCD & ARC
Back at it again. Thanks brother
NOT JUST FOR BEGINNERS!!!
(Paused again at 10:46 to say OMG!)
I have 1 app on the App Store and 3 others that are being tested on TestFlight - so I’d be hard pressed to call myself a beginner at this point.
My apps use dictionaries and arrays all over the place - and omg have I been making things so hard on myself! I had no idea that a For statement could have a where clause - and I had no clue that I could get Key and Value together so easily when looping through a dictionary!!!
To put this discovery into the proper context. Here is what I’ve been doing to iterate through my dictionaries:
someDict[String:Any] (data returned from Firebase)
for key in someDict.keys {
let dictKey = key
var dictVal:[String] = []
if let val = someDict[key] as? [String] {
dictVal = val
}
}
So ugly - right? OMG - this video is going to improve my coding dramatically. Thank you, thank you, thank you!!!
Yeah, I'm not a beginner either, but I still enjoy Sean's videos because several things I thought I knew I really wasn't clear on. Oh, and I feel "so superior" when I know more than he is showing... Which is a good teaching style that helps build the confidence of the student. Sean is honest. He shares through his mistakes and keeps the flow of incremental coding going. Yes, I want more advanced "lessons," but I get a lot out of watching and listening to Sean every time I do. I'm sure it isn't easy to keep working on these videos for us all to enjoy without some good feedback every now and then.
@Tenly2009 Nice! I try to put little gems in all my videos if I can. I was hesitant to call this a beginner video (even though it's aimed at beginners) because I figured there's be some insights that even experienced developers might not be clear on.
@Don Sleeter - Thanks for the kind words and feedback Don!
There is a convenient way to go through array’s index and element:
for (index, player) in nbaAllStars.enumerated() {
print(“\(index + 1). \(player)”)
}
PS: Sean probably cut this out since it’s beginner video.
lol, your P.S. was exactly correct. Don't want to throw too much at the viewer and possible overwhelm them since this is meant for absolute beginners.
So - is “index” a special keyword when using enumerated() - or can it be “idx” or “playerIdx” or something else at the programmers whim?
It’s definitely a good tip. I’ve been using:
var i = 0
for player in nbaAllStars {
i += 1
print(“\(i). \(player)”)
}
Using enumerated() seems much cleaner.
@@Tenly2009 It can be anything.
Good video! Please make video on Core Data
Glad you liked it!
I didn’t know there was a Bool.Random(). Pretty neat. How long has that been around?
I believe Swift 4.2
Thanks for the video. ❤️
Happy to help!
Hey Sean... great video as always. Will definitely be sitting my son down in front of your “Beginner Series” videos.
Just one piece of constructive criticism so far (I paused at 4:40 to write this comment):
Had I been an actual beginner, I would have become distracted by your use of “0..
You have discovered one of Sean's effective teaching techniques... introduce syntax or concept in real usage, then explain it later when it the usage story/result has been completed. Repeating later to solidify the new term.
You're on to me, Don...
Nice video keep up the good work ✌🏻💪🏻
Happy that you liked it!
how does the code know player? as player has not been assigned to anything? is it a variable?
Hey Sean nice and short video covers loops perfectly and the explanation is too the point. Especially like the analogy of while and repeat while. Have you thought of making videos on data structures and algorithms using swift or can you suggest some good books to me for learning data structures and algorithms because I feel I am very week at that and wanting to improve as it has been asked in many of my interviews and I suck in that.
I don't know if I'd call it "short", but happy to hear you liked the video and enjoyed the analogy at the end 😂
Sean Allen 🤣
Good as always ;) Thanks!
Glad you liked it!
Should've thrown Kobe in the mix as a tribute! 😜 Great video!
That would have been a great idea...
Sean Allen Also, that dunk by Lebron was such an epic in game dunk! Love that you threw that in the video!
Is it hard to get an iOS job only knowing Swift? I feel like most job postings say they want you to know multiple languages.
No. If you're applying for an iOS developer job at a company, the vast majority of the time there's not an expectation that you know multiple languages. It can be helpful and a nice bonus, but not a requirement.
Thanks for the explanation of 0..< that threw me off /java programmer
Given same condition, same loop content, and of course assuming condition is side-effect free as it should be. The only difference between while vs repeat-while (do-while elsewhere) is at the first loop.
If while run once, so does repeat-while.
If while run twice, so does repeat-while, and so one.
If while doesn’t run, repeat-while run once, which is the sole difference in behavior.
The check-before-do vs do-before-check is a myth really, since you always check before doing the *next* one. The question is really if you check before doing the *first* one.
Can you split the videos into "While", "Repeat", and "For"
I've never looked at swift, from this video is seems like a strange baby of Python and JavaScript
A little bit too fast-paced for a beginner but still very good video
Thanks for the feedback. I'll keep that in mind (genuinely, sometimes text can sound sarcastic 😀)
why would I want to run before checking if I'm on the edge. That would be disastrous lol. great content !!!!
Some feedback to the Swift Devs. The pace of language evolution is so fast that a lot of devs are just over the constant need to re-write and update. Unlike python, which is stable, the core team works on developing support infrastructure and libraries. This came up when thinking about SwiftUI. The paradigm shift and changes are so big, than no big studio or team is thinking of using it, even for new apps.
Some large apps I work with are still in Objective-C due to the cost of re-rewrite, and Objective-C is stable. The swift people need to really slow down with the language changes and focus on support libraries.
It's getting out of hand.
* END RANT *
you speak so quick, It is hard to follow you but I interest in your lessons very much:((((
Bool.random() 😱♥️
D O C true
Glad you liked that. You just inspired me to make a video on all the uses of .random() since it's relatively new in Swift. Many may not be aware of all the uses.
I went to DevMountain and I would definitely not recommend it.
FIRST COMMENT! :D