3 ms·
In the example code for pygame you give, what happens if there is a single typo? It doesn't work either and you probably get an incomprehensible stack trace. T
by pierrebai 7y ago
In the example code for pygame you give, what happens if there is a single typo? It doesn't work either and you probably get an incomprehensible stack trace.
There is no benefit to teh extra code because that extra code is magic gibberish. It's an incantation that somehow makes things work.
- deleted 7y ago[deleted]
- kragen 7y agoFrom my point of view, an incomprehensible stack trace is a big improvement over silently failing to work, because then you learn to comprehend the stack trace and you can fix the error. This is one of the central design principles of Python, rooted in experience with teaching beginners to program in the ABC teaching language. The extra code is not actually magic gibberish, although it does appear that way at first. In Python you can comment out individual lines and observe the effect, change the parameters, or type >>> from pygame import * >>> help(display.flip) Although an IDE may make that easier, and of course you don't start out knowing that. What is your experience teaching beginners to program? What tools did you have them use, and what did they have the most difficulty with?