Discuss Scratch
- Discussion Forums
- » Suggestions
- » jump block
- Flowermanvista
- Scratcher
1000+ posts
jump block
What you've proposed is usually known as a “goto” in other languages. The main reason that is generally cited for gotos being bad is that they have a tendency to make “spaghetti code” - code whose flow of execution is very hard to follow, which makes maintaining it hard as well. bump
also can someone please explain how come people would no support because it happens to be in a different programming language and also people on that programming language think its bad for some reason
Others will tell you that gotos are not harmful if used responsibly - for example, a goto to break out of a deeply nested loop can be cleaner than other methods.
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Mr_PenguinAlex
- Scratcher
1000+ posts
jump block
So, because people use too much of these of their own free will, they say it's bad?What you've proposed is usually known as a “goto” in other languages. The main reason that is generally cited for gotos being bad is that they have a tendency to make “spaghetti code” - code whose flow of execution is very hard to follow, which makes maintaining it hard as well. bump
also can someone please explain how come people would no support because it happens to be in a different programming language and also people on that programming language think its bad for some reason
Others will tell you that gotos are not harmful if used responsibly - for example, a goto to break out of a deeply nested loop can be cleaner than other methods.
- BosenChang
- Scratcher
1000+ posts
jump block
So, I'd say semi-support. This would help a little, but might make spaghetti code. Here is a good block idea:
start jump () :: controlAlso, this may be used to make forever loops, like
end jump () :: control
when [timer v]>(8)Another thing, can we change one of the blocks to:
end jump (1) :: control
move (10) steps
start jump (1) :: control
jump :: motion cap
Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats
My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.
Hello there! I can sometimes help you, or you can help me!
See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looksIf you want to see my topic “What makes a good topic?”, then go to Which topics are good?
say [hello]
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
- Mr_PenguinAlex
- Scratcher
1000+ posts
jump block
what would happen if you had 2 end jumps but only 1 start jump? So, I'd say semi-support. This would help a little, but might make spaghetti code. Here is a good block idea:start jump () :: controlAlso, this may be used to make forever loops, like
end jump () :: controlwhen [timer v]>(8)
end jump (1) :: control
move (10) steps
start jump (1) :: control
- skymover1239
- Scratcher
500+ posts
jump block
Support this was so helpful in batch also I thank the blocks should look like this
goto () ::controlthe first one would jump two the second one
here () ::control
For God so loved the world that he gave his one and only Son that whoever believes in him shall not perish but have eternal life
First time a moderator got ninjaed??
500 Posts
Current Mainline projects
AquaCSS - A CSS framework.
Ink - An editor that does, lots of things.
500 Posts
Current Mainline projects
AquaCSS - A CSS framework.
Ink - An editor that does, lots of things.
- Flowermanvista
- Scratcher
1000+ posts
jump block
I don't think it's necessarily the same people who abuse gotos who say that they're bad. I believe it's mostly other people who have to mantain programs that abuse gotos who are saying that they're bad.So, because people use too much of these of their own free will, they say it's bad?What you've proposed is usually known as a “goto” in other languages. The main reason that is generally cited for gotos being bad is that they have a tendency to make “spaghetti code” - code whose flow of execution is very hard to follow, which makes maintaining it hard as well. bump
also can someone please explain how come people would no support because it happens to be in a different programming language and also people on that programming language think its bad for some reason
Others will tell you that gotos are not harmful if used responsibly - for example, a goto to break out of a deeply nested loop can be cleaner than other methods.
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- ioton
- Scratcher
500+ posts
jump block
Solution?
and an option disappears when there's already another land block that uses that option.
If you don't have a matching land block for the goto block, it does nothing.
If you don't have a matching goto block for the goto block, it does nothing.
goto [ v] :: controlThere's should be a choice to add an ID…
land [ v] :: control
and an option disappears when there's already another land block that uses that option.
If you don't have a matching land block for the goto block, it does nothing.
If you don't have a matching goto block for the goto block, it does nothing.
Last edited by ioton (Aug. 13, 2020 15:14:37)
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓░░█████░░██████░░█████░░██████░░█░░░█░░░▓
▓░░░▒█▒▒▒░█▒▒▒▒█▒░░▒█▒▒▒░█▒▒▒▒█▒░██░░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒█░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒░██▒░░▓
▓░░█████░░██████▒░░░█▒░░░██████▒░█▒░░█▒░░▓
▓░░░▒▒▒▒▒░░▒▒▒▒▒▒░░░░▒░░░░▒▒▒▒▒▒░░▒░░░▒░░▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
- PkmnQ
- Scratcher
1000+ posts
jump block
Ah, just like broadcasts. Solution?goto [ v] :: controlThere's should be a choice to add an ID…
land [ v] :: control
and an option disappears when there's already another land block that uses that option.
If you don't have a matching land block for the goto block, it does nothing.
If you don't have a matching goto block for the goto block, it does nothing.
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- PkmnQ
- Scratcher
1000+ posts
jump block
Ah, just like broadcasts. Solution?goto [ v] :: controlThere's should be a choice to add an ID…
land [ v] :: control
and an option disappears when there's already another land block that uses that option.
If you don't have a matching land block for the goto block, it does nothing.
If you don't have a matching goto block for the goto block, it does nothing.
(It posted twice!)
Last edited by PkmnQ (Aug. 13, 2020 15:48:46)
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- HTML-Fan
- Scratcher
1000+ posts
jump block
This is not a physics block. It goes to a specific part of the code, not actually jumping.Then please explain why it's a motion block and not a control block - the closest thing to jumping is forever.
I agree that it's a really primitive block. Scratch is more or less JS and JS is more advanced then C++ and I think that C++ has jump blocks - but I never used them. Assembler has them - but that's another thing. Jumping is for me like blocking code: Nope. Don't do it.
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- Maximouse
- Scratcher
1000+ posts
jump block
Yes, C++ has goto statements but they are almost never used, and in most cases using them is considered a bad practice. I agree that it's a really primitive block. Scratch is more or less JS and JS is more advanced then C++ and I think that C++ has jump blocks - but I never used them. Assembler has them - but that's another thing. Jumping is for me like blocking code: Nope. Don't do it.
- HTML-Fan
- Scratcher
1000+ posts
jump block
Okay, you see, I wasn't even sure if they exist and I use C++ for years. It's just a bad thing. It makes me think “That's not the right way of doing that!” but sadly, Scratch is full of those things. I just say pen and multitasking. Yes, C++ has goto statements but they are almost never used, and in most cases using them is considered a bad practice.
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- Mr_PenguinAlex
- Scratcher
1000+ posts
jump block
This is not a physics block. It goes to a specific part of the code, not actually jumping.Then please explain why it's a motion block and not a control block - the closest thing to jumping is forever.
I agree that it's a really primitive block. Scratch is more or less JS and JS is more advanced then C++ and I think that C++ has jump blocks - but I never used them. Assembler has them - but that's another thing. Jumping is for me like blocking code: Nope. Don't do it.
Also how is going to another place in the code like blocking code?i only made it a motion block because it was blue, just like the jump block in Human Resource Machine. I think this probably belongs in Control rather than Motion…
Also, it seems to me that the only reason people have for no supporting is that it happens to be in a different programming language and people don't use it in those. If you aren't going to use it, other people will. So instead of thinking of how “IT'S A BAD PRACTICE AND C++ HAS IT AND I DON'T USE IT”, why don't you… NOT use it? Then there wouldn't be an issue.
Last edited by Mr_PenguinAlex (Aug. 14, 2020 13:39:10)
- Maximouse
- Scratcher
1000+ posts
jump block
Both have better ways of doing. Also how is going to another place in the code like blocking code?
- HTML-Fan
- Scratcher
1000+ posts
jump block
Yep. They both make me feel awful in the same way. It's just wrong in my mind. I understand that other people may like it, but I personally don't want those blocks.Both have better ways of doing. Also how is going to another place in the code like blocking code?
Last edited by HTML-Fan (Aug. 14, 2020 13:28:10)
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- Flowermanvista
- Scratcher
1000+ posts
jump block
Then just don't use them?Yep. They both make me feel awful in the same way. It's just wrong in my mind. I understand that other people may like it, but I personally don't want those blocks.Both have better ways of doing. Also how is going to another place in the code like blocking code?
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Mr_PenguinAlex
- Scratcher
1000+ posts
jump block
that's what's weird about this situation- people don't like a suggestion because they don't want it, but they won't even use it if it does get added, so what's the problem? they could just NOT USE THEM.Then just don't use them?Yep. They both make me feel awful in the same way. It's just wrong in my mind. I understand that other people may like it, but I personally don't want those blocks.Both have better ways of doing. Also how is going to another place in the code like blocking code?
it wouldn't affect them in any way if it does get added.
Last edited by Mr_PenguinAlex (Aug. 14, 2020 13:39:27)
- HTML-Fan
- Scratcher
1000+ posts
jump block
The thing is, just knowing that it exists in that context makes me feel bad. that's what's weird about this situation- people don't like a suggestion because they don't want it, but they won't even use it if it does get added, so what's the problem? they could just NOT USE THEM.
it wouldn't affect them in any way if it does get added.
Joke of the century: Just made a good remix of this with Scratch's music extension.
BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
- Maximouse
- Scratcher
1000+ posts
jump block
Yeah, it just doesn't seem to fit with the rest of Scratch.The thing is, just knowing that it exists in that context makes me feel bad. that's what's weird about this situation- people don't like a suggestion because they don't want it, but they won't even use it if it does get added, so what's the problem? they could just NOT USE THEM.
it wouldn't affect them in any way if it does get added.
- Discussion Forums
- » Suggestions
- » jump block