Hacker News new | past | comments | ask | show | jobs | submit login

Did they know what it meant within seconds of you you explaining it to them, though? That's the only important thing.



How come a CS bachelor never wrote a for loop?


In recent years it's very possible they either don't use a language where that syntax is ever required (python) or just use one of the foreach variants in pretty much every language.


I can only think of Python, but are people learning that alone these days? In every other popular language, I can't imagine not ever encountering a situation where you also need to know the index of the iteration.


But also in every language there's syntax sugar to get the index.

In reality it's honestly just better in 99% of situations.


They could just write loops and remember that repeating the variable name with ++ is part of loop syntax without knowing what it means. Almost like text-generating AI would do it (ducks).


I don't know, but I also don't care much because it doesn't matter.

Again, can they quickly understand and apply the knowledge once it is explained to them is all that matters.


It also matter that they apparently wrote a for loop a number of times without wondering what each of those symbols actually does and just treated it as magic incantation.

Edit: assuming they didn't use a language where such idiom doesn't exist or is not common, as another commented pointed out.


Maybe cheated, maybe third world country diploma mill, maybe sports scholarship


not every language uses i++.

increment operators are a language design antipattern anyway, not some fundamental knowledge.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: