2 ms·
> I'd like to see more work like this. Me too, but not so much with subjects that have just a couple of months experience with the language. I'd prefer to ide
by kazinator 9y ago
> I'd like to see more work like this.
Me too, but not so much with subjects that have just a couple of months experience with the language.
I'd prefer to identify things that still confuse programmers with, say, five years.
Things that confuse noobs contain a lot of noise. If we craft a coding convention based on that, we might end up with:
i = 1;
total = 0;
while (i <= 100) {
total = total + a[i - 1];
i = i + 1;
}
because the noobs were confused by zero-based arrays; increment operators like i++; and the jumpy, out-of-order evaluation of for(;;) syntax.