From: Xavier Noria Date: 2013-04-22T06:52:01+09:00 Subject: Re: Tap method : good or bad practice ? --047d7b6dd002ae26ce04dae59841 Content-Type: text/plain; charset=UTF-8 Regardless of the refactors people are suggesting, going to the original question about tap I know people who like it and people who dislike it. From my perspective I don't think there's consensus as to which form is preferred. Most of the times I use tap, because it conveys the intention to the reader that you are going to return that value. It is kind of declarative for me. But in a method like yours where there's three lines I would not normally use it, since I believe people load those 3 lines in one shot in their head and the form without tap is probably more readable. --047d7b6dd002ae26ce04dae59841 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Regardless of the refactors people are suggesting, going t= o the original question about tap I know people who like it and people who = dislike it. From my perspective I don't think there's consensus as = to which form is preferred.

Most of the times I use tap, because it conveys the in= tention to the reader that you are going to return that value. It is kind o= f declarative for me. But in a method like yours where there's three li= nes I would not normally use it, since I believe people load those 3 lines = in one shot in their head and the form without tap is probably more readabl= e.

--047d7b6dd002ae26ce04dae59841--