Discuss Scratch

Cookiemousee
Scratcher
99 posts

javascript blocks

Ham19-01-2011 wrote:

The Official List Of Rejected Suggstions wrote:

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 teachers.

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 that serves as a text editor for Scratch projects.
Sorry but this suggestion is rejected..
but I want to mix them together
Ham19-01-2011
Scratcher
1000+ posts

javascript blocks

Cookiemousee wrote:

Ham19-01-2011 wrote:

The Official List Of Rejected Suggstions wrote:

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 teachers.

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 that serves as a text editor for Scratch projects.
Sorry but this suggestion is rejected..
but I want to mix them together
That's what the rejection says,you can't have a seperate mode for different languages
ScolderCreations
Scratcher
1000+ posts

javascript blocks

In JS, you can do
fetch('https://api.scratch.mit.edu/projects/600000000/loves/count')
  .then(res => res.json)
  .then(scratch.say(res))
That would bypass a rejected suggestion. How would you prevent that?
Cookiemousee
Scratcher
99 posts

javascript blocks

ScolderCreations wrote:

In JS, you can do
fetch('https://api.scratch.mit.edu/projects/600000000/loves/count')
  .then(res => res.json)
  .then(scratch.say(res))
That would bypass a rejected suggestion. How would you prevent that?
lets not go off topic
Queer_Royalty
Scratcher
1000+ posts

javascript blocks

8not saying i support this, but ya'll are misunderstanding the suggestion.

ScolderCreations wrote:

In JS, you can do
fetch('https://api.scratch.mit.edu/projects/600000000/loves/count')
  .then(res => res.json)
  .then(scratch.say(res))
That would bypass a rejected suggestion. How would you prevent that?

lolecksdeehaha wrote:

You can:
  • Steal people's cookies and Scratch passwords
  • Get people's IP addresses
  • Prompt them to download bad stuff
  • Open new tabs and windows with bad links
So much possibility!
commands that are easily exploited likely would not be blocks, because:

Cookiemousee wrote:

I don't mean the whole javascript just some.
and that block could be easily misused so the st would have no reason to add it.

Ham19-01-2011 wrote:

Cookiemousee wrote:

Ham19-01-2011 wrote:

The Official List of Rejected Suggestions wrote:

-snipsnake-
Sorry but this suggestion is rejected..
but I want to mix them together
That's what the rejection says,you can't have a seperate mode for different languages
the suggestion is about having scratch blocks that possess the qualities of basic javascript; not having a text-based programming language added as that is a rejection of a suggestion about.
8
IndexErrorException
Scratcher
500+ posts

javascript blocks

OK this post is full of kids who have no idea what they are talking about. The OP is recommending to add some functions of JS to scratch blocks not recommending adding java script into scratch lol

I support the addition of some fun JS functions that aren't dangerous.
scratchusername40
Scratcher
1000+ posts

javascript blocks

This could be dangerous, for example someone could run
sendCookieToEvilServer(document.cookies["x-csrf-token"])
Also this is just as likely as javascript letting you run python code. Javascript doesn't add anything that scratch wants, and so I doubt it would be added
Cookiemousee
Scratcher
99 posts

javascript blocks

scratchusername40 wrote:

This could be dangerous, for example someone could run
sendCookieToEvilServer(document.cookies["x-csrf-token"])
Also this is just as likely as javascript letting you run python code. Javascript doesn't add anything that scratch wants, and so I doubt it would be added
I already said some things and not the dangerous things.
lisket39
Scratcher
100+ posts

javascript blocks

Cookiemousee wrote:

window.alert ();

Scratch reject here but it you can use JavaScript block on snap edu
A modified verson of scratch but it longer usable or not dunno
Cookiemousee
Scratcher
99 posts

javascript blocks

lisket39 wrote:

Cookiemousee wrote:

window.alert ();

Scratch reject here but it you can use JavaScript block on snap edu
A modified verson of scratch but it longer usable or not dunno
I know snap, but snap is harder for me to code because I'm not used to every button in a different place

Powered by DjangoBB