diff options
author | Akshay <[email protected]> | 2019-12-31 13:33:17 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2019-12-31 13:33:17 +0000 |
commit | 6f87531d97905bd31c106b19a4405b9f349a2516 (patch) | |
tree | 64211d54507e9c061e21c63d0c42260acdd1c1aa /posts/don't_repeat_yourself.md | |
parent | 79e1e808f0129e066e66e06bf04b9c930de91a57 (diff) |
typo
Diffstat (limited to 'posts/don't_repeat_yourself.md')
-rw-r--r-- | posts/don't_repeat_yourself.md | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/posts/don't_repeat_yourself.md b/posts/don't_repeat_yourself.md deleted file mode 100644 index d39267e..0000000 --- a/posts/don't_repeat_yourself.md +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | Looping constructs are bad. Consider this: | ||
2 | |||
3 | ``` | ||
4 | for (int i = 0; i < arr.len(); i++) { ... } | ||
5 | ``` | ||
6 | |||
7 | It is not obvious at all, what this loop does. Is it | ||
8 | supposed to iterate over the elements of the array? Is it | ||
9 | just a variable binding that increases up to `arr.len()`? | ||