I’m not sure any of the increment operations are natural. i = i + 1 isn’t valid in math, so there’s a bit of a hurdle there. That said, if you teach i++ in the context of loops, I wouldn’t be surprised if you saw students mixing the syntax anyway.
I’m not a huge fan of teaching syntax and algorithms. I’d rather students develop the critical thinking skills to solve problems on paper. Transferring their thoughts to syntax should be the easy part (but something that takes practice).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I’m not sure any of the increment operations are natural.
i = i + 1
isn’t valid in math, so there’s a bit of a hurdle there. That said, if you teach i++ in the context of loops, I wouldn’t be surprised if you saw students mixing the syntax anyway.I’m not a huge fan of teaching syntax and algorithms. I’d rather students develop the critical thinking skills to solve problems on paper. Transferring their thoughts to syntax should be the easy part (but something that takes practice).