Discuss Scratch
- Discussion Forums
- » Suggestions
- » Better Custom Blocks
- lapisi
- Scratcher
1000+ posts
Better Custom Blocks
how is using permanent variables complex? but I do agree that with temporary variables you don't have to fill the project with variables that are only used once By the alternating caps lock and lowercase, it implies that I'm being sArCaStIc
I'm pointing out that the workarounds are dysfunctional and complex
- gosoccerboy5
- Scratcher
1000+ posts
Better Custom Blocks
Well, for one, it's wasteful, and second (probably more importantly) if you're running multiple functions at a time, any permanent variables used to report anything might get messed up by two functions using the variable at a time.how is using permanent variables complex? but I do agree that with temporary variables you don't have to fill the project with variables that are only used once By the alternating caps lock and lowercase, it implies that I'm being sArCaStIc
I'm pointing out that the workarounds are dysfunctional and complex
- space_elephant
- Scratcher
500+ posts
Better Custom Blocks
It's there because there is no reason you would use it without that, and because it helps prevent code that is usually unnecessary. If the point of a reporter is to return, then doing stuff after that will just waste time. It is possible to work around with local variables, something that all production programming languages have, and scratch should have.why doesI don't think so… I think at this point it's just like that for historic reasons. I already said that. But the question is,? Is there any specific reason? Return means that the functions stops immediantely.
- gosoccerboy5
- Scratcher
1000+ posts
Better Custom Blocks
Actually, that basic concept is in this suggestion too. In the form of “temporary variables”
- gosoccerboy5
- Scratcher
1000+ posts
Better Custom Blocks
I've said this before, but legend has it that in the Suggestions forum, one must provide reasoning as to Support! I hope this gets added.why they support
- sathvikrias
- Scratcher
500+ posts
Better Custom Blocks
No SuPPoRt eaSy WORkaRouND(I know you're being sarcastic)
“Just use a custom stack block and a variable called ‘return’”
“For temporary variables why not just use permanent variables”
also bump
but for people who think that, you will clutter up the variables category.
Moving from Scratch? Don't learn C or Java, try Snap!
- space_elephant
- Scratcher
500+ posts
Better Custom Blocks
Also, that doesn't work for concurrency or recursion. Careful uses of lists can fix recursion, the common case, but it still breaks with other concurrent threads.No SuPPoRt eaSy WORkaRouND(I know you're being sarcastic)
“Just use a custom stack block and a variable called ‘return’”
“For temporary variables why not just use permanent variables”
also bump
but for people who think that, you will clutter up the variables category.
- SpaceIsEndless
- New to Scratch
2 posts
Better Custom Blocks
Ah, right I support because there are so many applications. There are workarounds for this, but they're very complex and get very messy if you have multiple functions and/or are using the same one multiple times. Literally all other languages have this for that reason. Anyways, that's my reasonI've said this before, but legend has it that in the Suggestions forum, one must provide reasoning as to Support! I hope this gets added.why they support
- space_elephant
- Scratcher
500+ posts
Better Custom Blocks
Basic doesn't. Neither does assembler. Scratch is a lot like assembler.Ah, right I support because there are so many applications. There are workarounds for this, but they're very complex and get very messy if you have multiple functions and/or are using the same one multiple times. Literally all other languages have this for that reason. Anyways, that's my reasonI've said this before, but legend has it that in the Suggestions forum, one must provide reasoning as to Support! I hope this gets added.why they support
- AHypnoman
- Scratcher
1000+ posts
Better Custom Blocks
What relation to Scratch does Assembly Code have?Basic doesn't. Neither does assembler. Scratch is a lot like assembler.Ah, right I support because there are so many applications. There are workarounds for this, but they're very complex and get very messy if you have multiple functions and/or are using the same one multiple times. Literally all other languages have this for that reason. Anyways, that's my reasonI've said this before, but legend has it that in the Suggestions forum, one must provide reasoning as to Support! I hope this gets added.why they support
I don't think that it's the best thing to compare it to. Nor is Basic.
Last edited by AHypnoman (Dec. 17, 2020 17:34:19)
~ AHypnoman (Use Shift+Down Arrow to see the rest of my signature)
I am an evil kumquat, and your siggy looks tasty…
Hello there, I'm AHypnoman, If you write my name remember to capitalize the “H”. “When you don't create things, you become defined by your tastes rather than ability. your tastes only narrow & exclude people. so create.” I write though as tho.
According to the Chrome Console, my viewbox attribute is “Garbage”. Very nice, Chrome.
#TrendyHashtag
Gib internneeet
Play Retorquebit!
- Maximouse
- Scratcher
1000+ posts
Better Custom Blocks
High-level interpreted languages, such as Python and JavaScript, are much more similar to Scratch. What relation to Scratch does Assembly Code have?
I don't think that it's the best thing to compare it to. nor is Basic.
- IndianRuby718
- Scratcher
100+ posts
Better Custom Blocks
I know I've posted on here before, but I come back with two small things to add:
Custom booleans should have options for boolean and reporter inputs. (reporters just with reporters)
And the report block for booleans should be a drop-down, since it's either true or false:
I don't know if anyone has said these already, but if not. *gestures*
And this could also count as a bump I guess :P
Custom booleans should have options for boolean and reporter inputs. (reporters just with reporters)
<custom <condition :: custom-arg> or (reporter :: custom-arg) :: custom>
And the report block for booleans should be a drop-down, since it's either true or false:
report [true v] :: custom-arg cap
I don't know if anyone has said these already, but if not. *gestures*
And this could also count as a bump I guess :P
So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)
Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.
________________
Only fdreerf can break the equilibrium.
________________
I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.source
good luck digging up the original reply in the comments
ctrl+f exists
https://scratch.mit.edu/discuss/post/6961734/
Bug with the color effect I would really like to see fixed
EEEEEEE DDDDDD IIIIIIII TTTTTTTT NNN NN OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.
< :: extension>
< :: custom-arg>
< :: motion>
Don't click this link…
- gosoccerboy5
- Scratcher
1000+ posts
Better Custom Blocks
No, it should be so that you can type in “true” I know I've posted on here before, but I come back with two small things to add:
Custom booleans should have options for boolean and reporter inputs. (reporters just with reporters)<custom <condition :: custom-arg> or (reporter :: custom-arg) :: custom>
And the report block for booleans should be a drop-down, since it's either true or false:report [true v] :: custom-arg cap
I don't know if anyone has said these already, but if not. *gestures*
And this could also count as a bump I guess :P
also of course custom booleans and reporters should have inputs, that's the whole point
- IndianRuby718
- Scratcher
100+ posts
Better Custom Blocks
I know it was mentioned to have inputs, but I don't know if it was specifically mentioned that booleans can have boolean inputs. (I thought I saw a post showing both booleans and reporters having reporter inputs, but not boolean inputs. I could be wrong though)
So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)
Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.
________________
Only fdreerf can break the equilibrium.
________________
I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.source
good luck digging up the original reply in the comments
ctrl+f exists
https://scratch.mit.edu/discuss/post/6961734/
Bug with the color effect I would really like to see fixed
EEEEEEE DDDDDD IIIIIIII TTTTTTTT NNN NN OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.
< :: extension>
< :: custom-arg>
< :: motion>
Don't click this link…
- Maximouse
- Scratcher
1000+ posts
Better Custom Blocks
All custom blocks should have all types of inputs. I know it was mentioned to have inputs, but I don't know if it was specifically mentioned that booleans can have boolean inputs. (I thought I saw a post showing both booleans and reporters having reporter inputs, but not boolean inputs. I could be wrong though)
- gosoccerboy5
- Scratcher
1000+ posts
Better Custom Blocks
This is a half serious, half joking question: why don't they just rehire Jens into the ST if they ever want to add this?
- Maximouse
- Scratcher
1000+ posts
Better Custom Blocks
They could implement this themselves, the hard part is design. This is a half serious, half joking question: why don't they just rehire Jens into the ST if they ever want to add this?
- sathvikrias
- Scratcher
500+ posts
Better Custom Blocks
better if it is -snip-
And the report block for booleans should be a drop-down, since it's either true or false:report [true v] :: custom-arg cap
I don't know if anyone has said these already, but if not. *gestures*
And this could also count as a bump I guess :P
report [] :: custom-arg capor
report <> :: custom-arg capso if you wanted to make a custom block, like
<[] = []>even though we already have it, you could do
define <(string :: custom-arg) = (other string :: custom-arg) :: custom> :: #8258ae boolean
report <<not <(string :: custom-arg) > (other string :: custom-arg)>> and <not <(string :: custom-arg) < (other string :: custom-arg)>>> :: custom-arg cap
// instead of
define <(string :: custom-arg) = (other string :: custom-arg) :: custom> :: #8258ae boolean
if <<not <(string :: custom-arg) > (other string :: custom-arg)>> and <not <(string :: custom-arg) < (other string :: custom-arg)>>> then
report [true v] :: custom-arg cap
else
report [false v] :: custom-arg cap
end
Last edited by sathvikrias (Dec. 19, 2020 20:58:19)
Moving from Scratch? Don't learn C or Java, try Snap!