Discuss Scratch

NMario84
Scratcher
1000+ posts

Remove change my variable

No support.
Both methods (change by 1, and set to +1) suggested work equally fine. There shouldn’t be any lag of the already existing command lines though.
US-Systems
Scratcher
1000+ posts

Remove change my variable

johandsa2020 wrote:

Remove change my variable by (value). It is used by many people but the thing is that the user might find it tricky to learn other programming languages eg: javascript.. its better if the user uses set my variable to (variable+1). It might improve the editor loading speed too. The editor will still be
the same but the blocks will be reduced and the block is useless but it makes scratch easy to use.

It would be a good habit to use that method because if the user kept using change my variable they would find it challenging to make text-based programming language projects. The user might get confused too. Because they used to use change my variable in their projects.

What do you think about this theory?
I completely disagree, asking to insert it in the TOLORS.
Reev0102
Scratcher
1000+ posts

Remove change my variable

US-Systems wrote:

I completely disagree, asking to insert it in the TOLORS.
WHY do you disagree? You should be constructive.
mybearworld
Scratcher
1000+ posts

Remove change my variable

Your reasoning is flawed. Most programming languages have , for example Python, Javascript, C, C++, Java…
scratchgodo
Scratcher
1000+ posts

Remove change my variable

-EmeraldThunder- wrote:

Support, this is used in more advanced programming languages although we should allow all projects with the block to retain it and as long as there is some way to drag the two blocks onto the stage together rather than having to assemble this every time (the variable reported should change with the dropdown)

that can confuse some scratchers and
colinmacc wrote
you can't really remove things that will break millions of projects. it's just not worth it.

Last edited by scratchgodo (Aug. 24, 2021 08:37:01)

-EmeraldThunder-
Scratcher
1000+ posts

Remove change my variable

scratchgodo wrote:

that can confuse some scratchers and
colinmacc wrote
you can't really remove things that will break millions of projects. it's just not worth it.

-EmeraldThunder- wrote:

We should allow all projects with the block to retain it.
DarthVader4Life
Scratcher
1000+ posts

Remove change my variable

I think you are forgetting that this is supposed to be an introductory programming language. As said before, there are a lot of projects that use the block that's been suggested to be removed. I don't believe that taking this away and replacing it will make Scratch easier to learn, which is one of the goals that the Scratch Team strive for. (Not to mention that it should have been removed a long time ago, because now practically everyone knows what it is and is used to it.) Honestly I think that the people supporting this are among the few who would want this.
han614698
Scratcher
1000+ posts

Remove change my variable

DarthVader4Life wrote:

I think you are forgetting that this is supposed to be an introductory programming language. As said before, there are a lot of projects that use the block that's been suggested to be removed. I don't believe that taking this away and replacing it will make Scratch easier to learn, which is one of the goals that the Scratch Team strive for. (Not to mention that it should have been removed a long time ago, because now practically everyone knows what it is and is used to it.) Honestly I think that the people supporting this are among the few who would want this.
Right. Whilst Scratch is supposed to get you ready for more advanced programming, it’s supposed to be simple itself.


Also, if this was implemented, All “change (var) by x” could be replaced by “set (var) to (var) + x”.
PATSATDAT
Scratcher
1000+ posts

Remove change my variable

no support JavaScript has it
var thing = 0;
thing += 1;
Tunde123
Scratcher
1000+ posts

Remove change my variable

PATSATDAT wrote:

no support JavaScript has it
var thing = 0;
thing += 1;
This isn't JavaScript though…
And I don't support. Why would you want to Remove change my variable?
Reev0102
Scratcher
1000+ posts

Remove change my variable

Tunde123 wrote:

PATSATDAT wrote:

no support JavaScript has it
var thing = 0;
thing += 1;
This isn't JavaScript though…
And I don't support. Why would you want to Remove change my variable?
As stated multiple times, all other programming languages don't have such a function. They all have
set [foo v] to ((foo) + (1))
// javascript
foo = foo + 1;
# python
foo = foo + 1
// c++
foo = foo + 1;
Wei-ern_520
Scratcher
500+ posts

Remove change my variable

Reev0102 wrote:

Tunde123 wrote:

PATSATDAT wrote:

no support JavaScript has it
var thing = 0;
thing += 1;
This isn't JavaScript though…
And I don't support. Why would you want to Remove change my variable?
As stated multiple times, all other programming languages don't have such a function. They all have
set [foo v] to ((foo) + (1))
// javascript
foo = foo + 1;
# python
foo = foo + 1
// c++
foo = foo + 1;
But for python I use

foo+=1

all the time.
Wei-ern_520
Scratcher
500+ posts

Remove change my variable

Besides, if so, why not just remove the forever loop block too since it does not exist in other languages and can easily be done with this:

repeat until <not<(true)=(true)>>
...
end

Because it is like so in python:

while True:
The code

Since repeat until not is the same as a while loop.

Last edited by Wei-ern_520 (Aug. 24, 2021 13:49:17)

kccuber
Scratcher
1000+ posts

Remove change my variable

mybearworld wrote:

Your reasoning is flawed. Most programming languages have , for example Python, Javascript, C, C++, Java…
Yeah. Even Swift has that. No support, because most languages have a “change var” code.
scratchgodo
Scratcher
1000+ posts

Remove change my variable

Wei-ern_520 wrote:

Besides, if so, why not just remove the forever loop block too since it does not exist in other languages and can easily be done with this:

repeat until <not<(true)=(true)>>
...
end

Because it is like so in python:

while True:
The code

Since repeat until not is the same as a while loop.
please make a new topic for your suggestion
mrcreatorluigi
Scratcher
1000+ posts

Remove change my variable

Like Darth said, this is an introduction into programming, making it easy to understand. No support.
Wei-ern_520
Scratcher
500+ posts

Remove change my variable

scratchgodo wrote:

Wei-ern_520 wrote:

Besides, if so, why not just remove the forever loop block too since it does not exist in other languages and can easily be done with this:

repeat until <not<(true)=(true)>>
...
end

Because it is like so in python:

while True:
The code

Since repeat until not is the same as a while loop.
please make a new topic for your suggestion
No, thats not a suggestion, im not suggesting to add them as well. Im just saying what others can be possibly removed too.

Last edited by Wei-ern_520 (Aug. 24, 2021 14:37:58)

Xolay
Scratcher
1000+ posts

Remove change my variable

No support. The change ( v) by () is for aumenting or diminish, not the set one.
amazingscratchcoder
Scratcher
100+ posts

Remove change my variable

Quantum-Cat wrote:

Does removing it really make learning text-based programming languages any easier or simpler to understand? I don't think so. This would also make using the block more annoying as you have to drag 2 extra blocks each time.

Of course it would cause now it’s the same thing. Support
Tronche2Cake
Scratcher
100+ posts

Remove change my variable

No support: Removing useful features for the sake of potentially making the lives of a few people a tiny bit easier, is a poor choice in my opinion.

It would make it 3 times as tiedious to use this block, and would almost never be beneficial.

I see where you're coming from, however it wouldn't help that many people. They won't learn new languages by typing random things until it works, they'll watch tutorials or something. Even assuming it actually happens, they'll guess and understand the workaround in a matter of seconds. (That's what happened when I started learning Python)


Rebranding the block to
set [foo] to foo + []
could be a viable option, though.

Powered by DjangoBB