Discuss Scratch
- Discussion Forums
- » Suggestions
- » Converting Scratch to other coding languages.
- Glamgeek
-
11 posts
Converting Scratch to other coding languages.
System.out.printIn(“Converting Scratch to other Coding Languages”);
- SuperDoom
-
1000+ posts
Converting Scratch to other coding languages.
Support. This would be great for people like me who don't have the attention span and/or short-term memory capacity to learn a non-block programming language to create a professional-lookig website. (Just so you people know, I know <!DOCTYPE HTML>, <p>, <br />, and <a href> in HTML.)
- Glamgeek
-
11 posts
Converting Scratch to other coding languages.
Good point. I wouldn't be one of those people though. I would probably just use it for the sake of examining the code and learning from it. Thanks for the support!
- johndeere47
-
100+ posts
Converting Scratch to other coding languages.
It would take quite a bit of work to properly convert. But I'm still for it.
- TheMonsterOfTheDeep
-
1000+ posts
Converting Scratch to other coding languages.
The problem is that converting Scratch code to other languages really doesn't work.
Take a look at this. This is jQuery, a popular JavaScript library, “minified” - all the details that make it more easy to read have been removed, including whitespace and comments. This is similar, though not identical, to what a converter would do while transforming Scratch into another language.
For example, if it were to convert Scratch to Java, it might convert this:
And then that method might look something like this:
Nowhere does this really help somebody learn Java - this method has to be defined manually to be used.
There are no equivalents of Scratch blocks in other languages; they all have to be manually implemented. Those manual implementation that Scratch would generate would not be particularly helpful to those trying to learn other languages.
EDIT: Fixed my example. (Sorta)
Take a look at this. This is jQuery, a popular JavaScript library, “minified” - all the details that make it more easy to read have been removed, including whitespace and comments. This is similar, though not identical, to what a converter would do while transforming Scratch into another language.
For example, if it were to convert Scratch to Java, it might convert this:
to this:
Sprite1.moveSteps(10);
public final void moveSteps(float steps) { this.x += steps * (float)Math.cos(this.direction); this.y += steps * (float)Math.sin(this.direction); }
There are no equivalents of Scratch blocks in other languages; they all have to be manually implemented. Those manual implementation that Scratch would generate would not be particularly helpful to those trying to learn other languages.
EDIT: Fixed my example. (Sorta)

Last edited by TheMonsterOfTheDeep (Feb. 27, 2016 05:04:21)
- Ravenpaw-Warrior
-
100+ posts
Converting Scratch to other coding languages.
No support, this site is for all ages. Some people might not understand.
- TheMonsterOfTheDeep
-
1000+ posts
Converting Scratch to other coding languages.
all ages. Some people might not understand.Well, that's not really a good argument. No support, this site is for

I would say that a large majority of the Scratchers who are less than 13 probably don't know what these blocks do:
- Glamgeek
-
11 posts
Converting Scratch to other coding languages.
all ages. Some people might not understand.I agree with your statement but people of all ages can learn to code even if it's just the basics. Converting scratch to other languages to be the start of an amazing learning experience. It is totally optional and you are not required to participate. (It's kind of like defining a complicated block in Scratch. Is is a concept for more experienced scratchersa and is completely optional as enjoyment of the sight doesn't depend on this.) No support, this site is for
- Glamgeek
-
11 posts
Converting Scratch to other coding languages.
You do have a point. I will consider this. The problem is that converting Scratch code to other languages really doesn't work.
Take a look at this. This is jQuery, a popular JavaScript library, “minified” - all the details that make it more easy to read have been removed, including whitespace and comments. This is similar, though not identical, to what a converter would do while transforming Scratch into another language.
For example, if it were to convert Scratch to Java, it might convert this:to this:And then that method might look something like this:Sprite1.moveSteps(10);Nowhere does this really help somebody learn Java - this method has to be defined manually to be used.public final void moveSteps(float steps) { this.x += (float)Math.cos(steps); this.y += (float)Math.sin(steps); }
There are no equivalents of Scratch blocks in other languages; they all have to be manually implemented. Those manual implementation that Scratch would generate would not be particularly helpful to those trying to learn other languages.
- Glamgeek
-
11 posts
Converting Scratch to other coding languages.
So what I've derived form this discussion is that although this idea is compelling it may not be practical in the sense of actually working it out. There are no definite equivalents of Scratch blocks in other languages and it would be a very difficult computer algorithm.
System.out.printIn(“Thanks so must for your feedback!”);
System.out.printIn(“Thanks so must for your feedback!”);
- IronBit_Studios
-
1000+ posts
Converting Scratch to other coding languages.
Some concepts aren't really portable, and there are already things like ApuC and pixie.
- the_extreme_coder
-
93 posts
Converting Scratch to other coding languages.
thats a good idea maybe make it that only pro scratchers can change the coding languages
and please someone who is op please get dat feature then there would be debugging in scratch projects
and please someone who is op please get dat feature then there would be debugging in scratch projects

- Linkandar
-
33 posts
Converting Scratch to other coding languages.
Yes!!!!!!!! Dear Scratch creators,
Hi MIT! I really like scratch. I'm a new user and it really helps me in learning Java script code amongst other languages.(python, java…ect.). As the application seems to be similar to several other coding languages it would be cool if their was a convert to Pygame, java, or another coding language button. This would be really cool and help your users to understand how these languages work!
Thanks,
GlamGeek
- Zekrom01
-
1000+ posts
Converting Scratch to other coding languages.
Actually, change to semi-support if the converter is on a totally different website since doing this will be very, very difficult.
- fredfish10
-
100+ posts
Converting Scratch to other coding languages.
whats the point in learning JS if I can just convert from scratch
- Discussion Forums
- » Suggestions
-
» Converting Scratch to other coding languages.