std.compress

David Nadlinger code at klickverbot.at
Wed Jun 5 07:17:42 PDT 2013


On Wednesday, 5 June 2013 at 11:30:10 UTC, John Colvin wrote:
> Although I think you're right about having smaller modules, I 
> generally find it easier to browse through a larger file than 
> many smaller files.
>
> Multiple files is ok if you know what you're looking for (grep) 
> but when you're just trying to scan across a system to get a 
> feel for how it's working, juggling many files is a real pita.

Use an editor with a file tree sidebar? Quite on the contrary, I 
find many files to be much preferable, because you automatically 
have "bookmarks" in the source to come back to, and having the 
functionality already grouped in manageable logical units saves 
you from inferring that structure again, as it is the case when 
scrolling through a huge file.

On a lighter note, if it's really a problem for you that module 
files are too small, what about just concatenating all the files 
in a given directory using a little shell magic? ;)

David


More information about the Digitalmars-d mailing list