Discuss Scratch

medians
Scratcher
1000+ posts

Variables category

IndexErrorException wrote:

No support, it's variables everywhere else, why does Scratch need to be different? Nothing's confusing about it
Variables were still called variables, just the category was called Data (likely since it had both vars and lists).
7s3s
Scratcher
89 posts

Variables category

I think Variables is a better name that more people would understand, although Data would be more representative of the entire category…. Im sticking with Variables on this one.

Last edited by 7s3s (July 4, 2023 04:12:33)

asfastyoshi19
Scratcher
26 posts

Variables category

DangerousDawn wrote:

Vibrato wrote:

DawnRooney27 wrote:

But not all variables are necessarily data.
Can you give an example of when a variable is not data?
set [Never gonna give you up, Never gonna let you down, Never gonna run around and desert you, Never gonna make you cry, Never gonna say goodbye, Never gonna tell a lie and hurt you v] to [1]
Bro rickroll
k7e
Scratcher
1000+ posts

Variables category

Maximouse wrote:

Support. In some languages “Variables” is too long to fit the category menu.
Operators.
Mudkip72475
Scratcher
100+ posts

Variables category

Honestly I think variables should still be named “variables” because so they could be more specific to new scratchers & there's nothing wrong with that honestly.
imagoofygoober1234
Scratcher
61 posts

Variables category

when i think of the word “variables”, i often think of it as a placeholder for information. “data” is just the information itself without any name given to it. in math, i the area of a rectangle is A = l * w. it makes more sense to refer to l and w as both variables – they are just names for data (or numbers in this case,) without any value given to it.

you can think of scratch's variables as the same; you can declare a value to a variable, just like in ordinary math. renaming the whole category as “data” would make this property less explicit, and that should be worth noting.
BigNate469
Scratcher
1000+ posts

Variables category

Well, according to JavaScript (the platform and programming language that Scratch runs on), a list is just a bunch of variables grouped together in an indexed clump. In other words, it really doesn't care if data is represented as a variable (let blah = 0; ) or as a array (aka list) (such as: let blah = ; ). The only difference, according to JavaScript, is to call the item from the array, you have to do "blah[0];“, whereas for the variable, all you have to do is ”blah;"

In addition, in JavaScript, arrays and variables are different things, but arrays are not a subclass of variable- they instead are a value for a variable. In other words, declaring a array in JavaScript is more or less
set [some variable v] to (list :: list)

So this could go either way.
medians
Scratcher
1000+ posts

Variables category

Bringing this topic up
medians
Scratcher
1000+ posts

Variables category

Knightbot63 wrote:

medians wrote:

(#89)
You’re misunderstanding the suggestion, in 2.0 the category said “Data”, but it still said “Make a Variable”.
I forgot to add “example”
sigh, me being an idiot again.
I forgot to respond to this, but it wouldn't be changed for stuff like “Make a List” or “Make a Variable.” Only the category name would be changed (not the names of the subcategories)

Powered by DjangoBB