Refactor: Parallel Arrays to Array of Objects
Your code sometimes evolves to have two or more arrays operating in parallel. If these arrays work in lockstep, it might be better to have one array with objects instead. Let’s look at an example refactoring from one to the Continue reading Refactor: Parallel Arrays to Array of Objects