Reference existing names instead of guessing

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the workflows category.

Last Updated: 2024-11-21

In my JSON data I had the following:

locationQualityAdjustments: {
  simple: -28,
  middle: -9,
  upper: 74
}

This needed to interface with JavaScript and MySQL. However, because I had "remembered" the key names instead of referencing what I already had, I incorrectly named these to something different elsewhere:

quality = normal
quality = high

This caused errors and slow down in my progress. I should have just referenced the goddamn things instead of guessing.