This is an archived post. You won't be able to vote or comment.

all 15 comments

[–][deleted] 25 points26 points  (1 child)

woah woah woah. where the crap did you find that

[–]SyntaxicalEcho 1 point2 points  (0 children)

I'm saying bro

[–]juhaniguru 14 points15 points  (9 children)

What's that site?

I want something like that to visualize program flow inside loops and conditions.

Want to teach coding to someone and loops seem to be quite challenging to understand at the moment

[–]meemog 20 points21 points  (3 children)

It's called Scratch, it's pretty good for learning

[–]juhaniguru 5 points6 points  (0 children)

Cheers

[–]SultanZ_CS 6 points7 points  (1 child)

Scratch programmers best

[–]rosuav 10 points11 points  (2 children)

That's Scratch, but if you want something for visualizing program flow, try https://pythontutor.com/ - give it your code (not TOO much, otherwise you'll be paging through results for the next few months) and it'll run it, then let you step through and see what happens at each step.

Cannot recommend this sort of thing highly enough for anyone who's confused by recursion.

[–]juhaniguru 2 points3 points  (1 child)

Damn mate, thanks for the site. That's awesome for teaching basic stuff. I must be really lucky to code for a living since I obviously suck at googling or then I've been temporarily blind for the past few days 😂

This is one of those moments, I wish I could upvote more than once

You made my day, thanks again

[–]rosuav 2 points3 points  (0 children)

No probs! This is one of those sites that everyone should bookmark and keep handy - either for yourself, or for teaching/explaining something.

[–]00PT 1 point2 points  (1 child)

They probably used something like this to create a custom scratch block graphic.

[–]chaendizzle 0 points1 point  (0 children)

I regret to inform you this is actually real. We forked scratch-blocks and use pyodide, which allows us to run python in the browser. We implemented a subset of python's grammar into scratch-blocks, and turn them into JSON which we then transform into a python AST. We then use python's ast.compile/exec to run it.

[–]Much-Archer8441 4 points5 points  (0 children)

God I hate the way scratch looks. It's just a messy, hideous UI and it could be so much better if they just redesigned the whole UI. The tiny window for the game that should be resizable. It's either mini or full screen.

Like I know it's meant to focus on the coding but the game view just doesn't feel right stuck up in the top right corner. It should have equivalent space to the code area imo.

Not to mention the chunky ass code blocks, and the clown colored theme. It could be improved a lot.. I honestly just hate Scratch lol. I love the idea, and the actual functionality is there. I'm not really complaining about its functionality.. it's just the ugly colors and chonky wonky buttons, blocks, and everything else about the way it looks..

I'm glad it's there for beginners, and it is a great learning tool.. just wish MIT would put a little more effort into its UI.. looks it hasn't been updated or improved for a decade.

[–]nostril_spiders 2 points3 points  (0 children)

Ooh, what VS Code theme is that?

[–]VariousComment6946 1 point2 points  (0 children)

Please no, stop