Justin Ohms
Mar 8, 2022

--

I have to comment twice because this is such a terrible idea but it’s important that you understand why. I wouldn’t be a good senior dev if I didn’t stop to explain. In addition to all the other comments explaining why this is a bad idea the major problem I see is that it violates the Principal of Least Surprise. This is not what objects are for, it is what conditionals are for. Learn to use the correct tool for the correct job,

--

--

Responses (1)