4 ms·
Or just use a language that doesn’t have that problem, then you don’t need a magic editor.
by ComputerGuru 8y ago
Or just use a language that doesn’t have that problem, then you don’t need a magic editor.
- mixmastamyk 8y agoIt's not a problem, it's a lot simpler than typing matching braces everywhere. Python is one of the easiest languages to learn.
- simion314 8y agoI am not the person you replied but in C style syntax when you type { in an IDE the { is inserted automatically so there is no risk to forget about it, also if you copy paste a piece of code you just run the action to reformat the file or the selected code and the braces will correctly fall onto place. I am not saying that Python syntax is a big issue, but is one more thing to keep in mind and it potentially trip up children(probably something more visual that is impossible to make syntax errors is better but I did not find something that is engaging enough)
- mixmastamyk 8y agoHis point was about not needing a "magic" editor. Neither does python, it works with spaces or tabs as long as you are consistent, and tells you where you aren't.
- simion314 8y agoMy point is that if I define a metric for easier to use by a beginner programmer (child) then C syntax > Python syntax If you define a different metric, maybe pretty syntax then it would compare in reverse. Though I don't have experience or seen people testing this on children and "proving" that having to keep in mind spaces/tabs is harder then the braces and semicolumns (when using a decent IDE) so I may be wrong.
- stormking 8y ago> My point is that if I define a metric for easier to use by a beginner programmer (child) then C syntax > Python syntax That's pure speculation, not a fact.
- simion314 8y agoMy speculation is based on the FACT that python syntax involves the programmer to indent correctly where C like syntax is not , so the only way you could disagree is that maybe 1 the cost of keeping indentation in mind for beginners is 0 2 or the cost is greater then zero but there is some different cost in C like syntax that affects beginners Keep in mind I am talking about syntax here and not the C language
- knicholes 8y agoIf a kid can understand a for loop, I think the kid should be able to understand indentation.
- ComputerGuru 8y agoHardly. 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.
- mixmastamyk 8y agoAs 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.