News for hackers. Stuff that matters.
Re:I made a Phoenix webapp as a veteran Rails dev by tsukaisute on Sunday May 21, 2017 @04:26PM (#14389090)
If it is to be reused by other modules, or if it is complex (and likely itself needs to be split up into smaller functions)

Think of:

   items = ["file_a", "file_b", "file_c"]
   Enum.map items, &HelpfulDownloaderModule.download/1
download/1 is probably pretty complex and/or can be of use in other pieces of code.

There are no comments on this comment yet.