Maintaining a switch for all possible TIFF tags doesn't sound like a good programming practice, though.
The good thing of programming without generative assistants is that it makes you think how to make the algorithm and the code better to avoid too much manual work. Laziness of engineers is crucial for automation and optimisation.