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

#276 2011-10-26 17:07:56

efisher82
Scratcher
Registered: 2009-12-07
Posts: 100+

Re: Text-Based Scratch

S
U
P
P
O
R
T


http://bit.ly/ApaYt4http://ow.ly/8Jemvhttp://fulltwist.net/wp-content/plugins/social-slider/icons/standard/youtube-32.png

Offline

 

#277 2011-10-26 18:07:10

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Text-Based Scratch

Just so you guys now, you can vote and support this here:http://suggest.scratch.mit.edu/forums/6 … ed-scratch


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#278 2011-10-26 21:48:15

undefeatedgames
Scratcher
Registered: 2011-05-22
Posts: 1000+

Re: Text-Based Scratch

I support


Please call me udg or bearsfan, not undefeated.
Scratch and Misc.! Click here for Misc.'s Successorhttps://lh3.googleusercontent.com/-jkhes3yzmQk/T7G_BnxT9xI/AAAAAAAABYI/xhoN1Jk2M08/s513/sigp1.gif

Offline

 

#279 2011-10-28 17:13:43

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Text-Based Scratch

This is a brilliant idea, especially for speed — both eliminating lag and as typing is faster — and for copy/pasting scripts. Much better than trying to use the "blocks" on the forums  tongue

About syntax: people seem to be suggesting using [square brackets] or {curly brackets} to show where blocks like "if" or "when" start and end. I think this is very un-Scratchlike, and — although this would presumably be a hidden feature — it feels too complicated to me.

Someone suggested a syntax more like Python. In Python, indentation is used to show where blocks start and end, rather than curly brackets {}. For example:

Code:

when green flag clicked:
    wait 0.25 secs
    switch to costume "cat"
    broadcast "message" and wait
    if MessageDone == 1:
        item = 0
        add Item to SomeList
    else:
        say "hi"

I think a syntax more like this, or something like Applescript, would be easier and more readable. If we're trying to bridge the gap between text-based languages and Scratch, it needs to be as easy as possible.

Last edited by blob8108 (2011-10-28 17:18:33)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#280 2011-10-29 09:49:55

Optimax-DJ
Scratcher
Registered: 2010-02-15
Posts: 100+

Re: Text-Based Scratch

blob8108 wrote:

This is a brilliant idea, especially for speed — both eliminating lag and as typing is faster — and for copy/pasting scripts. Much better than trying to use the "blocks" on the forums  tongue

About syntax: people seem to be suggesting using [square brackets] or {curly brackets} to show where blocks like "if" or "when" start and end. I think this is very un-Scratchlike, and — although this would presumably be a hidden feature — it feels too complicated to me.

Someone suggested a syntax more like Python. In Python, indentation is used to show where blocks start and end, rather than curly brackets {}. For example:

Code:

when green flag clicked:
    wait 0.25 secs
    switch to costume "cat"
    broadcast "message" and wait
    if MessageDone == 1:
        item = 0
        add Item to SomeList
    else:
        say "hi"

I think a syntax more like this, or something like Applescript, would be easier and more readable. If we're trying to bridge the gap between text-based languages and Scratch, it needs to be as easy as possible.

That's true, but it isn't supposed to bridge the gap, it's supposed to be a complicated extension that will bring out the best of scratch to those who know how to use it. We shouldn't be making compromises to make it easier, because it's designed to be efficient and faster to program, not easier. I like your Python-like indentations, but I think you should also have brackets as well, to make things clearer to see.

Last edited by Optimax-DJ (2011-10-29 09:51:10)


http://desmond.imageshack.us/Himg716/scaled.php?server=716&filename=optimaxdj.jpg&res=medium
Treat others as you would like to be treated  smile

Offline

 

#281 2011-10-29 12:17:54

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Text-Based Scratch

Optimax-DJ wrote:

That's true, but it isn't supposed to bridge the gap, it's supposed to be a complicated extension that will bring out the best of scratch to those who know how to use it. We shouldn't be making compromises to make it easier, because it's designed to be efficient and faster to program, not easier. I like your Python-like indentations, but I think you should also have brackets as well, to make things clearer to see.

