As someone who's still learning Ruby, the tap method seems like nothing but a syntactic sugar that adds nothing but some indentations and an extra line for the end at the end of the block. Why not just use the simple equivalent that is fairly universal across OOP languages, which takes no extra cognitive load to understand?
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.
As someone who's still learning Ruby, the
tap
method seems like nothing but a syntactic sugar that adds nothing but some indentations and an extra line for theend
at the end of the block. Why not just use the simple equivalent that is fairly universal across OOP languages, which takes no extra cognitive load to understand?