Skip to content

Comment on Ask HN: When was your "ah-ha" moment when learning how to program?parent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.