Dragos Ionel Profile
Dragos Ionel

@dragosionel

Followers
214
Following
466
Media
74
Statuses
795

Mobile dev

Toronto, Canada
Joined July 2009
Don't wanna be here? Send us removal request.
@dragosionel
Dragos Ionel
4 years
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
@dragosionel
Dragos Ionel
4 years
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
@dragosionel
Dragos Ionel
4 years
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!
@v_pradeilles
Vincent Pradeilles
4 years
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
@dragosionel
Dragos Ionel
5 years
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 :-)
@v_pradeilles
Vincent Pradeilles
5 years
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
@dragosionel
Dragos Ionel
5 years
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
@dragosionel
Dragos Ionel
5 years
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
@dragosionel
Dragos Ionel
5 years
"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
@dragosionel
Dragos Ionel
5 years
Great code - Tip 18 - Simplify the if-s by adding each condition on a new line #codinginstyle
0
0
1
@dragosionel
Dragos Ionel
5 years
"The default place for all of our code — UI code and otherwise — is the main thread". Great article by Brent Simmons:
0
0
0
@dragosionel
Dragos Ionel
5 years
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
@dragosionel
Dragos Ionel
5 years
Great podcast from @OfferZen
0
0
1
@dragosionel
Dragos Ionel
5 years
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
@dragosionel
Dragos Ionel
5 years
Great Code - Tip 12 - Simplify the if-s by being positive first. It makes the code easier to understand #codinginstyle
0
0
0
@dragosionel
Dragos Ionel
5 years
Great Code - Tip 11: Simplify the if-s by removing some of the conditions #codinginstyle
0
0
0
@dragosionel
Dragos Ionel
5 years
Great Code - Tip 10: Simplify an if by, well, getting rid of it #codinginstyle
0
0
1
@dragosionel
Dragos Ionel
5 years
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
@dragosionel
Dragos Ionel
5 years
Great Code - Tip 8 - Simplify the if-s by defining constants to explain what is happening #codinginstyle
0
0
1
@dragosionel
Dragos Ionel
5 years
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
@dragosionel
Dragos Ionel
5 years
Great Code - Tip 7 Simplify the if-s by extracting methods #codinginstyle
0
0
0