Discuss Scratch

FAKER_37
Scratcher
5 posts

Add an option to switch to JavaScript like code

I think that instead of forcing people to use blocks there should be an option in settings to switch to text code like how JavaScript is. I personally find this way easier to code with and find bugs and know what everything is. It would also make it easier to see the code since we wouldn't need the block library since we aren't using blocks. I don't know how other people feel about this so that's why I'm suggesting it being an option or like an extension probably.
CodeComet6161
Scratcher
1000+ posts

Add an option to switch to JavaScript like code

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

This 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. Another option is MakeCode Arcade, a programming language that can convert between block-based and text-based programming within the editor. Advanced programmers can use Leopard to make Scratch projects directly using JavaScript.

Powered by DjangoBB