Discuss Scratch

TheColaber
Scratcher
500+ posts

Comment Blocks

As you may know…

… Currently in scratch, you can only comment text. I think it would be great to also be able to comment blocks, like in other programming languages… I guess in order to comment blocks, you could drag and drop them into a comment… So, you can type things into a comment and also add blocks in there too.

Here is a little example: (by @Basic88)



What do you think… Support, or No Support and why? (support recommended)

Last edited by TheColaber (Aug. 4, 2020 14:16:08)

xXRedTheCoderXx
Scratcher
1000+ posts

Comment Blocks

Well, why should you be able to put block in comments? Sorry, but I can't see how this can help people with their project creation, at least for me.
TheColaber
Scratcher
500+ posts

Comment Blocks

xXRedTheCoderXx wrote:

Well, why should you be able to put block in comments? Sorry, but I can't see how this can help people with their project creation, at least for me.
Well, If you wanted to show a user some code and explain or something like that… You could put type stuff in a comment and also put code inside… Kinda the same reason we have scratch blocks and text in the forum.
BestUsernameSoFar
Scratcher
100+ posts

Comment Blocks

TheColaber wrote:

(support recommended)
Support Recommended?? Haha, that's the best thing I have ever seen! I am laughing so hard right now.
TheColaber
Scratcher
500+ posts

Comment Blocks

BestUsernameSoFar wrote:

TheColaber wrote:

(support recommended)
Support Recommended?? Haha, that's the best thing I have ever seen! I am laughing so hard right now.
Well actually, I've done it here to: https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/420467/
xXRedTheCoderXx
Scratcher
1000+ posts

Comment Blocks

TheColaber wrote:

xXRedTheCoderXx wrote:

Well, why should you be able to put block in comments? Sorry, but I can't see how this can help people with their project creation, at least for me.
Well, If you wanted to show a user some code and explain or something like that… You could put type stuff in a comment and also put code inside… Kinda the same reason we have scratch blocks and text in the forum.
Can't you just put code (That isn't connected to a hat block) and comment that?
HTML-Fan
Scratcher
1000+ posts

Comment Blocks

Do you mean
define comment (text)
when green flag clicked
comment [Haha lol]
? (I wish I could use //, but that's reserved)
scratchastroLOL
Scratcher
1000+ posts

Comment Blocks

I've seen people use this as a comment.

move (10) steps //This is a normal comment
/ / [This is a comment block] :: custom

define // (comment)

So yeah. There is a workaround. But I rather use the comments that we already have.

Last edited by scratchastroLOL (July 21, 2020 17:02:41)

HTML-Fan
Scratcher
1000+ posts

Comment Blocks

scratchastroLOL wrote:

I've seen people use this as a comment.

move (10) steps //This is a normal comment
/ / [This is a comment block] :: custom

define // (comment)
Yeah, I also had that // problem. And ninja'd you.
Botcho_Otkho
Scratcher
1000+ posts

Comment Blocks

TheColaber wrote:

Support, or No Support and why?
No, don't write that. It just leads to unconstructive posts.

HTML-Fan wrote:

Do you mean
define comment (text)
when green flag clicked
comment [Haha lol]
? (I wish I could use //, but that's reserved)

scratchastroLOL wrote:

I've seen people use this as a comment.

move (10) steps //This is a normal comment
/ / [This is a comment block] :: custom

define // (comment)

So yeah. There is a workaround. But I rather use the comments that we already have.
I think the OP is suggesting to put blocks in comment.

Last edited by Botcho_Otkho (July 21, 2020 17:04:17)

scratchastroLOL
Scratcher
1000+ posts

Comment Blocks

if that's the case, then you could maybe use this?

change x by (10)
if <[1] = [2]> then //This is the same as
move (10) steps
end

nevermind. this is the worst workaround I've ever made

Last edited by scratchastroLOL (July 21, 2020 17:20:19)

HTML-Fan
Scratcher
1000+ posts

Comment Blocks

Ah, now I understand!
when green flag clicked
forever
loop :: custom
draw:: custom
end
can be converted to
when green flag clicked
forever
loop :: custom
/ / draw::#000000
end

Last edited by HTML-Fan (July 21, 2020 17:10:57)

xXRedTheCoderXx
Scratcher
1000+ posts

Comment Blocks

Guys, the OP is not asking for a block comment, they are asking to be able to put blocks in comments.

I still don't see how that would be useful, though…
HTML-Fan
Scratcher
1000+ posts

Comment Blocks

xXRedTheCoderXx wrote:

I still don't see how that would be useful, though…
The thing is: I do it a lot in C++. About 20% of my code are just code lines with // in the beginning, because I maybe don't use them currently, like
while(true){
//print(a);
print(b);
}
Vercte
Scratcher
500+ posts

Comment Blocks

Support. I'm thinking of adding a remix guide for all my projects, and blocks in comments would really help.
It's a guide explaining all the broadcasts, variables, lists, and custom blocks, so this would IMMENSELY help.
Basic88
Scratcher
1000+ posts

Comment Blocks

Comment Blocks? I don't understand this much :P
Like text based syntax?


function (what?)
–comment mwahaha
end

I see. Could you create a mockup so we can understand better? I don't know if I support

Last edited by Basic88 (July 21, 2020 17:26:36)

xXRedTheCoderXx
Scratcher
1000+ posts

Comment Blocks

HTML-Fan wrote:

xXRedTheCoderXx wrote:

I still don't see how that would be useful, though…
The thing is: I do it a lot in C++. About 20% of my code are just code lines with // in the beginning, because I maybe don't use them currently, like
while(true){
//print(a);
print(b);
}
Yeah, that makes sense, but that's text based coding. Not block coding.

If you want to do that in Scratch, you just unsnap the block and leave it on the side of the script or something. No need to put it in a comment.
HTML-Fan
Scratcher
1000+ posts

Comment Blocks

Yeah, that was also my idea, since you can't just pull stuff out of a block of blocks, you need // in text-based stuff, but not in Scratch.
Basic88
Scratcher
1000+ posts

Comment Blocks

Is this what you mean?
scratchastroLOL
Scratcher
1000+ posts

Comment Blocks

Basic88 wrote:

I see. Could you create a mockup so we can understand better? I don't know if I support

Here:

Powered by DjangoBB