Earlier quoted context omitted.
Ah scratch. Some years ago I wanted to show what cool stuff you can do with computers to a 10y old boy. Found scratch and actually got hooked myself for a bit ^^. Ended up with this (slightly embarassing thing): http://scratch.mit.edu/projects/DeepDuh/941811 . After programming a bit, the limitations become apparent big time. Google's idea to implement this as a Javascript parser is probably a good idea, this way som…
have you tried BYOB [1]? It's "an advanced offshoot of Scratch" [1] http://byob.berkeley.edu/
Google Blockly - a visual programming language
51–60 of 129 posts
Re: Google Blockly - a visual programming language
#52I'm surprised about the negative criticism. Looks like it would be a great teaching tool for non-computer programmers.
[1]: It also only allows variables to be specified from an extendable set, preventing certain problems with unbound or misspelled variables. I can see the possibility of also preventing type errors by constraining shapes further, e.g. all integers could be circular while booleans are hexagonal, so and would have two hexagonal spaces while + would have two circles. If I'm not mistaken, Scratch does something like this, although I do not know how far it is taken there. It would be interesting to see how far this can be developed to constrain the space of possible incorrect programs.
Re: Google Blockly - a visual programming language
#53https://imgur.com/VBsht while (true) do if not (wall to the left) then (turn left) while (wall ahead) do (turn right) (move forward) This uses the general maze-solving logic of following the outer wall in one direction until you find the exit. It never turns then turns back or runs into a wall.
while (true) do if(wall ahead) then turn left else move forward turn left if(wall ahead) turn right
Re: Google Blockly - a visual programming language
#54Can this program be made any shorter? http://www.dodaj.rs/f/1K/vW/2gLz63rl/blockly.png
Not the fastest but its just about as short as yours (counting all blocks as one): http://cdn-images.9cloud.us/716/best-solution-kay_1568014138...
Re: Google Blockly - a visual programming language
#55I made a prime sieve: http://i.imgur.com/Elk5A.png It was pretty fun. JS generated isn't so bad.. var n; var A; var i; var x; var j; n = 100; A = []; for (i = 0; i
Re: Google Blockly - a visual programming language
#56Re: Google Blockly - a visual programming language
#57Re: Google Blockly - a visual programming language
#58Earlier quoted context omitted.
Ah scratch. Some years ago I wanted to show what cool stuff you can do with computers to a 10y old boy. Found scratch and actually got hooked myself for a bit ^^. Ended up with this (slightly embarassing thing): http://scratch.mit.edu/projects/DeepDuh/941811 . After programming a bit, the limitations become apparent big time. Google's idea to implement this as a Javascript parser is probably a good idea, this way som…
My niece was telling me about Scratch and how she knew what was wrong with other people's code and how she'd fix it. I am so freaking proud.
Re: Google Blockly - a visual programming language
#59The UI for this reminds me a lot of Scratch from MIT.