The Computer Coach

The Computer Coach

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:

“`java
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.


If you came from the Wall of Shame, here are links to the previous and next comments. Also, here’s a link back to the Wall of Shame.

Jeremy Grifski

Jeremy grew up in a small town where he enjoyed playing soccer and video games, practicing taekwondo, and trading Pokémon cards. Once out of the nest, he pursued a Bachelors in Computer Engineering with a minor in Game Design. After college, he spent about two years writing software for a major engineering company. Then, he earned a master's in Computer Science and Engineering. Today, he pursues a PhD in Engineering Education in order to ultimately land a teaching gig. In his spare time, Jeremy enjoys spending time with his wife, playing Overwatch and Phantasy Star Online 2, practicing trombone, watching Penguins hockey, and traveling the world.

Recent Content