Hi Michael, thanks for your excellent suggestion. I've discussed this while writing the article with my colleagues and we came to the same conclusion.
I still went ahead with the current example, because it's compact, easily understandable and covers all the scenarios I wanted to explain. I'm planning to write another article that covers the "anti-pattern" you rightfully raised.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Michael, thanks for your excellent suggestion. I've discussed this while writing the article with my colleagues and we came to the same conclusion.
I still went ahead with the current example, because it's compact, easily understandable and covers all the scenarios I wanted to explain. I'm planning to write another article that covers the "anti-pattern" you rightfully raised.