For some of the people out there, this may not be a style they like. I also could have also went in to more detail as to why abstracting out the logic to constants can help clean up the code, with more scenarios. But for many people, they like this and it helped them. So it’s really about taking what works for you and leaving the rest behind.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.