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

#5876 2012-08-26 00:45:25

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

IANJ?

You've seen that before!  "I am not Jens."


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5877 2012-08-26 01:56:48

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

(That's odd... the forums keep changing it to lowercase)

Caps filter. To avoid it, add

Code:

[b][/b]

at the end.  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5878 2012-08-26 09:40:29

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

Is Snap going to used prototype base inheritance like BYOB or is it going to use classes?

Offline

 

#5879 2012-08-27 04:05:38

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

Oops, *use , * based

Offline

 

#5880 2012-08-27 09:25:53

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

We'll use prototypical inheritance for Snap, just like in BYOB


Jens Mönig

Offline

 

#5881 2012-08-27 09:27:15

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

We'll use prototypical inheritance for Snap, just like in BYOB

which i never got  hmm

Offline

 

#5882 2012-08-27 10:58:11

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@roijac saying "

    Jens wrote:

    We'll use prototypical inheritance for Snap, just like in BYOB

which i never got "

Have a look at the following link:
http://www.xleroy.net/ByobTuto
where are given examples of OOP instructions.
Start from the 52th project (Tutonew)

Last edited by xly (2012-08-27 10:58:52)

Offline

 

#5883 2012-08-27 11:22:21

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

Re: BYOB 3 - Discussion Thread

@xly, i get a 403 error  hmm

Offline

 

#5884 2012-08-27 12:22:45

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@roijac
oops !!
Sorry ! The link is :
http://www.xleroy.net/ByobTuto/Thumbnails.html
Enjoy

Offline

 

#5885 2012-08-27 14:27:05

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

roijac wrote:

which i never got  hmm

I take it you do understand class/instance objects?

Class/instance has two different mechanisms that, if you think about it, are both aspects of specialization:

1.  Instantiation, in which a new object is created that shares the properties of a class except for specialization of its instance variables.

2.  Class inheritance, in which a new object is created that shares the properties of a class except for specialization of some methods.

Well, aren't those almost the same?  Especially once you understand that procedures are data (i.e., first class procedures)!  Both of these are specialization in which a new object shares the characteristics of an old one, except for exceptions.

So, doesn't it make sense to simplify away this unnecessary distinction and just understand inheritance as creating a new object as a specialization of an old one?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5886 2012-08-27 15:31:57

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

Re: BYOB 3 - Discussion Thread

For some reason when i try to open projects from a URL not one I've saved, it just shows a blank canvas  hmm


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

 

#5887 2012-08-27 16:40:33

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

For some reason when i try to open projects from a URL not one I've saved, it just shows a blank canvas  hmm

Right, until we get back end and/or standalone local Snap! done, Save works using JS Localstore, which can only be read in the same browser and from the same URL.

Instead, use Export, and then save the resulting browser tab to an .xml file locally.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5888 2012-08-27 17:38:58

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

Re: BYOB 3 - Discussion Thread

But if I click on a link to a snap project, it won't open.

Last edited by joefarebrother (2012-08-27 17:54:25)


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

 

#5889 2012-08-27 17:51:46

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

But if I click on a link to a snap project, it won't open.

Open a Snap! window, then drag the xml file onto it.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5890 2012-08-27 17:54:44

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

Re: BYOB 3 - Discussion Thread

Suggestion.: I think you should be able to make cap blocks. For example, Throw should be a cap block, and in my nondeterminism project, fail should also be a cap block.


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

 

#5891 2012-08-27 17:57:38

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Question... Why did you go with XML instead of JSON?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5892 2012-08-27 20:52:50

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

Suggestion.: I think you should be able to make cap blocks.

That's a reasonable idea, but of course it doesn't hurt anything to have the little tab at the bottom of the block.  (BTW "cap block" is a terrible name for these, given that there is a completely different thing called a "hat block"!  I'd never heard "cap block" before and it took me a while to figure out what you meant.)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5893 2012-08-27 20:54:35

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

Question... Why did you go with XML instead of JSON?

We actually went back and forth on this, but afaik there's no terribly compelling reason either way.  It's just aesthetic taste.  Do you think differently?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5894 2012-08-27 20:55:46

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I vote JSON if it's not too late to change.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5895 2012-08-27 21:00:04

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Yeah. I'd use JSON.  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5896 2012-08-28 00:16:47

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Do you think differently?

I didn't mean, "which would you vote for?"  I meant, "do you think there's a serious technical reason, not just taste, to prefer one over another?"  So you have to explain why your preference is more than a mere preference.  smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5897 2012-08-28 09:42:08

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

bharvey wrote:

Do you think differently?

I didn't mean, "which would you vote for?"  I meant, "do you think there's a serious technical reason, not just taste, to prefer one over another?"  So you have to explain why your preference is more than a mere preference.  smile

faster parsing!
http://www.navioo.com/ajax/ajax_json_xm … arking.php

Offline

 

#5898 2012-08-28 09:48:25

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

bharvey wrote:

Do you think differently?

I didn't mean, "which would you vote for?"  I meant, "do you think there's a serious technical reason, not just taste, to prefer one over another?"  So you have to explain why your preference is more than a mere preference.  smile

It is also smaller. Not that any textual format can be very small though...


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5899 2012-08-28 10:04:56

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

You're writing Snap! in JS. JS uses JSON to represent data structures. Therefore...


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5900 2012-08-28 10:05:13

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

bharvey wrote:

bharvey wrote:

Do you think differently?

I didn't mean, "which would you vote for?"  I meant, "do you think there's a serious technical reason, not just taste, to prefer one over another?"  So you have to explain why your preference is more than a mere preference.  smile

It is also smaller. Not that any textual format can be very small though...

at least not serializing the list viewers xD

Offline

 

Board footer