Discuss Scratch

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

Distinguishing unused variables

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
ChocolatePi
Scratcher
1000+ posts

Distinguishing unused variables

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
RPFluffy
Scratcher
1000+ posts

Distinguishing unused variables

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.
ChocolatePi
Scratcher
1000+ posts

Distinguishing unused variables

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.
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.
Zappy1333
Scratcher
100+ posts

Distinguishing unused variables

support
RPFluffy
Scratcher
1000+ posts

Distinguishing unused variables

ChocolatePi wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.
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.
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.
SuperDragon2014
Scratcher
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
Scratcher
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
Scratcher
1000+ posts

Distinguishing unused variables

Cyoce wrote:

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.
I like this idea!
Alberknyis
Scratcher
1000+ posts

Distinguishing unused variables

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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

Distinguishing unused variables

RPFluffy wrote:

Cyoce wrote:

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.
I like this idea!
Same here!
RPFluffy
Scratcher
1000+ posts

Distinguishing unused variables

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
VoltageGames
Scratcher
1000+ posts

Distinguishing unused variables

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

Distinguishing unused variables

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.
Alberknyis
Scratcher
1000+ posts

Distinguishing unused variables

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
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
Scratcher
1000+ posts

Distinguishing unused variables

Prinseskat wrote:

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.
And how does this relate?

Alberknyis wrote:

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
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 depends on how many variables used in each script and stuff, you know..
Prinseskat
Scratcher
1000+ posts

Distinguishing unused variables

RPFluffy wrote:

Prinseskat wrote:

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
I mean come on, it doesn't hurt to delete 3 or 4 variables in less than 30 seconds.
Sometimes you don't think you need a variable anymore but want to double-check before deleting it, end of story.
And how does this relate?
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?
Alberknyis
Scratcher
1000+ posts

Distinguishing unused variables

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

Alberknyis wrote:

RPFluffy wrote:

ChocolatePi wrote:

RPFluffy wrote:

Please explain a bit more.
Sounds like a cool idea, but why would you need it?
so you wouldn't have all these random pointless variables that are taking up space in your project.
But why would you create variables that you won't use? That sounds (no offense) stupid to me, plan it out.

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.
Yeah that happens, but does it really happen that you so you have like more than 5 variables you didn't use?
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 depends on how many variables used in each script and stuff, you know..

Well… For me this is how it is 89% of the time unfortunately XD

Last edited by Alberknyis (Dec. 15, 2014 04:51:47)

Powered by DjangoBB