Paddle2See wrote:
dagnew wrote:
But the Scratch team seems so talented, that I have a related suggestion: when right-clicking blocks, a popup now appears; add a 'comment-out' choice that would disable the block and make it gray. Sure, it's easy to drag blocks out, but not always so easy to know where they belonged.
This is an interesting and novel suggestion! It would help a lot in debugging to have the ability to quickly turn sections of the script "Off" and see how program behavior is impacted. This can be accomplished currently by tearing the script apart, howerver, if it is a long and complicated script, this can lead to other errors when it is reassembled.
If such a feature were implemented, it would have to be made very clear that particular code sections were turned "Off" otherwise it would be a major source of confusion.
You can already do that, just double click on the hat block of that script and it will turn off/on.
Offline
Axeblade,
double-clicking the hat will start or stop the whole script, but it will not disable the script and prevent it from running when the hat condition occurs. What is being looked for here is a way to have the effect of removing blocks without having to drag them out of the script.
Offline
Well, I have to say yes, for two reasons, 1. To describe my coding and remeber what's what, 2. so my sister can read what my coding is when she asks "Whats That?!" or "What does that do?!"
Last edited by Jman720 (2008-02-20 09:54:51)
Offline
I vote for the retrun of the comment block! If scratch is suppose to be a first programming language then teaching beginners how to document their code is a good programming practice! As s teacher it helps me remeber what I was doing when I put the script together. It also helps me understand what the student was trying to accomplish. Every other programming language including the self-documenting COBOL has a way to comment the code. The longer the script the more essential the comments. The more scripts you have the more commenting you need. The repeat 0 with say is just a work around. The repeat and say are still evaluated by Scratch. Comments are simply ignored.
Offline
Andres said a "Better" version of the comment block will be featured in The Next scratch Release. I don't remember what certain topic it was in, but I remember him saying it.
Offline
I have used a repeat zero comment block here because I wanted to convey that my project was not a trick, so I used it to emphasize the fact. I am almost 100% sure that the comment block will be in 1.3, since it seems to be a necessity. If they do not intend on bringing it back, I vote yes. If they do, then I do not vote cause it will be in the next version anyway.
Offline
Saca312 wrote:
Yes!!!!!! Yes!!!!!! Yes!!!!!
I'd like to point out that this thread is over 3 years old.
Since then, the comment feature has returned, albeit in a slightly different and mostly better way. (Just right-click the scripting pane and click the option to add a comment, which you can drag around, re-size, and attach to blocks.)
Since we now have comments again, there's really no reason to keep this thread open. Closing. ^^
Offline