Join Slack
Powered by
I was using `take` and `drop` before refactoring, ...
# stdlib
m
mg6maciej
03/31/2017, 11:53 AM
I was using
take
and
drop
before refactoring, but I didn't like how it wasn't DRY. In this example there is
receivedItemsCount
variable, but in most places it was
1
or
5
. And I got that constant twice in a block of code.
3
Views
Open in Slack
Previous
Next