Liste des Groupes | Revenir à cl c |
On 28/02/2025 07:50, Janis Papanagnou wrote:On 27.02.2025 10:15, Lawrence D'Oliveiro wrote:On Thu, 27 Feb 2025 09:38:40 +0100, Janis Papanagnou wrote:>
>Too deep indenting I consider to be a possible bad structuring>
effect ...
Would you consider half a dozen indentation levels to be too many? I
frequently go that deep.
To be honest, I've never counted them. So why should I suggest someone
else what's a "good" value. Programmers certainly should have got (or
develop) a feeling about what's acceptable and what's too much in their
own playground (or in project contexts where many people cooperate).
>
But since you were asking I got curious; I pick one recent "C" source
from one of my toy projects and get this distribution of the amount of
indents
>
80 - // empty lines
169 0
254 1
172 2
122 3
46 4
34 5
7 6
3 7
>
What would be your typical indent distribution in your "C" source code?
I looked at around 100 KLOC and was surprised to find that my modal
indent count was 3, which is lower than I expected.
On the other hand, I maxed out at 24.
Les messages affichés proviennent d'usenet.