Discuss Scratch

Bacteria999
Scratcher
1000+ posts

Block Shop

TeamPopac wrote:

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers. One amazing thing about block-based programming is that syntax errors largely do not exist. Text-based programming would introduce syntax errors which younger users might not understand, and may distract students from learning the Scratch language.

This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch.

For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects.
this is rejected

We can use this block
define 
which will be greatly improved on the next version of scratch, then just share it in a project and slip it into your bag to recover it.
We're not talking about text-based syntax. We are saying that users who know how to program in JSON can create their own blocks.
TeamPopac
Scratcher
100+ posts

Block Shop

Bacteria999 wrote:

TeamPopac wrote:

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers. One amazing thing about block-based programming is that syntax errors largely do not exist. Text-based programming would introduce syntax errors which younger users might not understand, and may distract students from learning the Scratch language.

This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch.

For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects.
this is rejected

We can use this block
define 
which will be greatly improved on the next version of scratch, then just share it in a project and slip it into your bag to recover it.
We're not talking about text-based syntax. We are saying that users who know how to program in JSON can create their own blocks.
This applies to everything, if a block is programmed in json, it is no longer scratch but text and it counts in the same way as the script of a project.
Col_Cat228
Scratcher
1000+ posts

Block Shop

Ooh… nice! Support, because i really like JSON editing blocks, and i'd like some people to learn it too, even from a lesser-known Scratcher. AT users who already edit JSON's could also learn how to make more, i can make only a restricted number of them for now. So… support!
Maximouse
Scratcher
1000+ posts

Block Shop

Bacteria999 wrote:

We're not talking about text-based syntax. We are saying that users who know how to program in JSON can create their own blocks.
JSON is not a programming language, so you can't “program in JSON”. It's just a (text-based - how are then we “not talking about text-based syntax”?) format of describing data. This means the only blocks you can create with just JSON are the ones Scratch already supports, or useless ones like
move ([myself v] :: control) steps

It is, however, possible to implement new block using JavaScript, which is a programming language. But this would be a security problem (XSS, credentials etc.).

Last edited by Maximouse (June 4, 2020 09:18:45)

TurboCatboy
Scratcher
100+ posts

Block Shop

command [random v][delete this clone v]::operators
Bacteria999
Scratcher
1000+ posts

Block Shop

bumP
Nambaseking01
Scratcher
1000+ posts

Block Shop

I feel like the term “shop” is deviating from the actual feature here - maybe find another one? Preferably something fun and intuitive to go with Scratch's standards but also remain on-topic.

Either way though, JSON can be manipulated to do something like delete all sprites/backdrops in a project very easily - and even if there is a Report button for blocks, a curious New Scratcher might break their project unwantedly. Reporting the block won't help much (except for making the user harmless towards other people).

Unless JSON doesn't have the power to delete pre-existing code (or any other content).
Maximouse
Scratcher
1000+ posts

Block Shop

Nambaseking01 wrote:

Either way though, JSON can be manipulated to do something like delete all sprites/backdrops in a project very easily - and even if there is a Report button for blocks, a curious New Scratcher might break their project unwantedly. Reporting the block won't help much (except for making the user harmless towards other people).

Unless JSON doesn't have the power to delete pre-existing code (or any other content).
JSON can't do anything - it isn't even a programming language, so it can't be used to create new blocks.
MrFluffyPenguins
Scratcher
1000+ posts

Block Shop

Madcatofdoom wrote:

BearSlothCoding wrote:

No support, for the reasons above. I'm sorry, I don't have much to add. I just need to address this:

garnetluvcookie wrote:

2. He? Don't be sexist, this is 2020.
What? It isn't sexist, when addressing a person, he is usually the pronoun used. Why, you ask? Because we are the huMAN species.
Or maybe just use they as an unspecified gender, to prevent stuff like this happening.
or “it”
WindOctahedron
Scratcher
1000+ posts

Block Shop

BearSlothCoding wrote:

garnetluvcookie wrote:

2. He? Don't be sexist, this is 2020.
What? It isn't sexist, when addressing a person, he is usually the pronoun used. Why, you ask? Because we are the huMAN species.
Believe it or not, but the words “human” and “man” have different origins; they are not related. It's just the English society of the past who made them similar.
Anyway, let's go back on topic.

Nambaseking01 wrote:

I feel like the term “shop” is deviating from the actual feature here - maybe find another one?
Perhaps “Community block library” would be better.

Last edited by WindOctahedron (June 5, 2020 15:58:46)

Bacteria999
Scratcher
1000+ posts

Block Shop

WindOctahedron wrote:

BearSlothCoding wrote:

Nambaseking01 wrote:

I feel like the term “shop” is deviating from the actual feature here - maybe find another one?
Perhaps “Community block library” would be better.

I like that name!

Last edited by Bacteria999 (June 5, 2020 16:07:58)

Maximouse
Scratcher
1000+ posts

Block Shop

Mr_PenguinAlex wrote:

or “it”
Isn't “it” typically used to refer to things? And people obviously aren't things.
Bacteria999
Scratcher
1000+ posts

Block Shop

Bump
Bacteria999
Scratcher
1000+ posts

Block Shop

bump
MrFluffyPenguins
Scratcher
1000+ posts

Block Shop

I support. There's all kinds of blocks that would be great but don't get added.
I_LOVE_TO_MAKE_STUFF
Scratcher
1000+ posts

Block Shop

fdreerf wrote:

BearSlothCoding wrote:

No support, for the reasons above.
What reasons? Which ones?
All of the above. No support, people could hack your accounts, especially if the code is hidden and only activated under certain conditions
han614698
Scratcher
1000+ posts

Block Shop

Where is your source that viruses cannot be created with JavaScript?

https://heimdalsecurity.com/blog/javascript-malware-explained/

Powered by DjangoBB