3 ms·
>The code has a lot of comments. But not this kind: i++; // Increment i It does however have this: // Then we increment `current` current++;
by noselasd 11y ago
>The code has a lot of comments. But not this kind:
i++; // Increment i
It does however have this:
// Then we increment `current`
current++;
Buy yes - the comments in the project is written as a tutorial, and are very good.
- Stratoscope 11y agoAha! Good catch, especially given my comment about the comments. Yeah, I wouldn't write that comment in production code either. But as you said, it's a tutorial, so why not go for it? :-)
- wingerlang 11y agoI sometimes comment code like this, including the odd "increment". Because omitting it would disrupt the flow of the code+comments.
- Joky 11y agoI wish every project I had to work on that wasn't "new" would have been written as a tutorial...