Discuss Scratch

Glamgeek
Scratcher
11 posts

Converting Scratch to other coding languages.

System.out.printIn(“Converting Scratch to other Coding Languages”);
SuperDoom
Scratcher
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
Scratcher
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!
Andrew_Rodebaugh
Scratcher
100+ posts

Converting Scratch to other coding languages.

Support
johndeere47
Scratcher
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
Scratcher
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:
This is in Sprite1move10steps
to this:
Sprite1.moveSteps(10);
And then that method might look something like this:
public final void moveSteps(float steps) {
    this.x += steps * (float)Math.cos(this.direction);
    this.y += steps * (float)Math.sin(this.direction);
}
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)

Last edited by TheMonsterOfTheDeep (Feb. 27, 2016 05:04:21)

Ravenpaw-Warrior
Scratcher
100+ posts

Converting Scratch to other coding languages.

No support, this site is for all ages. Some people might not understand.
TheMonsterOfTheDeep
Scratcher
1000+ posts

Converting Scratch to other coding languages.

Ravenpaw-Warrior wrote:

No support, this site is for all ages. Some people might not understand.
Well, that's not really a good argument. “For all ages” means that content should be appropriate for all ages, not that it should be simple.

I would say that a large majority of the Scratchers who are less than 13 probably don't know what these blocks do:
xmodysinofx
Glamgeek
Scratcher
11 posts

Converting Scratch to other coding languages.

Ravenpaw-Warrior wrote:

No support, this site is for 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.)
Glamgeek
Scratcher
11 posts

Converting Scratch to other coding languages.

TheMonsterOfTheDeep wrote:

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:
This is in Sprite1move10steps
to this:
Sprite1.moveSteps(10);
And then that method might look something like this:
public final void moveSteps(float steps) {
    this.x += (float)Math.cos(steps);
    this.y += (float)Math.sin(steps);
}
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.
You do have a point. I will consider this.
Glamgeek
Scratcher
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!”);
IronBit_Studios
Scratcher
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
Scratcher
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
legoboy7107
Scratcher
100+ posts

Converting Scratch to other coding languages.

I support this!
Linkandar
Scratcher
33 posts

Converting Scratch to other coding languages.

Glamgeek wrote:

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
Yes!!!!!!!!
Zekrom01
Scratcher
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.
JonathanSchaffer
Scratcher
1000+ posts

Converting Scratch to other coding languages.

whengreenflagclickedsystem.out.print"semi-support";supporters=supporters+0;end
banana439monkey
Scratcher
1000+ posts

Converting Scratch to other coding languages.

No support.
DaSpudLord
Scratcher
1000+ posts

Converting Scratch to other coding languages.

banana439monkey wrote:

No support.
Why?
fredfish10
Scratcher
100+ posts

Converting Scratch to other coding languages.

whats the point in learning JS if I can just convert from scratch

Powered by DjangoBB