When downloading other people's scripts in order to get ideas or learn from them, it is sometimes hard to figure out what they were doing or thinking within their scripts. Most languages provide a way to type comments within the code for this purpose.
What do yo think about adding a MS Excel type commenting feature? In Excel, when you right-click on a cell and select "Insert Comment", a little red triangle appears in the upper right hand corner of the cell and a text entry window appears. You can enter a text comment in this window, and when you click somewhere else on the worksheet the window goes away, but the red triangle stays. If you then hover the mouse pointer over the triangle, the comment pops back up. I think adding this ability to every block would be incredibly useful, easy to use, and would promote the learning by sharing concept that the Scratch community embraces.
Thoughts?
Offline
There's already a feature called a comment - you can make one by right-clicking the scripting area and selecting "add comment".
Comments can be reshaped horizontally (the text flows to change its height as well), and can be neatly attached to blocks within a script.
Offline
Thanks. Don't know why I hadn't found that before :wipes_egg_off_face:, but that takes care of it
Now if people would just use it more
Last edited by DB88 (2010-05-22 09:00:11)
Offline
Actually, now that I've tried the current comment feature, I think the implementation I proposed in my OP would be much nicer. Dangling comments off the side makes things messy, and it is hard to comment neatly on adjacent blocks. By making them pop up when the mouse is over the triangle it will keep things neater. So I hope this suggestion can be reconsidered by the development team. I do think a better implementation would encourage more Scratchers to add comments, which is in keeping with the concepts of encouraging sharing and learning from others.
Last edited by DB88 (2010-05-23 22:08:57)
Offline
Hmm... there was a previous version of the comment block where the text was placed directly inside a script; it's not exactly what you want, but it would be closer...
I don't think it'll be brought back, though.
Offline