In school, we are taught that there is always a number between two real numbers. So there is not such a thing as the smallest positive number. Except in Swift, that is. It is called "CGFloat.leastNormalMagnitude" and it is defined as the smallest of them all.
Great video. Halfway I was ready to add a comment saying that Enum is better than Struct for constants because you cannot initialize it, but then @v_pradeilles presented that option as well. Nice!
When you need to group constants together, should you use an enum or a static let?
The choice might be confusing, and rightfully so because it actually depends a lot on the context ๐คจ
So let me give you a few tips to pick the right answer!
https://t.co/M1Xt43MtlD
Retain cycles are always a big source of trouble for iOS developersโฆ
Today I want to show you how a syntax that looks safe on the surface, will actually lead to big old retain cycle ๐ฑ
https://t.co/zRGUWCZQAO
Great code - Tip 20 - Write your code in 5 "C" steps
1. Write Code that works
2. Write Comments that explain the code
3. Combine the Code and the Comments
#codinginstyle
Great code - Tip 19 - Do not create entities with names that are very similar and can be confused especially when using autocomplete.
#codinginstyle
//bad choice of names
func loadUserDetailsScreenFromMapUserScreen() {}
func loadUserDetailsScreenFromMapUsedScreen() {}
"Voice Driven Development: Who needs a keyboard anyway?" by Emily Shea (2019) - talk to show how stubborn are the devs when they want to code :-)
https://t.co/B55B03ljus