qcoding, Just did a personal coaching session with an iOS dev:
• Discussed how to reduce conditionals in their view model with Strategy pattern
• Changed test from using oddly exposed property to testing behavior
• Extracted test helper to improve readability
• Xcode's automated refactoring is weak, but is still better than doing things by hand
• Simplified test code and removed clutter (code that had no effect)I learned from them:
• Xcode has Editor > Structure > Format to Multiple Lines (^M)
Add comment