Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore techniques for optimizing Swift code to enhance separation of concerns and simplicity in this 21-minute conference talk from try! Swift Tokyo 2018. Dive into practical examples demonstrating how to improve code comprehension by separating what code does from how it does it. Learn about code reviewing, reducing duplication, extracting logic, and implementing best practices in areas such as Autolayout, custom operators, table view management, and state updates. Gain insights from speaker Javier Soto, an experienced iOS developer, on writing more maintainable and understandable Swift code for your projects.
Syllabus
Introduction
Code Reviewing
Reading code
Code duplication
Understanding the code
Reading the code
Extracting the logic
Autolayout
Custom operators
Goons
Before and After
Table view
reorder rows
user defaults
backwards compatibility
touch targets
minimum hit area button
hide sub use
context
optional views
Explicit views
Updating state
Updating state bar
Summary
Taught by
try! Swift Conference