Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Orphaned" blocks run in Blockly #13

Open
motib opened this issue Apr 7, 2017 · 3 comments
Open

"Orphaned" blocks run in Blockly #13

motib opened this issue Apr 7, 2017 · 3 comments

Comments

@motib
Copy link

motib commented Apr 7, 2017

Students often leave orphaned blocks or scripts that are not enclosed in an event. Scratch simply ignores these until you click on them. Blockly runs the orphaned scripts are this is confusing. They should be ignored.

@stephanemagnenat
Copy link

I agree. Actually ideally they should be highlighted in red, and the program should not be able to run. These changes are not trivial because we embed a third-party program, rather than having full control as with VPL.

@motib
Copy link
Author

motib commented Apr 10, 2017

We found this to be extremely common in Scratch:
O. Meerbaum-Salant, M. Armoni, M. Ben-Ari. Habits of programming in Scratch. Sixteenth Conference on Innovation and Technology in Computer Science Education, Darmstadt, Germany, 2011, 168--172.
That article condemns first dragging lots of blocks and then putting them together, not worrying about unused blocks.

Later a colleague from the CS department supported that method as close to a new programming paradigm they developed!
Michal Gordon, Assaf Marron, Orni Meerbaum-Salant. Spaghetti for the main course?: observations on the naturalness of scenario-based programming. Proceedings of the 17th ACM annual conference on Innovation and technology in computer science education. 2012, 198-203

I suggest being consistent with Scratch and simply ignoring scripts that are not within an event-handler.

@stephanemagnenat
Copy link

I suggest being consistent with Scratch and simply ignoring scripts that are not within an event-handler.

I'm fine with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants