Discuss Scratch

Mr_PenguinAlex
Scratcher
1000+ posts

jump block

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

Flowermanvista
Scratcher
1000+ posts

jump block

Mr_PenguinAlex wrote:

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
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.

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

Flowermanvista wrote:

Mr_PenguinAlex wrote:

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
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.

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.
So, because people use too much of these of their own free will, they say it's bad?

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 () :: control
end jump () :: control
Also, this may be used to make forever loops, like
when [timer v]>(8)
end jump (1) :: control
move (10) steps
start jump (1) :: control
Another thing, can we change one of the blocks to:
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::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
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

BosenChang wrote:

So, I'd say semi-support. This would help a little, but might make spaghetti code. Here is a good block idea:
start jump () :: control
end jump () :: control
Also, this may be used to make forever loops, like
when [timer v]>(8)
end jump (1) :: control
move (10) steps
start jump (1) :: control
what would happen if you had 2 end jumps but only 1 start jump?

skymover1239
Scratcher
500+ posts

jump block

Support this was so helpful in batch also I thank the blocks should look like this

goto ()  ::control

here () ::control
the first one would jump two the second one



John 3:16 wrote:

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.
Flowermanvista
Scratcher
1000+ posts

jump block

Mr_PenguinAlex wrote:

Flowermanvista wrote:

Mr_PenguinAlex wrote:

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
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.

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.
So, because people use too much of these of their own free will, they say it's bad?
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.

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?
goto  [ v]  :: control
land [ v] :: control
There's should be a choice to add an ID…
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

ioton wrote:

Solution?
goto  [ v]  :: control
land [ v] :: control
There's should be a choice to add an ID…
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.

Ah, just like broadcasts.

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

ioton wrote:

Solution?
goto  [ v]  :: control
land [ v] :: control
There's should be a choice to add an ID…
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.

Ah, just like broadcasts.
(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

Mr_PenguinAlex wrote:

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

HTML-Fan wrote:

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.
Yes, C++ has goto statements but they are almost never used, and in most cases using them is considered a bad practice.


This is Maximouse's signature. Learn more about signatures.
HTML-Fan
Scratcher
1000+ posts

jump block

Maximouse wrote:

Yes, C++ has goto statements but they are almost never used, and in most cases using them is considered a bad practice.
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.

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

HTML-Fan wrote:

Mr_PenguinAlex wrote:

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.

Mr_PenguinAlex wrote:

scratchastroLOL wrote:

I think this probably belongs in Control rather than Motion…
i only made it a motion block because it was blue, just like the jump block in Human Resource Machine.
Also how is going to another place in the code like blocking code?

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

Mr_PenguinAlex wrote:

Also how is going to another place in the code like blocking code?
Both have better ways of doing.


This is Maximouse's signature. Learn more about signatures.
HTML-Fan
Scratcher
1000+ posts

jump block

Maximouse wrote:

Mr_PenguinAlex wrote:

Also how is going to another place in the code like blocking code?
Both have better ways of doing.
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.

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

HTML-Fan wrote:

Maximouse wrote:

Mr_PenguinAlex wrote:

Also how is going to another place in the code like blocking code?
Both have better ways of doing.
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.
Then just don't use them?

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

Flowermanvista wrote:

HTML-Fan wrote:

Maximouse wrote:

Mr_PenguinAlex wrote:

Also how is going to another place in the code like blocking code?
Both have better ways of doing.
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.
Then just don't use them?
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.

Last edited by Mr_PenguinAlex (Aug. 14, 2020 13:39:27)


HTML-Fan
Scratcher
1000+ posts

jump block

Mr_PenguinAlex wrote:

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.
The thing is, just knowing that it exists in that context makes me feel bad.

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

HTML-Fan wrote:

Mr_PenguinAlex wrote:

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.
The thing is, just knowing that it exists in that context makes me feel bad.
Yeah, it just doesn't seem to fit with the rest of Scratch.


This is Maximouse's signature. Learn more about signatures.

Powered by DjangoBB