This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-05-20 13:21:17

Roberth
Scratcher
Registered: 2007-05-15
Posts: 46

Comments

I've been working on what is some complex coding with Scratch, and I'm looking for some way to add a comment into the script to explain perhaps some of the more obscure ideas that I'm putting into the script.  Both for myself as well as somebody reading what I've done afterward.

The thing that matches this idea that I can find is the sprite "say" and "think" blocks.  I'm just looking for a simple block that I can put a one-line hunk of text in that otherwise does absolutely nothing.  In other words.... just a comment.

Even Dartmouth BASIC has comments.  I'm just surprised that the only place to put this commentary is not next to the code but for the project as a whole, which is a different sort of internal documentation.

Offline

 

#2 2007-05-20 15:41:40

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Comments

You're not the only one to complain about not having a comment block!
This is such a trivial addition to the language, and *so* essential for pedagogic examples, that I'm really amazed at the scratch team's resistance to the idea, since it was suggested  already in the beat-release versions of scratch.

Offline

 

#3 2007-05-20 16:39:45

Canthiar
Scratcher
Registered: 2007-05-16
Posts: 100+

Re: Comments

I've started using say blocks to do commments.  I don't place them inline with the code, just off to the side of what I'm currently commenting.

Offline

 

#4 2007-05-20 16:54:57

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Comments

Unconnected say blocks would work, until you hit the "cleanup" button and your scripts got scrambled!

Offline

 

#5 2007-05-20 20:15:07

Canthiar
Scratcher
Registered: 2007-05-16
Posts: 100+

Re: Comments

That is one bad side effect of using say blocks.  Inlined comments would be great, but the say command can be used as a work around until then.

Offline

 

Board footer