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

#1 2011-11-08 08:56:37

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Is Scratch Object Oriented Programming?

Just curious.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#2 2011-11-08 09:13:33

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: Is Scratch Object Oriented Programming?

Not really!


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#3 2011-11-08 09:23:30

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

Re: Is Scratch Object Oriented Programming?

Well, it deals with attributes of objects (sprites), so I guess yes. I think the ([attribute] of [sprite]) seals it.


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

Offline

 

#4 2011-11-08 09:29:19

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

Re: Is Scratch Object Oriented Programming?

If Scratch could store sprites and costumes and such in variables, then I would consider it OOP.


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

Offline

 

#5 2011-11-08 10:11:51

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

Re: Is Scratch Object Oriented Programming?

MathWizz wrote:

If Scratch could store sprites and costumes and such in variables, then I would consider it OOP.

No, I think that would be First Class Data.


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

Offline

 

#6 2011-11-08 11:14:48

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

Re: Is Scratch Object Oriented Programming?

Hardmath123 wrote:

MathWizz wrote:

If Scratch could store sprites and costumes and such in variables, then I would consider it OOP.

No, I think that would be First Class Data.

You need than to be OOP.


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

Offline

 

#7 2011-11-08 11:47:50

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: Is Scratch Object Oriented Programming?

Eh, no. Not really. Eh, not much.


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#8 2011-11-08 11:52:16

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

Re: Is Scratch Object Oriented Programming?

NOT
which objects do we have in scratch? :S

Offline

 

#9 2011-11-08 12:20:05

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Is Scratch Object Oriented Programming?

It is partially OO.
The fact that it has sprites (classes) that hold different scripts (as opposed to a single long script) makes it OO, but it cannot create sprites on runtime or store them in variables.

Offline

 

#10 2011-11-08 15:27:53

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

Re: Is Scratch Object Oriented Programming?

no


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

 

#11 2011-11-08 18:01:35

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Is Scratch Object Oriented Programming?

Yes. It has objects which can (to some degree) contain data members and methods/subroutines.


nXIII

Offline

 

#12 2011-11-08 18:13:42

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

Re: Is Scratch Object Oriented Programming?

Here comes nXIII to correct us.  tongue


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

Offline

 

#13 2011-11-08 19:46:55

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Is Scratch Object Oriented Programming?

No. Scratch is an object-based language, but not an object-oriented one. Sprites are the objects of Scratch: they have state (variables) and behaviour (scripts). But Scratch does not support classes, inheritance, generics or interfaces, therefore it can't be considered an OO language.

3.3 Sprites: The Scratch Object Model
Sprites are objects: they encapsulate state (variables) and behavior (scripts). However, since Scratch has neither classes nor inheritance, it is an object-based language but not an object-oriented one. (A language must support inheritance to be called object-oriented [Wegner 1987].)

Maloney, J., Resnick, M., Rusk, N., Silverman, B., and Eastmond, E. 2010. The Scratch
Programming Language and Environment. Trans. Comput. Educ. 10, 16, 16:1–16:15.

Offline

 

#14 2011-11-08 19:59:40

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Is Scratch Object Oriented Programming?

Baderous wrote:

No. Scratch is an object-based language, but not an object-oriented one. Sprites are the objects of Scratch: they have state (variables) and behaviour (scripts). But Scratch does not support classes, inheritance, generics or interfaces, therefore it can't be considered an OO language.

3.3 Sprites: The Scratch Object Model
Sprites are objects: they encapsulate state (variables) and behavior (scripts). However, since Scratch has neither classes nor inheritance, it is an object-based language but not an object-oriented one. (A language must support inheritance to be called object-oriented [Wegner 1987].)

Maloney, J., Resnick, M., Rusk, N., Silverman, B., and Eastmond, E. 2010. The Scratch
Programming Language and Environment. Trans. Comput. Educ. 10, 16, 16:1–16:15.

^ This.

Offline

 

#15 2011-11-08 20:17:07

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Is Scratch Object Oriented Programming?

No.

Offline

 

#16 2011-11-08 20:53:14

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Is Scratch Object Oriented Programming?

maxskywalker wrote:

No.

Your signature needs to be updated.

Aside from that, I already knew that it wasn’t.  tongue  Did you even read the posts above?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#17 2011-11-09 07:40:01

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

Re: Is Scratch Object Oriented Programming?

MathWizz wrote:

Hardmath123 wrote:

MathWizz wrote:

If Scratch could store sprites and costumes and such in variables, then I would consider it OOP.

No, I think that would be First Class Data.

You need than to be OOP.

No, object oriented programming means you can create objects with attributes and methods. A sprite's attributes are xpos, ypos, direction, costume#, etc. The methods are the scripts and blocks. So I say it is OOP.


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

Offline

 

#18 2011-11-09 10:41:28

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Is Scratch Object Oriented Programming?

Hardmath123 wrote:

MathWizz wrote:

Hardmath123 wrote:


No, I think that would be First Class Data.

You need than to be OOP.

No, object oriented programming means you can create objects with attributes and methods. A sprite's attributes are xpos, ypos, direction, costume#, etc. The methods are the scripts and blocks. So I say it is OOP.

I think you haven't read my post. I cited an article from Mitchel Resnick and other members of the Scratch Team in which they state clearly that Scratch is NOT object-oriented and why they say that. It's not a matter of what you think or what someone else thinks. It's a fact.

Offline

 

#19 2011-11-09 11:35:31

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

Re: Is Scratch Object Oriented Programming?

well, now it is  big_smile

Offline

 

#20 2011-11-09 11:52:29

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

Re: Is Scratch Object Oriented Programming?

roijac wrote:

well, now it is  big_smile

XD


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

Offline

 

Board footer