Hi all,
Thanks for the feedback on this post,
It all makes a lot of sense.
I think Neils point about educational is very interesting here. We're focused on using Blockly for commercial applications. As such, readability is less of a concern. Error handling blocks are a very good idea for educational tools again but for commercial it adds a new layer of complexity that may be off putting to users. I
Personally I think the best solution would be defining each output of blocks as a function rather than direct to code. We'd begun doing that for our custom blocks as it allows better version control without having to rerun the block to code conversion. For educational focused projects I think having 2 conversions: the first that is shown to the user showing 1/0 and a second that actually executes Neils function would be the best overall solution. It doesn't teach error handling but at least allows the user to progress. With a function you can also then throw alerts to the user teaching them at run time. Obviously if incorporating error handling blocks that changes it a bit but there is probably a way to tie these two solutions together.
I think this also opens a longer open discussion on the difference between education focused and commercial focused applications and how they handle various issues.
General code readability is probably one of the biggest differences that I see.
There are specific challenges that commercial sees more often:
for example much larger drop down menus. But here the solution can be directly ported over to educational as well.
I'm not sure if there are other challenges that have a divergent solution for educational/commercial?
best,
Jonty