Discussion about this post

User's avatar
Matteo Vaccari's avatar

Hi Nik, a bigger problem I see with this fragment of code is that it seems to encode a procedure in its name: doThisThenThisAndThat(). I find it better when we are able to encode the procedure in actual code. For example:

SummaryAdapter.requestSummariesAndCalculateAviosEarn(searchCriteria, it)

trips := allTrips().with(startDate, duration).withHotelCode(hc).withParticipants(2, 0, 0).find().summaries().withAvioPoints().calculate()

1 more comment...

No posts

Ready for more?