Discuss Scratch
- Bacteria999
-
1000+ posts
Block Shop
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.2.2 Text-based syntax in Scratchthis is rejected
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.
We can use this blockdefinewhich 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.
- TeamPopac
-
100+ posts
Block Shop
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.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.2.2 Text-based syntax in Scratchthis is rejected
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.
We can use this blockdefinewhich 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.
- Col_Cat228
-
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
-
1000+ posts
Block Shop
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 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.
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)
- Nambaseking01
-
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).
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
-
1000+ posts
Block Shop
JSON can't do anything - it isn't even a programming language, so it can't be used to create new blocks. 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).
- MrFluffyPenguins
-
1000+ posts
Block Shop
or “it”Or maybe just use they as an unspecified gender, to prevent stuff like this happening. No support, for the reasons above. I'm sorry, I don't have much to add. I just need to address this:What? It isn't sexist, when addressing a person, he is usually the pronoun used. Why, you ask? Because we are the huMAN species. 2. He? Don't be sexist, this is 2020.
- WindOctahedron
-
1000+ posts
Block Shop
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.What? It isn't sexist, when addressing a person, he is usually the pronoun used. Why, you ask? Because we are the huMAN species. 2. He? Don't be sexist, this is 2020.
Anyway, let's go back on topic.
Perhaps “Community block library” would be better. I feel like the term “shop” is deviating from the actual feature here - maybe find another one?
Last edited by WindOctahedron (June 5, 2020 15:58:46)
- Bacteria999
-
1000+ posts
Block Shop
Perhaps “Community block library” would be better. I feel like the term “shop” is deviating from the actual feature here - maybe find another one?
I like that name!
Last edited by Bacteria999 (June 5, 2020 16:07:58)
- Maximouse
-
1000+ posts
Block Shop
Isn't “it” typically used to refer to things? And people obviously aren't things. or “it”
- MrFluffyPenguins
-
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
-
1000+ posts
Block Shop
All of the above. No support, people could hack your accounts, especially if the code is hidden and only activated under certain conditionsWhat reasons? Which ones? No support, for the reasons above.
- han614698
-
1000+ posts
Block Shop
Where is your source that viruses cannot be created with JavaScript?
https://heimdalsecurity.com/blog/javascript-malware-explained/
https://heimdalsecurity.com/blog/javascript-malware-explained/