I agree with you — the point of having a text-based view is that we don't want to have to compromise on speed and power (typing) to make programming easier (dragging 'n' dropping blocks).

But having curly brackets or not doesn't compromise the power of the lanuage — it's just a question of syntax. You can write complicated programs in both PHP and Python; the fact that PHP has curly brackets, and Python doesn't, doesn't make a difference. It's much more a matter of personal preference.

In fact, I find Python code much more readable and clearer to see than other languages — making it faster and easier to write complicated programs!  smile

Last edited by blob8108 (2011-10-29 12:21:55)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#282 2011-10-29 17:22:05

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

Re: Text-Based Scratch

blob8108 wrote:

Optimax-DJ wrote:

That's true, but it isn't supposed to bridge the gap, it's supposed to be a complicated extension that will bring out the best of scratch to those who know how to use it. We shouldn't be making compromises to make it easier, because it's designed to be efficient and faster to program, not easier. I like your Python-like indentations, but I think you should also have brackets as well, to make things clearer to see.

I agree with you — the point of having a text-based view is that we don't want to have to compromise on speed and power (typing) to make programming easier (dragging 'n' dropping blocks).

But having curly brackets or not doesn't compromise the power of the lanuage — it's just a question of syntax. You can write complicated programs in both PHP and Python; the fact that PHP has curly brackets, and Python doesn't, doesn't make a difference. It's much more a matter of personal preference.

In fact, I find Python code much more readable and clearer to see than other languages — making it faster and easier to write complicated programs!  smile

Yeah, if you properly format your code, curly braces make almost no differences in a language. They're much more important to the way the language is interpreted than the way it's read by a programmer, in fact. In Python, indentations (more accurately, white space) actually tell the interpreter in which loop or block of code the line is contained. In languages with braces, the white space makes no difference, and it's actually the braces that tell the compiler that. (For example, in Java, you needn't use any white space if you so want - you could write an entire program on one line.)


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

 

#283 2011-10-30 03:09:00

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

For example, in Java, you needn't use any white space if you so want - you could write an entire program on one line.

you can also do that in python. but it's not as easy as in java or C  tongue

Offline

 

#284 2011-10-30 03:18:42

ZappsMcJack
Scratcher
Registered: 2011-09-27
Posts: 100+

Re: Text-Based Scratch

text scratch

shouldn't you pick up lua, C++, or java instead?
i mean that's essentially what it is just different in a way


_________________THE LENNONATER___________________________
Gateway DX4840 Case|DX4840 Motherboard|Core i5 2500k 3.2 ghz|GTX 560|8gb Ram|Corsair GS700|1TB HDD|64gb Corsair Sata II SSD w/ Win7 64 bit ultimate

Offline

 

#285 2011-10-30 05:20:03

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Text-Based Scratch

roijac wrote:

Harakou wrote:

For example, in Java, you needn't use any white space if you so want - you could write an entire program on one line.

you can also do that in python. but it's not as easy as in java or C  tongue

I'm not sure you can actually do that, unless it's a really simple program. The language is designed to prevent you doing something like that, I think...  tongue

Last edited by blob8108 (2011-10-30 05:20:33)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#286 2011-10-30 05:24:52

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Text-Based Scratch

Harakou wrote:

Yeah, if you properly format your code, curly braces make almost no differences in a language. They're much more important to the way the language is interpreted than the way it's read by a programmer, in fact. In Python, indentations (more accurately, white space) actually tell the interpreter in which loop or block of code the line is contained. In languages with braces, the white space makes no difference, and it's actually the braces that tell the compiler that. (For example, in Java, you needn't use any white space if you so want - you could write an entire program on one line.)

Yes, this is true. But assuming they're both formatted nicely - and we can assume they will be, as we'd probably want a "clean up" function, similar to the scripts, that tidies up the code - then how the interpreter works makes no difference; so it's really down to which you prefer.

