This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2013-01-23 06:55:21

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Real Code Generator

jvvg wrote:

bullelk12 wrote:

jvvg wrote:

The whole point of Scratch is that it's easy. All of it is easy to figure out. No block or component can't be figured out by a beginner.
Making the code typeable would defeat the purpose, and if you want to see the Flash code, it uses a player that is simply a parser for the Scratch File Format.

Whoa whoa, that's like limiting what people can do on purpose. Someone could completely ignore that aspect of scratch and wouldn't be hindered a bit. But for those who do care, they would be able to as a learning experience.

If you really want Scratch to have no limits, then it would have to be able to read/write files, access network ports directly, random-access RAM, use DLL files, be able to integrate directly with OS APIs, etc.
A text-based language provides no additional value to Scratch, and only makes it more difficult for younger people to understand.
If you really want to learn a text-based language, use Python or something. Don't bother with Scratch.

I don't think they're saying that... I think they're talking about seeing the flash code.

Offline

 

#27 2013-01-23 06:57:55

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Real Code Generator

I think it should be hidden though so that new scratchers don't get confused at first.

Last edited by ImagineIt (2013-01-23 06:58:08)

Offline

 

#28 2013-01-23 16:31:58

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Real Code Generator

bullelk12 wrote:

I mean, Imagine this. You place a "move (10) steps" block, you could take a look at what that looks like in text. Then you could an "if" block around the first block and see what that looks like and so on. Those are super small steps that wouldn't even be required.

Thing is, some languages might have it like this:
draw 'player' on screen at x5 y8
draw 'player' on screen at x15 y8

So there is no clear 'move 10 steps' function or whatever.


Who would win, SOPA or PIPA?

Offline

 

#29 2013-01-23 16:51:03

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Real Code Generator

MrFlash67 wrote:

bullelk12 wrote:

I mean, Imagine this. You place a "move (10) steps" block, you could take a look at what that looks like in text. Then you could an "if" block around the first block and see what that looks like and so on. Those are super small steps that wouldn't even be required.

Thing is, some languages might have it like this:
draw 'player' on screen at x5 y8
draw 'player' on screen at x15 y8

So there is no clear 'move 10 steps' function or whatever.

he means flash


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#30 2013-01-23 16:58:55

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Real Code Generator

MrFlash67 wrote:

bullelk12 wrote:

I mean, Imagine this. You place a "move (10) steps" block, you could take a look at what that looks like in text. Then you could an "if" block around the first block and see what that looks like and so on. Those are super small steps that wouldn't even be required.

Thing is, some languages might have it like this:
draw 'player' on screen at x5 y8
draw 'player' on screen at x15 y8

So there is no clear 'move 10 steps' function or whatever.

But isn't it better that we have the option of seeing and programming in text-based programming, even if it's potentially confusing, rather than being forced to use block-based coding?


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#31 2013-01-23 17:35:23

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Real Code Generator

OverPowered wrote:

MrFlash67 wrote:

bullelk12 wrote:

I mean, Imagine this. You place a "move (10) steps" block, you could take a look at what that looks like in text. Then you could an "if" block around the first block and see what that looks like and so on. Those are super small steps that wouldn't even be required.

Thing is, some languages might have it like this:
draw 'player' on screen at x5 y8
draw 'player' on screen at x15 y8

So there is no clear 'move 10 steps' function or whatever.

But isn't it better that we have the option of seeing and programming in text-based programming, even if it's potentially confusing, rather than being forced to use block-based coding?

If you don't want to use block-based coding, just use a text-based programming language.


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#32 2013-01-23 17:44:12

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Real Code Generator

I think he means simply have an option to see the flash code that is uploaded to the site


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#33 2013-01-23 18:05:26

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Real Code Generator

Mokat wrote:

If you don't want to use block-based coding, just use a text-based programming language.

And leave the Scratch community? Never.  smile
I love block-based programming, but as I said previously, text-based coding can be useful for long scripts, uploading scripts, and teaching potential programmers to understand text-based coding.


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#34 2013-01-23 20:08:40

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Real Code Generator

You don't have to leave the Scratch community... You can learn more than one programming language....


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#35 2013-01-23 22:06:21

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Real Code Generator

Mokat wrote:

You don't have to leave the Scratch community... You can learn more than one programming language....

I know.  tongue
The problem is, currently one can only share block-based Scratch programs on the Scratch website, making any text-based programs non-Scratchable.
The idea is that one could do Scratch coding either with text or with blocks, whichever suits your fancy, and show it to fellow Scratchers.  smile


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#36 2013-01-24 08:13:13

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Real Code Generator

Well, correct me if I'm wrong, but I think that you can edit the source code and then share it on Modshare.tk...


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#37 2013-01-24 11:31:58

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: Real Code Generator

bullelk12 wrote:

Finally someone who get it. Adding more doesn't have to equal harder, anyone who didn't want to wouldn't have to. It's their decision, and if some of you are worried about being bested because you don't want to take the time to learn the real deal, I'm sorry. But I really want this!

^
anyway, I support

Last edited by taddl (2013-01-24 11:32:13)


http://blocks.scratchr.org/API.php?action=projects&type=newest&return=image&user=taddl
http://blocks.scratchr.org/API.php?user=taddl&action=projects&type=newest&return=text&num=1

Offline

 

#38 2013-01-24 12:54:38

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: Real Code Generator

taddl wrote:

bullelk12 wrote:

Finally someone who get it. Adding more doesn't have to equal harder, anyone who didn't want to wouldn't have to. It's their decision, and if some of you are worried about being bested because you don't want to take the time to learn the real deal, I'm sorry. But I really want this!

^
anyway, I support

