An instructor is explaining a bit of code written using D3:
She is plotting a diagram of temperatures in a given city over a year:
She chose San Francisco, the data for which is stored as numbers (as opposed to strings for other cities).
When asked about the double plus in the last line of the loop (line 28):
she says that its purpose is to cast strings to integers (no, floats, she corrects herself).
This is wrong on so many levels!
Firstly, the ++ operator is shorthand for adding 1 (as anyone who has a passing acquaintance with a C-like language will attest).
Third, the operation on line 28 does not have any effect whatsoever, because its result is not assigned to anything (had it been assigned, it would have produced incorrect results because of the wrong operator). This line might not have even been there, and there wouldn't have been any difference.
How, how, how generally reasonable people make such brain farts?! Arrrgh!