To answer the question in the title directly, I think modules are to aid reading and discovery.
The fact that it is difficult to decide which module a function belongs in doesn't make them pointless. People who have to read or debug your code use them to quickly zero in on areas of likely interest.
Comments
To answer the question in the title directly, I think modules are to aid reading and discovery.
The fact that it is difficult to decide which module a function belongs in doesn't make them pointless. People who have to read or debug your code use them to quickly zero in on areas of likely interest.