^
In addition to everything above,
Nobody is forcing you to look at the text.  It won't subtract the value of Scratch; however, it helps.  I know Scratch well, but Flash is like a big blank space to me.  If we could see the Flash code, it would help us program in other languages a LOT better.  Scratch is the beginning coder's language, why not make it easier to move on?


Alt of Firedrake969.

Offline

 

#39 2013-01-24 12:57:00

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Real Code Generator

firedrake969_test wrote:

taddl wrote:

bullelk12 wrote:

Finally someone who get it. Adding more doesn't have to equal harder, anyone who didn't want to wouldn't have to. It's their decision, and if some of you are worried about being bested because you don't want to take the time to learn the real deal, I'm sorry. But I really want this!

^
anyway, I support

^
In addition to everything above,
Nobody is forcing you to look at the text.  It won't subtract the value of Scratch; however, it helps.  I know Scratch well, but Flash is like a big blank space to me.  If we could see the Flash code, it would help us program in other languages a LOT better.  Scratch is the beginning coder's language, why not make it easier to move on?

EXACTLY what I am trying to say.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#40 2013-01-24 13:16:48

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Real Code Generator

I think it's a good idea: it allows complex projects and it users easily move on to other languages. However, the scratch team would probably say it might drive away beginners with a text-view. I think maybe there should be a menu called "advanced features" which one of the options should be "switch to code view", among other advanced things that new scratchers might not understand.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#41 2013-01-24 15:09:10

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Real Code Generator

One way to maybe fix that is to make it an unobvious addition to scratch. Like in the edit toolbar it could say "text code editor" or something. This would keep complete beginners coszily unaware.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#42 2013-01-24 15:17:39

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Real Code Generator

So this seems to be the main problem for some of you. The idea that adding a text code version would: defeat the purpose of scratch and may scare off new scratchers.

Both have been argued against both directions. Maybe a compromise is an order.

The text code editor would be somewhat hidden from view so that new scratchers won't  be so exposed to it.

The code generator would not be able to do EVERYTHING, it would still have to stick with what actual scratch blocks could do and nothing more.

In the code editor you could both view and edit the code you have. This would be used specifically as a higher level learning tool for those who want to move to the next level. Consider this middle ground between scratch blocks and text programming.

I think this is what we have so far, any thoughts?


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#43 2013-01-24 15:21:32

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Real Code Generator

Whoa sorry, another post, but I came up with another idea. What if the code editor was a separate window from scratch, and every time you added a scratch block to your script the text editor would change with it, this way it's still more of a visual experience cause you would see the code change before your very eyes.

Last edited by bullelk12 (2013-01-24 15:21:55)


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#44 2013-01-25 15:49:29

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Real Code Generator

bump


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#45 2013-01-26 10:20:38

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Real Code Generator

Bring up this post...

:3


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#46 2013-01-26 11:12:27

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Real Code Generator

bullelk12 wrote:

I think this is what we have so far, any thoughts?

I think one of the other problems is that the code for a Scratch project would be so complicated if you went off what it actually executes, because it has a whole execution engine for each block whose specification is defined. Even if you look at the source for Scratch 1.4, you can see how complex it is; Scratch 2.0's is even more so, especially with things like the webcam blocks. The code it generated would be hard to understand, and that's coming from someone who knows several programming languages.  hmm


Posts: 20000 - Show all posts

Offline

 

#47 2013-01-26 23:50:15

OverPowered
Scratcher
Registered: 2012-07-27
Posts: 100+

Re: Real Code Generator

veggieman001 wrote:

The code it generated would be hard to understand, and that's coming from someone who knows several programming languages.  hmm

This is quite possibly true, but if one of Scratch's ultimate goals is to introduce Scratchers to more advanced programming, learning some of the simpler blocks' codes would be a huge step in that direction.


Newest project: Tunnel TEST ~http://blocks.scratchr.org/API.php?user=OverPowered&action=onlineStatus~ On my mind: Unicameralism

Offline

 

#48 2013-01-27 08:03:07

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Real Code Generator

veggieman001 wrote:

I think one of the other problems is that the code for a Scratch project would be so complicated if you went off what it actually executes, because it has a whole execution engine for each block whose specification is defined. Even if you look at the source for Scratch 1.4, you can see how complex it is; Scratch 2.0's is even more so, especially with things like the webcam blocks. The code it generated would be hard to understand, and that's coming from someone who knows several programming languages.  hmm

I think the he means simple text-based scratch, not the actual flash code.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#49 2013-01-27 15:43:50

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Real Code Generator

That is probably, uh, VERY true  sad . In this case maybe you would just not be able to anything with those features (webcam etc.). However this would leave odd gaps in the program which may mess up the programming a bit, hmmm.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#50 2013-01-27 15:52:24

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Real Code Generator

OverPowered wrote:

veggieman001 wrote:

The code it generated would be hard to understand, and that's coming from someone who knows several programming languages.  hmm

This is quite possibly true, but if one of Scratch's ultimate goals is to introduce Scratchers to more advanced programming, learning some of the simpler blocks' codes would be a huge step in that direction.

But with even a simple block, like, for example, Show, there would still be construction of a sprite object which could potentially be quite confusing to people with little experience with code and that type of OOP.

joefarebrother wrote:

veggieman001 wrote:

I think one of the other problems is that the code for a Scratch project would be so complicated if you went off what it actually executes, because it has a whole execution engine for each block whose specification is defined. Even if you look at the source for Scratch 1.4, you can see how complex it is; Scratch 2.0's is even more so, especially with things like the webcam blocks. The code it generated would be hard to understand, and that's coming from someone who knows several programming languages.  hmm

I think the he means simple text-based scratch, not the actual flash code.

No, this is asking for the actual code if you read the first post.


Posts: 20000 - Show all posts

Offline

 

Board footer