The UI for this reminds me a lot of Scratch from MIT.
Google Blockly - a visual programming language
41–50 of 129 posts
Re: Google Blockly - a visual programming language
#42I need "comment" block.
Re: Google Blockly - a visual programming language
#43 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.Re: Google Blockly - a visual programming language
#44The UI for this reminds me a lot of Scratch from MIT.
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…
I am so freaking proud.
Re: Google Blockly - a visual programming language
#45I 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
#46One of the big ideas in programming is abstraction/modularity/reuse, and I don't see how that fits in here.
(I found the "procedure" block, but I don't see anything that fits inside it other than "break out of loop", which doesn't make any sense. And I don't see how to call the procedure.)
So I find myself looking at the samples everyone's demonstrating here and finding they're harder to read than real well-organized code.
Re: Google Blockly - a visual programming language
#47Can this program be made any shorter? http://www.dodaj.rs/f/1K/vW/2gLz63rl/blockly.png
Here's one that runs the fastest through this particular maze (I noticed there's always a wall on the right side when we need to make a left turn): http://i.imgur.com/gNaRA.png
Re: Google Blockly - a visual programming language
#48The UI for this reminds me a lot of Scratch from MIT.
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…
Re: Google Blockly - a visual programming language
#49Can this program be made any shorter? http://www.dodaj.rs/f/1K/vW/2gLz63rl/blockly.png
Re: Google Blockly - a visual programming language
#50As evidenced by this thread a 'Share' button would be great.
I'd love to be able to duplicate blocks by shift-click-n-drag.