As usual, here’s another transcript (and a screenshot to match above):
As a computer coach, I usually teach i++ inside the for-loop and nowhere else. i++ it’s not as intuitive while i=i+1 it’s more natural nut it is common to see a code that uses i++ inside a for instead of i=i+1
Also, a novice could learn at most, a single for-loop cycle so it’s shocking when some basic books and courses try to teach “bubble sort”, it is hard to understand (for even seasoned developers) so it is more cruelty than teaching.
So, if a novice learns this 3 types of cycles, then it is more than enough:for(i=0;i<10;i++) for(i=9;i>=0;i++) for(i=0;i>=0;i+2)
One time, I saw a strange syntax in a student’s work (i = i++). Having had quite a bit of programming experience up to that point, I was a little startled by that syntax. I really had no clue what it did. Eventually, I got around to writing an article about the experience. That’s when Mr. computer coach figured he could give me his two cents on what is and isn’t intuitive. The oddest part of the whole thing was the mention of bubble sort which wasn’t demonstrated once in the article.