Simplifying Logic Using Maps
Published: 06/18/2020
Today I was working on a program that scrapes data from a CSV, maps the records to a custom JSON structure then exports it as a custom file for injest into the system at a later date. The trouble was I was using a TON of IF statements. Today, I’m going to show you how to transform a massive if statement into a much simpler map.