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

#176 2010-08-26 10:42:33

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

Ace-of-Spades wrote:

Harakou wrote:

Ace-of-Spades wrote:


Wait, you mean it gets highlighted black?

No, I mean that written code with correct syntax gets colored according to the type of command, but incorrect syntax doesn't get colored and is therefore black. Get it?

But this won't be based in Python or related to it. How would they get it working like it made out of whatever it's going to be?

I'm just suggesting syntax highlighting as a feature, and used Python as an example of a text editor that does that.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#177 2010-08-26 10:56:38

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

coolstuff wrote:

ScratchReallyROCKS wrote:


Maybe it could sense syntax errors and prompt you to correct them before switching back to the block tab.

Absolutely! I think the syntax should be super-easy to understand, without any hashes, quotation marks, semicolons, or commas. I think maybe auto-correction of common typos and syntax errors (it's pretty easy to tell what you're trying to type with such a small library of commands) may be the best solution to get the errors out of the way from the start.

The mission of Scratch is to keep the programming simple. A lot of programming languages have these difficult to remember, inconsistent syntaxes which nobody really understands - as long as Scratch eliminates that and makes it simple to code, I think it's a great learning tool.

Yes! And why not syntax highlighting as well, like in the Python Idle interface? It'd make code easier to read and more obvious when you got something wrong, because the incorrect syntax would be in plain black text.

Or, even better, what if when you type a command into it, it would color it with the color of the block it corresponds to.

I hate typing on an iPod.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#178 2010-08-26 11:29:36

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Text-Based Scratch

ScratchReallyROCKS wrote:

Harakou wrote:

coolstuff wrote:


Absolutely! I think the syntax should be super-easy to understand, without any hashes, quotation marks, semicolons, or commas. I think maybe auto-correction of common typos and syntax errors (it's pretty easy to tell what you're trying to type with such a small library of commands) may be the best solution to get the errors out of the way from the start.

The mission of Scratch is to keep the programming simple. A lot of programming languages have these difficult to remember, inconsistent syntaxes which nobody really understands - as long as Scratch eliminates that and makes it simple to code, I think it's a great learning tool.

Yes! And why not syntax highlighting as well, like in the Python Idle interface? It'd make code easier to read and more obvious when you got something wrong, because the incorrect syntax would be in plain black text.

Or, even better, what if when you type a command into it, it would color it with the color of the block it corresponds to.

I hate typing on an iPod.

yikes  Spectacular idea! I really like the way this is going - the community is a lot more creative now than when I first suggested this  tongue

Offline

 

#179 2010-08-26 11:53:38

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

ScratchReallyROCKS wrote:

Harakou wrote:

coolstuff wrote:


Absolutely! I think the syntax should be super-easy to understand, without any hashes, quotation marks, semicolons, or commas. I think maybe auto-correction of common typos and syntax errors (it's pretty easy to tell what you're trying to type with such a small library of commands) may be the best solution to get the errors out of the way from the start.

The mission of Scratch is to keep the programming simple. A lot of programming languages have these difficult to remember, inconsistent syntaxes which nobody really understands - as long as Scratch eliminates that and makes it simple to code, I think it's a great learning tool.

Yes! And why not syntax highlighting as well, like in the Python Idle interface? It'd make code easier to read and more obvious when you got something wrong, because the incorrect syntax would be in plain black text.

Or, even better, what if when you type a command into it, it would color it with the color of the block it corresponds to.

I hate typing on an iPod.

Pretty much what I had in mind.  smile  although I like the idea of having the color correspond to the type of block.

And same. Mobile Safari doesn't display the text input box on the forums well, so I'm typing completely blind right now.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#180 2010-08-26 11:58:19

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

And same. Mobile Safari doesn't display the text input box on the forums well, so I'm typing completely blind right now.

Excuse this off-topicness, but I've found that rotating it to Portrait and then back to Landscape allows you to scroll down (use two fingers inside the textbox), meaning you can type normally  smile

Offline

 

#181 2010-08-26 12:35:24

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

coolstuff wrote:

Harakou wrote:

And same. Mobile Safari doesn't display the text input box on the forums well, so I'm typing completely blind right now.

Excuse this off-topicness, but I've found that rotating it to Portrait and then back to Landscape allows you to scroll down (use two fingers inside the textbox), meaning you can type normally  smile

Ah. Thanks so much.  smile


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#182 2010-08-26 12:35:43

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

And same. Mobile Safari doesn't display the text input box on the forums well, so I'm typing completely blind right now.

I would suggest using it vertically, it works so much better.

EDIT: coolstuff beat me to it!

Last edited by ScratchReallyROCKS (2010-08-26 12:37:32)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#183 2010-08-26 12:37:41

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Text-Based Scratch

http://img825.imageshack.us/img825/673/scratchmodel.png


Hai.

Offline

 

#184 2010-08-26 12:42:18

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

I meant a new text representation. Not one that looks like blocks. I was thinking more along the lines of:

