aboutsummaryrefslogtreecommitdiff
path: root/posts/don't_repeat_yourself.md
blob: d39267e0151b193b6dd7a6090bb7d700ffca8d2f (plain)
1
2
3
4
5
6
7
8
9
Looping constructs are bad. Consider this:

```
for (int i = 0; i < arr.len(); i++) { ... }
```

It is not obvious at all, what this loop does. Is it
supposed to iterate over the elements of the array? Is it
just a variable binding that increases up to `arr.len()`?