Discuss Scratch

python_megapixel
Scratcher
500+ posts

Get rid of the "my variable" default

I would rather not have every single project start with a variable called “my variable” - after all, who even wants a variable called that anyway?

I don't believe it's particularly useful, even to new Scratchers - after all, if anything it teaches those who are new to programming to name variables vaguely and to put whitespace in variable names - both of which will quickly become frustrating if they move on to bigger projects in more advanced programming languages.

This used to be a signature, but I deleted it to remove distractions.
Maximouse
Scratcher
1000+ posts

Get rid of the "my variable" default

python_megapixel wrote:

I would rather not have every single project start with a variable called “my variable” - after all, who even wants a variable called that anyway?

I don't believe it's particularly useful, even to new Scratchers - after all, if anything it teaches those who are new to programming to name variables vaguely and to put whitespace in variable names - both of which will quickly become frustrating if they move on to bigger projects in more advanced programming languages.
I mostly agree, but I think putting whitespace in variable names should be considered a good practice in languages that allow it, because it makes them more readable. Compare these variables:

(my variable)
(my_variable)
(myVariable)

Underscore is a good word separator, space is even better (but most programming languages don't allow it), but camelCase isn't.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Bacteria999
Scratcher
500+ posts

Get rid of the "my variable" default

Duplicate

I don't know what to write here, so I'll just type random letters.

bdsnjhsnjhbsbgsdsbhcsjnhsbhducyfegncgudyafgcgwcufeabugyanhbgioinbhdbcasdbhiohxnhnucdsnhsnhixdjihcbhucdnhicdshyugfugbsehihdnhijnhubfscbugyfdbyfshucdnhucsdhunbsbhufcygfcunfdcy8gnfaofanengfbfycnuweoaeriopfopefnejfgdiegvjannbahwsiuehryheuryfhfiduudbcijddidhcduudhdudhdewjdwhdnhiwnihdfwnfdnifdnfbdsnjhsnjhbsbgsdsbhcsjnhsbhducyfegncgudyafgcgwcufeabugyanhbgioinbhdbcasdbhiohxnhnucdsnhsnhixdjihcbhucdnhicdshyugfugbsehihdnhijnhubfscbugyfdbyfshucdnhucsdhunbsbhufcygfcunfdcy8gnfaofanengfbfycnuwaeriopfopefnejfgdiegvjannbahwsiuehryheuryfhfiduudbcijddidhcduudhdudhdewjdwhfdnhiwnihdfwnfdnifdnfbdsnjhsnjhbsbgsdsbhcsjnhsbhducyfegncgudyafgcgwcufeabugyanhbgioinbhdbcasdbhiohxnhnucdsnhsnhixdjihcbhucdnhicdshyugfugbsehihijnhubfscbugyfdbyfshucdnhucsdhunbsbhufcygfcunfdcy8gnfaofanenvgfbfycnuweoaeriopfopefnejfgdiegvjannbahwsiuehryheuryfhfiduudbcijddidhcduudhdudhdewjdwhdnhiwfnihdfwnfdnifdnfvbdsnjhsnjhbsbgsdsbhcsjnhsbhducyfegncgudyafgcgwcufeabugyanhbgioinbhdbcasdbhiohxnhnucdsnhsnhixdjihcbhucdnhicdshyugfugbsehihdnhijnhubfscbugyfdbyfshucdnhucsdhunbsbhufcygfcunfdcy8gnfaofanengfbfycnuweoaeriopfopefnejfgdiegvjannbahwsiuehryheuryfhfiduudbcijddidhcduudhdudhdewjdwhdnhiwnihdfwnfdnifdnf

Powered by DjangoBB

Standard | Mobile