Code:

when green flag clicked
forever {
   move 10 steps
}

http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#185 2010-08-26 12:44:53

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Text-Based Scratch

I see. Lemme try, yours.


Hai.

Offline

 

#186 2010-08-26 12:50:13

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Text-Based Scratch

I like both of them - fg123's looks a lot more like "Scratch" but ScratchReallyROCKS's is a lot more conventional. If I were to choose between them, I'd prefer ScratchReallyROCKS's because it could be quite tedious to loop with fg123's.

Offline

 

#187 2010-08-26 12:57:03

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Text-Based Scratch

http://img824.imageshack.us/img824/9338/scratchmodel2.png


Hai.

Offline

 

#188 2010-08-26 14:39:59

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

I like it! But I don't think variables should be defined in the script, because they aren't in block based Scratch, and there could be an inconsistency.

And of course, the ability to switch between text and block mode should be a setting. I think having both modes easily acessable by default will only confuse some new scratchers that accidentally stumble upon it. (Keep in mind I don't mean a hidden feature like mesh that you need to activate in the browser, just something with an option so you know what you're getting into.)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#189 2010-08-26 15:11:22

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

And of course, the ability to switch between text and block mode should be a setting. I think having both modes easily acessable by default will only confuse some new scratchers that accidentally stumble upon it. (Keep in mind I don't mean a hidden feature like mesh that you need to activate in the browser, just something with an option so you know what you're getting into.)

Absolutely! I had in mind another tab, like "Sounds" and "Costumes." There would be an additional tab for "Code." Enabling the option should or could be like Single Stepping, I think.

Offline

 

#190 2010-08-26 15:49:28

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

coolstuff wrote:

Harakou wrote:

And of course, the ability to switch between text and block mode should be a setting. I think having both modes easily acessable by default will only confuse some new scratchers that accidentally stumble upon it. (Keep in mind I don't mean a hidden feature like mesh that you need to activate in the browser, just something with an option so you know what you're getting into.)

Absolutely! I had in mind another tab, like "Sounds" and "Costumes." There would be an additional tab for "Code." Enabling the option should or could be like Single Stepping, I think.

