4 ms·
Python Visual Tutorial
- dinedal 16y agoI'm teaching someone Python on the side, and this is a great help! Thanks!
- pgbovine 16y agocool, please email me if you have suggestions for making this more useful (or bug reports!!!)
- brg 16y agoI'm thinking about how this would change my niece's learning path. Obviously it would omit things like argv, files, the os module. I've seen working with IO to be extremely valuable. She was able to quickly write fill in the blank form letters and simple interactive scripts. But there is plenty one can do with just print and loops. Unfortunately I see that raw_input(), dir(), and __builtin__ all raise problems. My niece was extremely excited to find out about all the 'hidden' objects that she could play with.
- pgbovine 16y agosorry, those modules were omitted due to obvious security concerns ;) raw_input() sounds like something reasonable to include, though, since it could simply pop up a text box and ask the user to input a string. please email me if you have other suggestions for how to improve this app. thanks!
- brg 16y agoI support your idea of supporting raw_input through a pop up. You may run into problems with the browser supporting them. For one thing it will not be the result of a user action. If it isn't an acceptable experience, perhaps a dynamic inline form in the "output"?
- thristian 16y agoA full HTML popup window shouldn't be necessary: javascript:alert("hello, " + prompt("what is your name?"))
- apgwoz 16y agoThe idea of a code stepper is pretty cool. Two other projects that come to mind after seeing this: http://jonnytran.com/machina/ http://jonnytran.com/machina/ and the Macro Stepper in Racket: http://docs.racket-lang.org/macro-debugger/index.html http://docs.racket-lang.org/macro-debugger/index.html
- Maro 16y agoTo my surprise, a lot of people don't know there exist things called debuggers. Debuggers are tools that let you step through code, see variables, set break points. Debuggers are common for compiled languages, less common for scripting languages. For example, you can debug Java code from most IDEs, or C++/C# code from Xcode or Visual Studio. http://en.wikipedia.org/wiki/Debugger http://en.wikipedia.org/wiki/Debugger
- joubert 16y agoAt the ILC 2009, Bill Lewis showed his Omniscient Debugger, which is a proof-of-concept debugger that allows you to navigate backwards in time to find a problem. http://www.lambdacs.com/debugger/ http://www.lambdacs.com/debugger/
- staticshock 16y agogdb has had reversible debugging since 7.0: http://en.wikipedia.org/wiki/GNU_Debugger#Features http://en.wikipedia.org/wiki/GNU_Debugger#Features
- masklinn 16y agoAnd OCaml has had a time-traveling debugger since forever.
- masklinn 16y ago> Debuggers are common for compiled languages, less common for scripting languages. First, if your bourne shell scripts have grown so much you need a debugger, you might want to consider there are other issues than the lack of a debugger for the bourne shell. Second, there are debuggers for bash, zsh and ksh. And probably others many other shells.
- wwortiz 16y agoI think scripting language here is more in reference to python/ruby/perl which are sometimes used for scripting and get grouped into that category
- pgbovine 16y agohi (i'm the guy who created this app) ... if anyone finds security vulnerabilities, please email me (and don't rm -rf my account hehe). i put this up a few months ago as a small hack to teach people Python, so it wasn't meant to be pounded by 1337 h4x0rz. thanks!
- fgimenez 16y agoI KNEW that nick looked familiar. Though this probably isn't the place for it, I felt the need to tell you that your "Advice for Grad School Applications" essay was my bible for apps last December. I just moved to palo alto and will buy you a beer any time you want.
- pgbovine 16y agocool, thanks. please email me personally (i can't find your email addr from your HN profile)
- pgbovine 16y agoOne of my goals is to use this app as the foundation for some free online introductory programming tutorials. Unfortunately, I don't have much free time right now to pursue this goal; but if you're interested in getting involved, please email me!
- jayliew 16y agoI might be interested, do you plan on open sourcing this ?