Last edited by blob8108 (2011-10-30 05:26:07)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#287 2011-10-31 11:46:55

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Text-Based Scratch

Interesting discussion, and I'm glad to see some folks are fans of python. That's what the front-end of Scratch 2.0 will be written in.  smile


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#288 2011-10-31 12:52:25

Optimax-DJ
Scratcher
Registered: 2010-02-15
Posts: 100+

Re: Text-Based Scratch

Lightnin wrote:

Interesting discussion, and I'm glad to see some folks are fans of python. That's what the front-end of Scratch 2.0 will be written in.  smile

Awesome! By the way, if Scratch 2.0 is Flash based and is in the cloud, will I be able to run it with my Solaris machine?

Last edited by Optimax-DJ (2011-10-31 12:52:45)


http://desmond.imageshack.us/Himg716/scaled.php?server=716&filename=optimaxdj.jpg&res=medium
Treat others as you would like to be treated  smile

Offline

 

#289 2011-10-31 15:23:59

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Text-Based Scratch

Lightnin wrote:

Interesting discussion, and I'm glad to see some folks are fans of python. That's what the front-end of Scratch 2.0 will be written in.  smile

I'm really excited to hear that! Presumably, that will make modding /much/ easier — or wait, if that's just the front-end; how are the other parts integrated?

Does the Python code run on the server, or is it part of a downloadable version of Scratch? If it is server-side code, what web framework are you using? (:

Last edited by blob8108 (2011-10-31 15:25:47)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#290 2011-10-31 19:04:20

spongebob123
Scratcher
Registered: 2009-05-10
Posts: 1000+

Re: Text-Based Scratch

O____________o

The fancy code confuses me.

big_smile  Nice job though, guys

Offline

 

#291 2011-11-01 12:24:18

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Text-Based Scratch

spongebob123 wrote:

The fancy code confuses me.

What do you mean by "fancy"? (:


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#292 2011-11-07 15:02:23

456bingo123
Scratcher
Registered: 2010-10-30
Posts: 1000+

Re: Text-Based Scratch

I like it, but I don't have any votes left.


My username is now elfin8er! I will not be using this account any more!! ELF OS! (Community Collab)

Offline

 

#293 2012-01-21 10:06:18

puppetest
Scratcher
Registered: 2011-03-23
Posts: 17

Re: Text-Based Scratch

Support!


http://trinary.site40.net/images/scratchrank.php?username=puppetadventurer

Offline

 

#294 2012-01-21 10:17:50

creeper14927
New Scratcher
Registered: 2012-01-18
Posts: 15

Re: Text-Based Scratch

I support.

Offline

 

#295 2012-01-22 01:03:34

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: Text-Based Scratch

Great idea! Searching for the right block is really annoying. But, if you even misspell one word, the script wont work. I guess that's why scratch team didn't make scratch text based. But maybe this could work...


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

#296 2012-01-29 06:36:49

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

What about we use the same syntax for the new scratchblocks tag, but with the bugs in it fixed? I'd find that a great idea!

EDIT: Sorry for necroposting, I got here from another topic.

Last edited by rdococ (2012-01-29 06:37:23)

Offline

 

#297 2012-01-29 06:40:12

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

Re: Text-Based Scratch

it should have the same syntax as the new [scratchblocks] tag in the forums and wiki.


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

 

#298 2012-01-29 06:52:53

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Text-Based Scratch

joefarebrother wrote:

it should have the same syntax as the new [scratchblocks] tag in the forums and wiki.

I said that.

Offline

 

#299 2012-01-29 07:53:06

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

Re: Text-Based Scratch

rdococ wrote:

joefarebrother wrote:

it should have the same syntax as the new [scratchblocks] tag in the forums and wiki.

I said that.

Sorry, I don't read EVERY post before posting.


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

 

#300 2012-01-30 20:39:47

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

Re: Text-Based Scratch

SOrry but I disagree.


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

 

Board footer