Yes, I personally prefer a tab as well. But would it just be another tab on top, or should it be two tabs on the bottom, one for blocks and the other for code? (Like SRR's mockup) I think the latter makes sense because blocks/code is like a subdivision of scripts.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#191 2010-08-26 16:41:57

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

coolstuff wrote:

Harakou wrote:

And of course, the ability to switch between text and block mode should be a setting. I think having both modes easily acessable by default will only confuse some new scratchers that accidentally stumble upon it. (Keep in mind I don't mean a hidden feature like mesh that you need to activate in the browser, just something with an option so you know what you're getting into.)

Absolutely! I had in mind another tab, like "Sounds" and "Costumes." There would be an additional tab for "Code." Enabling the option should or could be like Single Stepping, I think.

Yes, I personally prefer a tab as well. But would it just be another tab on top, or should it be two tabs on the bottom, one for blocks and the other for code? (Like SRR's mockup) I think the latter makes sense because blocks/code is like a subdivision of scripts.

Yeah, the latter does seem to make a little more sense. Somebody should suggest this…

Offline

 

#192 2010-08-26 16:57:03

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

coolstuff wrote:

Harakou wrote:

coolstuff wrote:


Absolutely! I had in mind another tab, like "Sounds" and "Costumes." There would be an additional tab for "Code." Enabling the option should or could be like Single Stepping, I think.

Yes, I personally prefer a tab as well. But would it just be another tab on top, or should it be two tabs on the bottom, one for blocks and the other for code? (Like SRR's mockup) I think the latter makes sense because blocks/code is like a subdivision of scripts.

Yeah, the latter does seem to make a little more sense. Somebody should suggest this…

What do you mean somebody should suggest it? I already did.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#193 2010-08-26 17:42:06

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

ScratchReallyROCKS wrote:

coolstuff wrote:

Harakou wrote:


Yes, I personally prefer a tab as well. But would it just be another tab on top, or should it be two tabs on the bottom, one for blocks and the other for code? (Like SRR's mockup) I think the latter makes sense because blocks/code is like a subdivision of scripts.

Yeah, the latter does seem to make a little more sense. Somebody should suggest this…

What do you mean somebody should suggest it? I already did.

On the suggestions page?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#194 2010-08-26 18:20:35

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

ScratchReallyROCKS wrote:

coolstuff wrote:


Yeah, the latter does seem to make a little more sense. Somebody should suggest this…

What do you mean somebody should suggest it? I already did.

On the suggestions page?

Yeah, there's a link to it on the first post in the thread.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#195 2010-08-26 18:48:03

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Text-Based Scratch

ScratchReallyROCKS wrote:

Harakou wrote:

ScratchReallyROCKS wrote:


What do you mean somebody should suggest it? I already did.

On the suggestions page?

Yeah, there's a link to it on the first post in the thread.

Oh, goodness! I didn't even notice that  smile

I'll cast my vote straightaway.

Offline

 

#196 2010-08-26 19:32:54

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

coolstuff wrote:

ScratchReallyROCKS wrote:

Harakou wrote:


On the suggestions page?

Yeah, there's a link to it on the first post in the thread.

Oh, goodness! I didn't even notice that  smile

I'll cast my vote straightaway.

Thanks!  big_smile


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#197 2010-08-26 19:52:37

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

ScratchReallyROCKS wrote:

Harakou wrote:

ScratchReallyROCKS wrote:

What do you mean somebody should suggest it? I already did.

On the suggestions page?

Yeah, there's a link to it on the first post in the thread.

Oh! Looks like it's time to shave some more votes!

Edit: Never mind; it seems I've already voted...

Last edited by Harakou (2010-08-26 19:55:25)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#198 2010-08-26 22:32:17

DistantVisit
Scratcher
Registered: 2010-07-29
Posts: 100+

Re: Text-Based Scratch

Harakou wrote:

I like it! But I don't think variables should be defined in the script, because they aren't in block based Scratch, and there could be an inconsistency.

And of course, the ability to switch between text and block mode should be a setting. I think having both modes easily acessable by default will only confuse some new scratchers that accidentally stumble upon it. (Keep in mind I don't mean a hidden feature like mesh that you need to activate in the browser, just something with an option so you know what you're getting into.)

That's exactly the same thought I had when I stumbled upon this idea. I've noticed the scratch team has been very consistent about making scratch very kid-friendly so at most I think they would make this a hidden feature like mesh. I personally like the idea, but new users may find it and become very confused. Scratch is curently simple, made to be simple, ment to be simple, and will most likely stay simple. SO I very much doubt this will ever go on scratch.

Although, there is still hope.  smile

Somehow if we conviced Brian Harvey and Jens Moing to somehow implement this into BYOB, it would be much better. BYOB is ment to be advanced and a "more matured" version of scratch. I find that this feature woud belong much better in BYOB. Of course this all depends on whether the developers would be considerate on implementing this to BYOB.

Nice thinking, and really informative mock up fg123!  wink

Offline

 

#199 2010-08-26 22:49:16

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Text-Based Scratch

DistantVisit wrote:

Somehow if we conviced Brian Harvey and Jens Moing to somehow implement this into BYOB, it would be much better. BYOB is ment to be advanced and a "more matured" version of scratch. I find that this feature woud belong much better in BYOB. Of course this all depends on whether the developers would be considerate on implementing this to BYOB.

Nice thinking, and really informative mock up fg123!  wink

Yes, we all know what BYOB is meant to be.  tongue

You have a very good point, this does seem like more of a BYOBish thing, especially if you could define procedures in the script, and it would turn into a block when you exit text mode.

But the problem is, when you have scripts like this:

http://img825.imageshack.us/img825/4525/long.gif

it slows Scratch down an amazing amount. With text representation though, it wouldn't have to worry about drawing and compiling scripts constantly. Of course, that isn't saying why it should be in Scratch. I guess the reason for that is basically that, when people make huge, complicated things, they want to share it with other people. It's natural. But, when people download it, if their computer is slower, then it might grind to a halt because of the huge scripting. Then, once it miraculously loads it, it would take forever to scroll or switch sprites. I've had it happen before. So, they could just switch to text view, and only worry about it being slow when they start scripts or switch back to block view, when it does all the compiling.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#200 2010-08-27 01:33:15

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Text-Based Scratch

ScratchReallyROCKS wrote:

DistantVisit wrote:

Somehow if we conviced Brian Harvey and Jens Moing to somehow implement this into BYOB, it would be much better. BYOB is ment to be advanced and a "more matured" version of scratch. I find that this feature woud belong much better in BYOB. Of course this all depends on whether the developers would be considerate on implementing this to BYOB.

Nice thinking, and really informative mock up fg123!  wink

Yes, we all know what BYOB is meant to be.  tongue

You have a very good point, this does seem like more of a BYOBish thing, especially if you could define procedures in the script, and it would turn into a block when you exit text mode.

But the problem is, when you have scripts like this:

http://img825.imageshack.us/img825/4525/long.gif

it slows Scratch down an amazing amount. With text representation though, it wouldn't have to worry about drawing and compiling scripts constantly. Of course, that isn't saying why it should be in Scratch. I guess the reason for that is basically that, when people make huge, complicated things, they want to share it with other people. It's natural. But, when people download it, if their computer is slower, then it might grind to a halt because of the huge scripting. Then, once it miraculously loads it, it would take forever to scroll or switch sprites. I've had it happen before. So, they could just switch to text view, and only worry about it being slow when they start scripts or switch back to block view, when it does all the compiling.

YES YES YES YES YES

And you can copy and paste text too.  tongue


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

Board footer