3 ms·
On the other hand, python, at it's very basic level, gets the syntactic mess that you or I are very familiar with, and removes all of it for first-timer's. Ther
by sukuriant 16y ago
On the other hand, python, at it's very basic level, gets the syntactic mess that you or I are very familiar with, and removes all of it for first-timer's. There are no classes, no functions, just statements.
Also, for the "enter a name" and "guess a number" programs, for the beginner, everything I can think of will look effectively the same between the two languages. Furthermore, you can see the results right then and there when you're programming, rather than compiling, running, and repeatedly earning segfaults.
That said, the moment they begin to understand the flow of logic, they should move away from that language, so they can comprehend pointers/etc. This is, of course, all my opinion. Dijkstra would disagree with me, and so would many hackers, I'm sure, but wouldn't it be advisable for them to first begin to think in the minuscule steps, like a programmer does, before they have to deal with some of the stresses of C, and, even more so, classes?
- ElliotH 16y agoI couldn't agree more with the middle paragraph. But 'no classes' and 'no functions'? class NewClass: def NewFunction(arg0, arg1): print("Hello, World") Python has both. Pointers wise, I think you can learn them fairly late. I certainly didn't struggle to pick them up after years of using pointer-free languages. (edit fixed my formatting)
- sukuriant 16y agoI meant needing classes. You can program in python without ever looking at them; where as in C#, they're required to do anything. Not needing that extra boiler plate code is just one more hurtle a new programmer won't need to learn before getting into the real meat of development, if they chose to use Python as their first language. I should have been more clear about that.