iPS 282: The Art of Designing Code with Mischa Hildebrand
In this episode of the iPhreaks Show the panel interviews, Mischa Hildebrand, asking about a talk he gave at iOS Conf 2019. Mischa has a very varied background, he studied to become a physicist, then did some journalism on television and radio before finally going into iOS development. His background in journalism gave a unique perspective into writing code that is beautiful and easy to understand. Mischa shares principles from his days in journalism and applies them to programming.
The panel shares their experiences working on legacy or unclear code, the describe the pain it was to interpret the code. Mischa’s principles while nothing new address the problems that turn into painful code. First, use short sentences, in other words, keep your lines short. Also, use simple language. The panel discusses what it means to use an active voice versus a passive voice. Another rule is to give one piece of information per sentence, this allows other developers to easily follow the code and its purpose.
- Mischa Hildebrand
- Law of Demeter
- The Art of Designing Code - iOS Conf SG 2019
- Code is a Language!
Where did Mischa get his inspiration for his principles of right clear code?
Rules he learned as a radio and television journalist.
What are some of the rules discussed by the panel?
Simple language, short sentences, active language vs passive language, one piece of information per sentence, positive naming.
What are some of the benefits of following these rules?
Easy turnover and more productivity.
How has the coding culture changed in the last ten years?
There is a greater emphasis on empathy and humans in the code.