My coding timeline
I love Swift, there's something about the language that makes it fun to write. Aside from the fact that it's a multi-paradigm language â€“meaning I can write in a variety of styles such as Imperative, Functional Declarative, and Object Orientedâ€“ it also introduces Protocol Oriented Programming which feels a lot like Java's interfaces. In fact, the only thing that's worrisome about Swift is that I must stay remain extra disciplined and not get carried away with its flexibility.
Staying clear and purposeful
So far, I've only found one tool that can help my team and I preserve clarity of intent while writing code.
- Follow the New York Times Style Guide for Objective-C as much as possible.
Yes, I know, Swift is different from Objective-C but I really feel that the NYT has done a great job going beyond the language itself in creating rules that can be applied for any language. For example, Conditionals MUST use braces.