Looks good. However, my big criticism of these sorts of visualisations is they seem to be entirely geared towards imperative programming. Has anyone seen similar visualisations for more functionally structured code? Oh, I see you can write your own code to be visualised. Here's a simple list comprehension: http://pythontutor.com/visualize.html#code=myList+%3D+range(... Not the most enlightening visual.
Online Python Tutor: Learn programming by visualizing code execution
41–46 of 46 posts
Re: Online Python Tutor: Learn programming by visualizing code execution
#42Looks good. However, my big criticism of these sorts of visualisations is they seem to be entirely geared towards imperative programming. Has anyone seen similar visualisations for more functionally structured code? Oh, I see you can write your own code to be visualised. Here's a simple list comprehension: http://pythontutor.com/visualize.html#code=myList+%3D+range(... Not the most enlightening visual.
A similar approach for those mounting towards FP would be certainly nice though, but it would have a completely different target demographic. Also it seems to me that languages like Haskell and F# are better for just learning FP.
Re: Online Python Tutor: Learn programming by visualizing code execution
#43It's not exactly Python (or I'm doing something wrong). Which is very confusing / "dangerous" for people learning Python (They will learn it wrong and not have the xp/confidence to question tutor) locals() and globals() are undefined. Still crazy slick (if it were the early 90's I'd say "l33t") bit of coding.
In seriousness, any programmer will need to know that functions don't just magically appear... if they don't work, they'll need to know how to pull in some sort of library, or realize why those functions just don't make sense for the current environment (one could explain to a complete novice why it would be a security breach to allow I/O functions, for instance). Python is a language, not a standard library, just as C is C even if you don't #include .
Re: Online Python Tutor: Learn programming by visualizing code execution
#44Re: Online Python Tutor: Learn programming by visualizing code execution
#45Hey guys, Isn't this the same as a debugger. Can people not learn from that?
TL;DR I wish this was the same as a debugger, because then debuggers would be awesome.
Re: Online Python Tutor: Learn programming by visualizing code execution
#46Hey guys, Isn't this the same as a debugger. Can people not learn from that?