Personally, I found your Map code much easier to read than the ifs. I have always struggled with getting lost in repetition. The Map approach places proper emphasis on the relevant information, removing distraction. Thanks for this perspective.
You're welcome Marcus, thanks for your feedback!
Hi Marcus! I've written a blog post about another pattern, if you'd like to take a look I'd really appreciate your feedback on that as well.
Thanks again and happy new year!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
Personally, I found your Map code much easier to read than the ifs. I have always struggled with getting lost in repetition. The Map approach places proper emphasis on the relevant information, removing distraction. Thanks for this perspective.
You're welcome Marcus, thanks for your feedback!
Hi Marcus! I've written a blog post about another pattern, if you'd like to take a look I'd really appreciate your feedback on that as well.
Thanks again and happy new year!