Swift and iOS dev with Igor
The ride of the iOS developer

The Tablets (aka Best Intentions)

Bug fixes

North Star

  • create a test to reproduce the bug
  • change code to fix the bug
  • keep the test in the codebase to prevent regressions

Worst case

If test setup is really difficult/complex and cost-benefit is not favorable, fix the bug without test.

Try to make changed code better.

Changing existing code

North Star

See “New features…” section

Worst case

Try to leave the code you’ve changed in a better shape. Better means: readable, clear

New features/services/components

Make separate module or modules.

Every UI component should be snapshot-tested - use dump views that render state, move the logic to the (view) models - snapshot different state values

Full unit-test suite for non-UI components.

Published on: Jan 7, 2023
Tagged with: