Discuss Scratch
- Sonickyle
-
1000+ posts
Distinguishing unused variables
I think that in the variable list if a variable is not used anywhere in the project it should show as grey instead of organge so you know you're not using the variable in your project.
- RPFluffy
-
1000+ posts
Distinguishing unused variables
Please explain a bit more.
Sounds like a cool idea, but why would you need it?
Sounds like a cool idea, but why would you need it?
- ChocolatePi
-
1000+ posts
Distinguishing unused variables
so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
- RPFluffy
-
1000+ posts
Distinguishing unused variables
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
- ChocolatePi
-
1000+ posts
Distinguishing unused variables
because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
- RPFluffy
-
1000+ posts
Distinguishing unused variables
I'm not a planning wizard, but I still think at least 1 or 2 steps ahead of me, I mean I see that the only reason would be if you used a variable but found a better way without it and instead forgot to delete, but that's all I can think of.because some people aren't planning wizards and end up deciding to do something that won't need that variable, and then they would end up having an unused variable. Like a bunch of iterators.But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
- SuperDragon2014
-
45 posts
Distinguishing unused variables
I also think there should be a “delete unused variables” button so if, you, like me, forgot about lists and made like 50 variables you don't have to go through deleting EVERY SINGLE ONE.
- Cyoce
-
500+ posts
Distinguishing unused variables
Or, how about a “search for this variable” button (on right-click), that would work like “show senders / receivers” for broadcasts, highlighting all sprites that use the variable.
- RPFluffy
-
1000+ posts
Distinguishing unused variables
I like this idea! Or, how about a “search for this variable” button (on right-click), that would work like “show senders / receivers” for broadcasts, highlighting all sprites that use the variable.
- Alberknyis
-
1000+ posts
Distinguishing unused variables
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
Last edited by Alberknyis (Dec. 13, 2014 07:14:18)
- Sonickyle
-
1000+ posts
Distinguishing unused variables
Same here!I like this idea! Or, how about a “search for this variable” button (on right-click), that would work like “show senders / receivers” for broadcasts, highlighting all sprites that use the variable.
- RPFluffy
-
1000+ posts
Distinguishing unused variables
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
- Zappy1333
-
100+ posts
Distinguishing unused variables
You could have a list of unused variables that are grey and a delete all unused button together. I also the like the idea of a search for this variable button- it could also be used to find the definitions of custom blocks
- Prinseskat
-
1000+ posts
Distinguishing unused variables
Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
- Alberknyis
-
1000+ posts
Distinguishing unused variables
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
My maximum amount of unused variables usually never goes over 1, but in my case,

It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
Last edited by Alberknyis (Dec. 14, 2014 08:29:17)
- RPFluffy
-
1000+ posts
Distinguishing unused variables
And how does this relate?Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
Well depends on how many variables used in each script and stuff, you know..Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
My maximum amount of unused variables usually never goes over 1, but in my case,
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
- Prinseskat
-
1000+ posts
Distinguishing unused variables
Why seeing if a variable is being used or not is useful, so you don't have a random variable taking up space or a few more bugs because it turns out it was being used for something. Also, your problem seems to be that people won't make a variable then find out they don't need it anymore - why not just remove deleting variables then?And how does this relate?Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
- Alberknyis
-
1000+ posts
Distinguishing unused variables
Well depends on how many variables used in each script and stuff, you know..Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.so you wouldn't have all these random pointless variables that are taking up space in your project. Please explain a bit more.
Sounds like a cool idea, but why would you need it?
If you work on things, you need variables. Sometimes you can plan ahead and make the variables before you use them.
And then, (you forget what the variable was for)/(you find a way without needing the variable)/(you realize you don't actually need it).
So you need to delete it.
I'd like a way to check which variables are around which aren't connected to a script that will activate.
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
My maximum amount of unused variables usually never goes over 1, but in my case,
It's not really that easy to find which are necessary, especially since I could change the scripts at any time, and I still need to add scripts, and I'm usually not 100% sure how it's all going to work out.
Well… For me this is how it is 89% of the time unfortunately XD
Last edited by Alberknyis (Dec. 15, 2014 04:51:47)