Comment on Ask HN: When was your "ah-ha" moment when learning how to program?parentComments−theblueadept11115yX = X + 1 was my earliest 'aha' moment. At first it stumped me... there is absolutely no value X such that X = X + 1, so how on earth can this be a valid line of computer code? It really pissed me off.−ysangkok15yAnd it should. The "=" is misused like this. ":=" should've become the norm...Mathematics and programming are similar in so many regards. No reason to confuse people like this.
Comments
X = X + 1 was my earliest 'aha' moment. At first it stumped me... there is absolutely no value X such that X = X + 1, so how on earth can this be a valid line of computer code? It really pissed me off.
And it should. The "=" is misused like this. ":=" should've become the norm...
Mathematics and programming are similar in so many regards. No reason to confuse people like this.