Thanks for your comment. I totally understand your objection, but I have my reasons for choosing exactly this example.
My first point was, that I had to triple check if this code really does only one thing. It is not just incredibly long, it is redundant. Most of our developer time goes to reading code. So it should be easy to understand.
My second point was, that I knew exactly, that the author of these lines is no rookie. So for me, this was not redundant code at first, it was treacherous.
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.
Thanks for your comment. I totally understand your objection, but I have my reasons for choosing exactly this example.
My first point was, that I had to triple check if this code really does only one thing. It is not just incredibly long, it is redundant. Most of our developer time goes to reading code. So it should be easy to understand.
My second point was, that I knew exactly, that the author of these lines is no rookie. So for me, this was not redundant code at first, it was treacherous.