code-dot-org/blockly — pull request #19 by brokenairplane (2013-09-07 21:52:52+00:00)
Title: Generated blocks instead of text error messages.

I wanted to give a heads up.

Currently a row REQUIREDBLOCKS in maze.js looks something like this:
['moveForward', 'turnLeft', 'turnRight']
where each refers to a block to be tested for and then if it is missing it displays the corresponding error (e.g. moveForwardError)

What a row in REQUIREDBLOCKS would look like in the proposed generated blocks CL is below:
[{'test': 'moveForward', 'type': 'maze_moveForward'}]
where 'test' is the string to be tested for just like before and 'type' is for an xml generator function to create a block of that type. This seems cumbersome but it lets you create blocks of any type and set the state
{'test': 'turnLeft', 'type': 'maze_turn', 'params': {'DIR': 'turnLeft'}}, will create a turn left block as opposed to a default turn left block.

This would require you to change your required blocks in order to see the generated blocks. However, it removes all of the long text feedback.

So I just want to make sure that you (codedotorg) want this.