Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If a kid can understand a for loop, I think the kid should be able to understand indentation.


Hardly. One you can see, one you can't. And that's without accounting for the real cause for consternation: tabs vs spaces, and tabs being magically changed to spaces or vice versa because of your too-smart-but-not-smart-enough editor.


As mentioned previously, Python warns about inconsistent indentation. Also, I learned programming at age 12 and understanding indentation didn't take more than a few seconds.




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

Search: