Common mistakes no one bothers about – Explicitness in Swift
Coding practices at their worst. Rant about implicitness in Swift function and property calls.
Coding practices at their worst. Rant about implicitness in Swift function and property calls.
Coding practices at their worst. Rant about Swift macros and compiler directives spilling into the code.
Coding practices at their worst. Rant about Swift extensions being unused.
Coding practices at their worst. Rant about Swift first order functions being underutilized.
Coding practices at their worst. Rant about the decomposition in Swift.
Hello there, my sweet fellow developers, Sometimes you could write a code, that is not duplicated on the syntax level, but is duplicated logically. Lets take a look at a simple case:
1 2 3 4 5 6 7 8 |
func faultyEqualValues(_ value1: Int, _ value2: Int) -> Bool { if value1 == value2 { return true } else { return false } } |
Ultimately, this piece of code says: “if yes return yes, otherwise return no”. A weird accent, I could say. Lets rewrite it … Continued
Coding practices at their worst. Rant about magic values in Swift.
More than 3 years passed since the first public announcement of Swift. So, it is a good idea to take a look at Objective-C in order to find out its place in the world of software development. As of now, Apple changed ObjC for better Swift compatibility quite a bit, making it more type-oriented, which … Continued
Do you hate Swift iflet and guard verbose syntax? I have a solution for you.