Discuss Scratch

EliasTalamirYT
Scratcher
46 posts

A new setting for the Scratch Studio

I propose that the Scratch team add a toggleable option to allow text-based js instead of just block-based. It would be helpful for those programmers that would like to see what their code looks like in text form and maybe make a few direct changes to the code in the form of text instead of dealing with the custom blocks
Sheep_maker
Scratcher
1000+ posts

A new setting for the Scratch Studio

Tosh may interest you
Za-Chary
Scratcher
1000+ posts

A new setting for the Scratch Studio

Something similar is already rejected. Would this happen to be your suggestion?

The Complete List of Rejected Suggestions wrote:

2.2 Text-based coding 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). 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.

This suggestion extends to coding Scratch in any text, 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.
EliasTalamirYT
Scratcher
46 posts

A new setting for the Scratch Studio

Sheep_maker wrote:

Tosh may interest you
It is kinda what I was looking for but it doesn't let me code using JS, only the blocks in text form. What I meant was like, actually code in JS, and it will create the custom blocks. Like if I type “rect(90,90,89,32);” in JS, it will create a custom block that draws that rectangle
EliasTalamirYT
Scratcher
46 posts

A new setting for the Scratch Studio

Za-Chary wrote:

Something similar is already rejected. Would this happen to be your suggestion?

The Complete List of Rejected Suggestions wrote:

2.2 Text-based coding 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). 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.

This suggestion extends to coding Scratch in any text, 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.
Kinda, except my suggestion is a toggleable version. On that can be turned on or off depending on the user.
Za-Chary
Scratcher
1000+ posts

A new setting for the Scratch Studio

EliasTalamirYT wrote:

Kinda, except my suggestion is a toggleable version. On that can be turned on or off depending on the user.
Ah, my explanation was getting at that as well — an optional way to code using text. (Perhaps I should clarify that in the list.)

Even if it was optional, it would just add a lot of complexity to the website and make it distracting/overwhelming for those trying to learn or teach Scratch.
Luvexina
Scratcher
500+ posts

A new setting for the Scratch Studio

EliasTalamirYT wrote:

Sheep_maker wrote:

Tosh may interest you
It is kinda what I was looking for but it doesn't let me code using JS, only the blocks in text form. What I meant was like, actually code in JS, and it will create the custom blocks. Like if I type “rect(90,90,89,32);” in JS, it will create a custom block that draws that rectangle
That isn't even proper JavaScript
Sheep_maker
Scratcher
1000+ posts

A new setting for the Scratch Studio

EliasTalamirYT wrote:

Sheep_maker wrote:

Tosh may interest you
It is kinda what I was looking for but it doesn't let me code using JS, only the blocks in text form. What I meant was like, actually code in JS, and it will create the custom blocks. Like if I type “rect(90,90,89,32);” in JS, it will create a custom block that draws that rectangle
Doesn't Khan Academy have something like that?

If you want to actually code in JavaScript, you shouldn't use Scratch; just use a text editor instead

If you want Scratch blocks to be able to run JavaScript, you can try Snap! instead
Luvexina
Scratcher
500+ posts

A new setting for the Scratch Studio

Sheep_maker wrote:

EliasTalamirYT wrote:

Sheep_maker wrote:

Tosh may interest you
It is kinda what I was looking for but it doesn't let me code using JS, only the blocks in text form. What I meant was like, actually code in JS, and it will create the custom blocks. Like if I type “rect(90,90,89,32);” in JS, it will create a custom block that draws that rectangle
Doesn't Khan Academy have something like that?

If you want to actually code in JavaScript, you shouldn't use Scratch; just use a text editor instead

If you want Scratch blocks to be able to run JavaScript, you can try Snap! instead
Khan Academy uses a JS library, which isn't standard JS.

And you are right about the text editor. I prefer Visual Studio Code
Nambaseking01
Scratcher
1000+ posts

A new setting for the Scratch Studio

Semi-support.

Scratch was created for kids to learn the basics of advanced programming, it was not made to immediately hop into advanced programming. But then at the same moment, programmers that are already experienced with Python, Java, etc etc… might find this feature useful.

At the same moment, I just realized this is rejected. So even if I were to semi-support, this would not be added.

Last edited by Nambaseking01 (Aug. 3, 2019 08:39:09)

EliasTalamirYT
Scratcher
46 posts

A new setting for the Scratch Studio

Sheep_maker wrote:

EliasTalamirYT wrote:

Sheep_maker wrote:

Tosh may interest you
It is kinda what I was looking for but it doesn't let me code using JS, only the blocks in text form. What I meant was like, actually code in JS, and it will create the custom blocks. Like if I type “rect(90,90,89,32);” in JS, it will create a custom block that draws that rectangle
Doesn't Khan Academy have something like that?

If you want to actually code in JavaScript, you shouldn't use Scratch; just use a text editor instead

If you want Scratch blocks to be able to run JavaScript, you can try Snap! instead

I do use khan, but i want to make my khan projects into scratch projects.

Powered by DjangoBB