<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
<br/>
"Jürgen Hestermann" <juergen.hestermann@gmx.de> hat am 4. Oktober 2011 um 17:41 geschrieben:
<br/>
<br/>
> > In other words: It's nicer to work with ten 3000 lines units than
<br/>
> with one big 30.000 lines unit.
<br/>
>
<br/>
> Why that? I would prefer the one unit including everything over having
<br/>
> multiple files (i.e. when searching for something). If it has no other
<br/>
> impact than I would always vote for having lesser files instead of
<br/>
> cluttering all into many files.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">It's matter of taste. I only gave one possible reason for splitting up classes. Everyone has to decide when it is appropriate and when not. Obviously the limits vary with every programmer. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
>
<br/>
> > 2. classes were split instead of using parameterization. Instead of
<br/>
> adding a parameter to many methods, an abstract class and multiple
<br/>
> descendants are defined. This almost always duplicates code, but the
<br/>
> code itself has far less if-then-else blocks. OTOH it can create more
<br/>
> if-then-else outside the split classes.
<br/>
>
<br/>
> Code is much more readable (understandable) when if-then-else blocks and
<br/>
> no OP-methods (like descendants) are used. You see all relevant code in
<br/>
> one block and there is no need to gather it from multiple places.
</div>
<p style="margin: 0px;"> </p>
<p>Well, that is not true in general. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">>[...]</div>
<p> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body>
</html>