Dragos Ionel
@dragosionel
Followers
214
Following
466
Media
74
Statuses
795
Mobile dev
Toronto, Canada
Joined July 2009
Just bought "iOS Unit Testing: The Definitive Guide" by @qcoding. Looking forward to reading it. https://t.co/eUGWpYSEes
qualitycoding.org
Technical Agile Practices for iOS Developers
0
0
0
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.
0
0
0
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
0
0
1
Great article about the future of Combine (at least how it looks in the present) by @johnsundell
https://t.co/VfGBUYohea
wwdcbysundell.com
Is Combine still something worth investing in, or is it likely that it’ll be deprecated and made obsolete within the near future? Let me share my thoughts on that.
1
0
1
If you thought you knew everything about retaining cycles using self, you might learn a couple of new things from this video, just like I did :-)
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
0
0
1
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
0
0
1
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() {}
0
0
1
"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
0
0
0
"The default place for all of our code — UI code and otherwise — is the main thread". Great article by Brent Simmons:
0
0
0
Great code - Tip 16 Simplify your code by adding the constants in the smallest context possible and in the appropriate places #codinginstyle
0
0
0
Great Code - Tip 14 Simplify the switches by combining the conditions that are leading to the same result - suggested by Sean Batson #codinginstyle
0
0
0
Great Code - Tip 12 - Simplify the if-s by being positive first. It makes the code easier to understand #codinginstyle
0
0
0
Great Code - Tip 9 - Simplify the if-s by learning boolean logic. For example, you should know that: not (X and Y) = (not X) or (not Y) Here is a link to a tutorial: https://t.co/LmXGzfOWUB
#codinginstyle
0
0
1
Great Code - Tip 8 - Simplify the if-s by defining constants to explain what is happening #codinginstyle
0
0
1
I had to investigate some crashes that I was not able to reproduce. Here are some articles of @twannl that helped with the investigation : https://t.co/wMDTGNSmli
https://t.co/xtwq2Uz82x
https://t.co/HqwlkjPsao These and the fact that, in Swift, arrays are not thread-safe.
0
2
8