std.compress

Jonathan M Davis jmdavisProg at gmx.com
Wed Jun 5 10:10:23 PDT 2013


On Wednesday, June 05, 2013 07:49:22 H. S. Teoh wrote:
> (Actually, std.algorithm currently sits at 11636 lines. I call BS on
> whoever claims to be able to "skim over" std.algorithm and "get a feel
> for how it works". Chances are your finger will get so tired of hitting
> PgDn about 2000 lines into the file that you won't even look at the
> rest. And most of the code is only superficially related to each other
> -- about 20 functions into the file you'd have lost track of all sense
> of how things fit together -- 'cos they *don't* really fit together!
> It's the epitome of why we *should* move to smaller modules, rather than
> the current giant monolithic ones.)

There's a significant difference between a 10,000+ line file and a file that's 
less than 1000 lines. Walter's proposed's std.compress is less than 1000 lines 
long, and yet we're talking about splitting it up. That's going to lead to 
ridiculously small modules IMHO. There's a balance to be had here that's 
somewhere in between the two extremes.

- Jonathan M Davis


More information about the Digitalmars-d mailing list