A common cause of bugs in the backend has been the failure to get step and phase instances correctly (e.g. the wrong instance is retrieved, or a new instance is given the wrong index). To reduce the risk of this happening again, write and use functions for these operations to centralize the logic:
A common cause of bugs in the backend has been the failure to get step and phase instances correctly (e.g. the wrong instance is retrieved, or a new instance is given the wrong index). To reduce the risk of this happening again, write and use functions for these operations to centralize the logic: